Some test text!
The PDFTron SDK is quite simple to get started with. Just three steps actually:
That's it! Yes, really. You are ready with your first sample application using the PDFTron SDK. If you would like to dig a little deeper on your own, the entire samples collection is made available as part of the SDK, as well as online.
If you would like a step-by-step guide to start, please read on.
We will use a simple task for this example - convert the first page of a PDF document to an image. In the example code we will touch upon a few basics - how to initialize PDFNet, how to open a PDF document, how to get to pages within a document. We will also touch upon some of the advanced features like
PDFDraw, that are covered in detail in other samples.
The steps below presume familiarity with the Visual Studio environment. You can use the language switcher at the top to choose the language that you prefer.
The entire code for this example is given below for easy reference.
When you are ready to add new features using our SDK, be sure to start by checking out our code samples.
Error: warning MSB3270: There was a mismatch between the processor architecture of the project being built.
Solution: The architecture of the PDFNet dll and your project do not match. Either both the DLL, and project, should be x64, or x86. Don't mix and match. If using AnyCPU, it is not recommended for use with PDFNet as this can result in errors in some cases. For details, please see the Common Questions section for a more detailed answer.
Error: System.BadImageFormatException: Could not load file or assembly PDFNet... An attempt was made to load a program with an incorrect format.
Solution: Same as above, but at runtime you have the wrong PDFNet dll being loaded.
Error: The evaluation version encountered an error in your system configuration. Please contact customer support at: sup...@pdftron.com. No reg. write rights
Solution: See Questions in the Demo/Trial Period section.