Where should I call the PDFNet initialize?
This is a very common question when using PDFNet for the first time. PDFNet initialize must be called before any other methods call with PDFNet.
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")The best location would be your application start-up function (such as main(), OnAppStart(), DLLMain(), etc. - depending on our application type and development platform).
Last updated
Was this helpful?