Code samples for basic document operations on Server/Desktop

Read & write a PDF file from/to memory buffer
The sample illustrates how to read/write a PDF document from/to memory buffer. This is useful for applications that work with dynamic PDFdocuments that don't need to be saved/read from a disk.

Merge, copy, delete, and rearrange PDF pages
The sample illustrates how to copy pages from one document to another, how to delete, and rearrange pages and how to use ImportPages() method for very efficient copy and merge operations.

Read elements across all PDF pages
Illustrates how to traverse page display list using ElementReader.

PDF data extraction (images, text, paths)
Illustrates how to traverse page display list using ElementReader.

Build, write, embed elements in PDF pages
Illustrates how to use PDFNet page writing API, how to embed fonts and images and how to copy graphical elements from one page to another.

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales