ZingPDF logo

Guides

ZingPDF guides

Task-based articles for common PDF operations in C#.

Current Guides

16 guides

Document creation

How to create a blank PDF in C#

Start a new PDF, choose the page size up front, add more pages if needed, and save the result.

Page structure

How to insert, append, and delete PDF pages in C#

Add pages to the end, insert them at a specific position, remove existing pages, and keep the order straight.

Page structure

How to export selected pages or split a PDF in C#

Copy only the pages you want into a new PDF, keep the requested page order, or break a larger document into smaller files.

Page content

How to add text to a PDF page in C#

Write text into a page rectangle, choose font settings, and decide what should happen when the text does not fit.

Fonts and text

How to use standard PDF fonts in C#

Register built-in PDF fonts such as Helvetica, Times, and Courier and use them for page text.

Fonts and text

How to embed a TrueType font in a PDF in C#

Register a font from disk or a stream and use it when the output needs a specific typeface.

Security and output

How to remove a password from a PDF in C# without leaving old encrypted revisions behind

Save a plain copy from an encrypted PDF, and decide whether you also need to remove older encrypted revision history from the file.

Forms and data capture

How to fill PDF form fields in C#

Fill AcroForm fields by name, discover fields in unfamiliar files, and select choice options without looping through every option yourself.

Document assembly

How to merge PDFs in C#

Append pages from one or more PDF streams, control the final page order, and save the combined output.

Page content

How to add watermarks to PDFs in C#

Add a text watermark to one page or the whole document, then save or combine it with other document updates.

Security and output

How to encrypt a PDF with AES in C#

Write AES-128 or AES-256 protected output, choose user and owner passwords, and save the encrypted file.

Text and content

How to extract text from a PDF in C#

Read text from the whole document or a single page, and choose between extracted segments and plain text output.

Document info

How to update PDF metadata in C#

Set title, author, subject, keywords, creator, and creation date through the high-level metadata wrapper.

Page structure

How to rotate PDF pages in C#

Rotate one page or the whole document with the built-in rotation helpers and save the updated file.

Output and size

How to compress a PDF in C#

Recompress eligible streams, tune JPEG quality, and save a smaller output file from the high-level API.

Output and save

How to rewrite a PDF without incremental history in C#

Remove the previous incremental revision chain before saving when the output should only reflect the current document state.