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.7.0+cfcc11b476b3e1eb4320f0f37269191f64e36bd8
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