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.4.0+fc8bb87ea2616e7f35d94e0588d333abae862a7a
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