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.10.0+8a8a96de3867b60fd3fc0089ea1028db6add63f1
Syntax
C#
public static void Initialize(
	string license,
	string producerSuffix = null
)

Parameters

license  String
The license key. The format of the license key is "<PDFSDK,V1,...>"
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.
HttpExceptionA network error occurred.
ArgumentNullExceptionif license is .
See Also