Skip to content

Hypapdf / Changelog

Changelog

All notable changes to Hypapdf are recorded here.

0.1.0 (2026-12-02)#

First version.

Added#

  • PdfDocument.OpenAsync from a file path or a Stream, and PdfDocument.Open from a byte array, ReadOnlyMemory<byte> or a Stream. The file is held in memory and parsed lazily; all members are thread-safe.
  • File structure: classic cross-reference tables, cross-reference streams (with PNG predictors), hybrid files, incremental updates, object streams, junk before the header, wrong stream lengths, and a one-time repair scan for damaged or missing cross-reference data (PdfDocument.WasRepaired).
  • Object model: PdfDictionary, PdfArray, PdfStream, PdfName, PdfString (PDFDocEncoding, UTF-16BE, UTF-8), PdfInteger, PdfReal, PdfBoolean, PdfNull, PdfReference; PdfDocument.GetObject, Resolve, Catalog, Trailer.
  • Filters: FlateDecode (lenient about headers, checksums and truncation), LZWDecode, ASCII85Decode, ASCIIHexDecode, RunLengthDecode, PNG and TIFF predictors; image filters are left encoded.
  • Encryption: the standard security handler with RC4 (40 to 128 bit), AES-128 and AES-256 (revisions 2 to 6), crypt filters, user and owner passwords (PdfReadOptions.Password), PdfDocument.IsEncrypted and Permissions.
  • Pages: page tree with inherited resources, media box, crop box and rotation; PdfPage.GetContentData.
  • Metadata: PdfDocument.Info (title, author, subject, keywords, creator, producer, dates), XmpMetadata, Version.
  • Text extraction: PdfPage.ExtractText, PdfDocument.ExtractText (optionally in parallel) and PdfPage.GetLetters with glyph positions. Fonts: simple fonts with standard encodings and Differences, the Adobe Glyph List, built-in Type 1 encodings, Type 3 fonts, standard 14 font metrics, composite fonts with ToUnicode, embedded and predefined CMaps (Identity, UCS-2/UTF-16, Shift JIS, EUC, GBK, Big Five, UHC), embedded TrueType cmap and post tables, vertical writing. Form XObjects, annotation appearances (PdfTextOptions.IncludeAnnotations), duplicate glyphs from fake bold and Latin ligatures are handled.
  • Layout: PdfPage.GetWords (words with bounding boxes, font, size and rotation), PdfPage.GetTextBlocks (PdfTextBlock and PdfTextLine in reading order) and PdfTextOptions.Layout = PdfTextLayout.ReadingOrder for multi-column text. Font ascent and descent come from the font descriptor.
  • Forms: PdfDocument.FormFields reads the AcroForm field tree (PdfFormField, PdfFormFieldType, PdfFormOption, PdfFormWidget): full names, types, values and defaults, options, flags, tooltips and widget pages and rectangles.
  • Images: PdfPage.GetImages lists image XObjects, inline images and images in annotation appearances as PdfImage (size, colour space, bits per component, PdfImageFormat, bounds on the page), with GetEncodedData (JPEG and JPEG 2000 as stored) and ToPng for raw images in gray, RGB, CMYK, indexed and ICC-based spaces and image masks.
  • Navigation: PdfDocument.Outlines (bookmark tree of PdfOutlineItem) and PdfPage.GetLinks (PdfLink), with PdfDestination targets resolved from explicit and named destinations and GoTo, GoToR, Launch and URI actions.
  • Limits for untrusted input: PdfReadOptions.MaxDecodedStreamBytes, MaxObjects and MaxFormDepth; errors are reported as PdfFormatException and PdfEncryptedException.
  • Benchmarks against PdfPig, PDFium (PDFiumCore and Docnet.Core), iText, MuPDF.NET and PDFsharp on macOS and in a Linux container, a developer CLI with corpus and fuzz commands, and test data generated with ReportLab, pypdf and fontTools.