Security and output
How to redact PDF content in C#
Mark exact extracted-text matches or explicit regions, remove matched text from supported page content, and save a rewritten output file.
Guides
Task-based articles for common PDF operations in C#, including the fluent authoring API for new documents.
Current Guides
Security and output
Mark exact extracted-text matches or explicit regions, remove matched text from supported page content, and save a rewritten output file.
Document creation
Use Pdf.New() to author pages with text, shapes, images, boxed layout, wrapping, and saved output.
Document creation
Render a Liquid template with a .NET model, inspect the HTML if needed, and convert it to PDF through the template package.
Document creation
Start a new PDF, choose the page size up front, add more pages if needed, and save the result.
Page structure
Add pages to the end, insert them at a specific position, remove existing pages, and keep the order straight.
Page structure
Copy only the pages you want into a new PDF, keep the requested page order, or break a larger document into smaller files.
Page structure
Copy a known set of pages into a new PDF and preserve the output order you asked for.
Page structure
Add a page to the end of the document, set the size up front, and use the returned page for new content.
Page structure
Remove one or more pages by 1-based number and save the updated document.
Page content
Write text into a page rectangle, choose font settings, and decide what should happen when the text does not fit.
Fonts and text
Register built-in PDF fonts such as Helvetica, Times, and Courier and use them for page text.
Fonts and text
Register a font from disk or a stream and use it when the output needs a specific typeface.
Fonts and text
Download a Google Fonts family, register it into the document, and use it like any other embedded font.
Security and output
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
Fill AcroForm fields by name, discover fields in unfamiliar files, and select choice options without looping through every option yourself.
Forms and data capture
Turn the current form appearance into normal page content when the completed output should stop behaving like a form.
Document assembly
Append pages from one or more PDF streams, control the final page order, and save the combined output.
Page content
Add a text watermark to one page or the whole document, then save or combine it with other document updates.
Security and output
Write AES-128 or AES-256 protected output, choose user and owner passwords, and save the encrypted file.
Security and output
Allow or block printing, copying, editing, annotation, and form filling when writing encrypted output.
Forms and data capture
Sign an existing signature field, or add a hidden validation-only field and sign that with an X509 certificate.
Text and content
Read text from the whole document or a single page, and choose between extracted segments and plain text output.
Text and content
Use OCR on scanned or image-based pages with Tesseract and the ZingPDF OCR package.
Document info
Set title, author, subject, keywords, creator, and creation date through the high-level metadata wrapper.
Page structure
Rotate one page or the whole document with the built-in rotation helpers and save the updated file.
Output and size
Recompress eligible streams, tune JPEG quality, and save a smaller output file from the high-level API.
Output and save
Remove the previous incremental revision chain before saving when the output should only reflect the current document state.
No guides match that search yet.