Sdk Class |
SDK initialization and product information
public class Sdk : NativeObject
The Sdk type exposes the following members.
Name | Description | |
---|---|---|
HttpClientHandler | The default handler for communication to remote servers This instance is used wherever there is no dedicated HTTP client handler parameter. | |
LicenseInfoSnapshot | A new snapshot is created whenever this property is accessed. Note: Initialize(String, String) />must be called before accessing license information. Otherwise, the license is considered invalid. | |
LicensingService | Licensing service to use for all licensing requests This property is relevant only for page-based licenses and is used to set the Licensing Gateway Service. The default is "https://licensing.pdf-tools.com/api/v1/licenses/" for the online Pdftools Licensing Service. If you plan to use the Licensing Gateway Service instead of the Pdftools Licensing Service, the property’s value must be a URI with the following elements: http[s]://[‹user›[:‹password›]@]‹host›[:‹port›] Where:
Example: "http://localhost:9999" | |
ProducerFullName | The producer string that is set within the metadata of PDF output documents The producer string depends on the license key and producer suffix set in Initialize(String, String). | |
Proxy | Proxy to use for all communication to remote servers The SDK can use a proxy for all HTTP and HTTPS communication. The default is , i.e. no proxy is used. Otherwise the property’s value must be a URI with the following elements: http[s]://[‹user›[:‹password›]@]‹host›[:‹port›] Where:
Example: "http://myproxy:8080" For SSL/TLS connections, e.g. to a signature service, the proxy must allow the HTTP CONNECT request to the remote server. | |
UsageTracking | Property denoting whether the usage tracking is enabled or disabled The SDK is allowed to track usage when this property is set to . The collected data includes only non-sensitive information, such as the features used, the document type, the number of pages, etc. The default is , i.e. usage tracking is enabled. | |
Version | The version of the SDK |
Name | Description | |
---|---|---|
Equals | (Inherited from NativeObject) | |
GetHashCode | (Inherited from NativeObject) | |
Initialize | 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. |