For the complete documentation index, see llms.txt. This page is also available as Markdown.

How do I PDFNet initialize with multiple clients concurrently?

The initialize method should be called in your application start-up (such as main(), OnAppStart(), DLLMain(), etc. - depending on our application type and development platform).

In case you don't have such a start-up method, you can call initialize multiple times and PDFNet will make sure that it is initialized only once. You only need to make sure that it is called before any other PDFNet method.

pdftron.PDFNet.Initialize("YOUR APRYSE  LICENSE KEY::Testing::123");
PDFNet::Initialize("YOUR APRYSE  LICENSE KEY::Testing::123");
PDFNet.initialize("YOUR APRYSE  LICENSE KEY::Testing::123");
// Use runWithCleanup instead of initialize
// PDFNet initialize is called within runWithCleanup
// runWithCleanup will also perform automatic memory management
PDFNet.runWithCleanup(callback, "YOUR APRYSE  LICENSE KEY::Testing::123");

// Optional alternative to call initialize directly 
PDFNet.initialize("YOUR APRYSE  LICENSE KEY::Testing::123");
[PTPDFNet Initialize:@"YOUR APRYSE  LICENSE KEY::Testing::123"];
PTPDFNet.initialize("YOUR APRYSE  LICENSE KEY::Testing::123")
PDFNet::Initialize("YOUR APRYSE  LICENSE KEY::Testing::123");
PDFNet.Initialize("YOUR APRYSE  LICENSE KEY::Testing::123")
PDFNet.Initialize("YOUR APRYSE  LICENSE KEY::Testing::123")

Once initialized, be sure to lock the document when working in a multi-threaded environment.

Last updated

Was this helpful?