Download Latest Version Forest Mountain (0.1.11) source code.tar.gz (138.5 MB)
Email in envelope

Get an email when there's a new version of PdfPig

Home / v0.1.11
Name Modified Size InfoDownloads / Week
Parent folder
PdfPig.0.1.11.nupkg 2025-07-26 11.6 MB
Forest Mountain (0.1.11) source code.tar.gz 2025-07-26 138.5 MB
Forest Mountain (0.1.11) source code.zip 2025-07-26 139.3 MB
README.md 2025-07-26 10.6 kB
Totals: 4 Items   289.5 MB 0

Welcome to version 0.1.11. The changes in this version have mainly focused on stability. There is a breaking API change.

We have also started to run tests against a larger corpus of documents from Common Crawl allowing us to find bugs and malformed files proactively. This release is screened against 6000 additional files.

  • Improvements to content and font parsing detected by fuzzing inputs.
  • Improvements and resiliency for finding the startxref location when parsing a file..
  • Adds build and tests for Mac OS as well as retrieving system fonts on iPad (Mac Catalyst).
  • Support clipping when rendering XObjects.
  • Prevent malformed files leading to an out-of-memory when decompressing streams.
  • Make IGraphicsStateOperationFactory and ReflectionGraphicsStateOperationFactory public.
  • Softmask support for images.
  • Performance improvements using Span and ReadOnlyMemory where available.
  • Handle corrupt files where the stream contains comment tokens.
  • Improvements to copying from existing files when using PdfDocumentBuilder, fixes some bugs with copying fonts and dictionary tokens referenced indirectly.
  • Handle corrupt files with double endstream definitions.
  • More tolerant parsing for a number of invalid PDFs, including invalid USC2 input, CMAP formats, CFF fonts, missing font subtypes, invalid xref table positions, missing /FirstChar entry for font dictionaries and corrupt ASCII 85 encoded data.
  • Fix an issue where adding content to an existing PDF using PdfDocumentBuilder could result in upside-down or wrongly positioned text due to global transforms in the source PDF.
  • New option to completely skip annotations when building a document.
  • Prevent infinite loops in certain documents [#1096].
  • Improved performance when tokenizing numbers, this should provide a minor speed improvement.
  • When adding a page from an existing PDF to a PdfDocumentBuilder any external link annotations should be preserved.

Breaking changes

The method on PdfDocumentBuilder:

public PdfPageBuilder AddPage(PdfDocument document, int pageNumber, Func<PdfAction, PdfAction?>? copyLink)

Has been changed to wrap the copyLink parameter in an options object to support the KeepAnnotations option:

public PdfPageBuilder AddPage(PdfDocument document, int pageNumber, AddPageOptions options)

You can just set the CopyLinkFunc property in the options object if you need to access this functionality.

Auto generated change log

New Contributors

Thanks to the following people who made their first contributions to the project in this release:

And thanks to those who reported issues that help us improve the library and fix bugs.

Full Changelog: https://github.com/UglyToad/PdfPig/compare/v0.1.10...v0.1.11

Source: README.md, updated 2025-07-26