Hypapdf / Changelog
Changelog
All notable changes to Hypapdf are recorded here.
0.1.0 (2026-12-02)#
First version.
Added#
PdfDocument.OpenAsyncfrom a file path or aStream, andPdfDocument.Openfrom a byte array,ReadOnlyMemory<byte>or aStream. 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.IsEncryptedandPermissions. - 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) andPdfPage.GetLetterswith 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(PdfTextBlockandPdfTextLinein reading order) andPdfTextOptions.Layout = PdfTextLayout.ReadingOrderfor multi-column text. Font ascent and descent come from the font descriptor. - Forms:
PdfDocument.FormFieldsreads the AcroForm field tree (PdfFormField,PdfFormFieldType,PdfFormOption,PdfFormWidget): full names, types, values and defaults, options, flags, tooltips and widget pages and rectangles. - Images:
PdfPage.GetImageslists image XObjects, inline images and images in annotation appearances asPdfImage(size, colour space, bits per component,PdfImageFormat, bounds on the page), withGetEncodedData(JPEG and JPEG 2000 as stored) andToPngfor raw images in gray, RGB, CMYK, indexed and ICC-based spaces and image masks. - Navigation:
PdfDocument.Outlines(bookmark tree ofPdfOutlineItem) andPdfPage.GetLinks(PdfLink), withPdfDestinationtargets resolved from explicit and named destinations and GoTo, GoToR, Launch and URI actions. - Limits for untrusted input:
PdfReadOptions.MaxDecodedStreamBytes,MaxObjectsandMaxFormDepth; errors are reported asPdfFormatExceptionandPdfEncryptedException. - 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.