Click or drag to resize
Pdftools logo

SdkInitialize Method

Initialize the product and the license key.

Before calling any of the other functions of the SDK, a license key must be set by calling this method. For licensing questions, contact pdfsales@pdftools.com.

Namespace: PdfTools
Assembly: PdfTools (in PdfTools.dll) Version: 1.0.0
Syntax
C#
public static void Initialize(
	string license,
	string producerSuffix = null
)

Parameters

license  String
The license key. The format of the license key is "<4H,V1,PDFSDK,...>"
producerSuffix  String  (Optional)
If neither nor empty, this string is appended to the producer string within metadata of PDF output documents (see ProducerFullName).
Exceptions
ExceptionCondition
UnknownFormatExceptionThe format (version) of the license argument is unknown.
CorruptExceptionThe license argument is not a correct license key.
LicenseExceptionThe license argument can be read but the license check failed.
ArgumentNullExceptionif license is .
See Also