Some test text!

Step-by-step guidekeyboard_arrow_down

Quick start

In this document
chevron_rightDownloads
chevron_rightYour first application: step-by-step
chevron_rightCode
chevron_rightSamples
chevron_rightCommon questions

The PDFTron SDK is quite simple to get started with. Just three steps actually:

  • Download the SDK
  • Open up a sample that interests you.
  • Compile and run

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.

linkDownloads

An evaluation or commercial license key is required to run PDFTron. If you are evaluating the SDK and do not have a key, please obtain one, and then visit this page via the link included in the trial email. If your company has licensed PDFTron then you already received your key in an email from team@pdftron.com. See sign in for more details.

If you would like a step-by-step guide to start, please read on.

linkYour first application: step-by-step

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.

linkCode

The entire code for this example is given below for easy reference.

linkSamples

When you are ready to add new features using our SDK, be sure to start by checking out our code samples.

linkCommon questions

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.