Getting started

keyboard_arrow_down

Fundamentals

keyboard_arrow_down
Document lockingSaving PDF documentsUnderstanding coordinates

Basics

keyboard_arrow_down

Viewer

keyboard_arrow_down

Features

keyboard_arrow_down

Tools

keyboard_arrow_down

Annotations

keyboard_arrow_down

UI components

keyboard_arrow_down

Advanced

keyboard_arrow_down

FAQ

keyboard_arrow_down

PDF Processing API

keyboard_arrow_down
What is PDFNet?Opening a documentSerializing (saving) a documentWorking with pagesWorking with Page ContentWorking with BookmarksWorking with Interactive Forms (AcroForms)PDF SecurityLow-level PDF APIError handling
Error handlingkeyboard_arrow_down

Exception and Error Handling

PDFNet uses exceptions to report exceptional program states and corrupt input. For example:

try 
{
  PDFDoc doc = new PDFDoc("file.pdf");
  doc.InitSecurityHandler();
  doc.GetPage(9999999); 
  // ...
}
catch (PDFNetException e) 
{
  Console.WriteLine(e.Message);
}