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.6.0+e1db8f4bf6125495a2d29513486ea3e61205c81b
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