Tuesday, November 27, 2018

PdfPig 0.0.3 released. NET Standard 2.0 PDF library Apache 2.0 License.

Download: NuGet

Source: GitHub

I posted a while back when I first released PdfPig but I haven't been able to work on it for quite some time since then. Today I managed to get the next version out.

Features of this version:

  • Consumers can directly access the PDF file content through PdfDocument.Structure this exposes every object in the document with wrappers for each of the underlying PDF data types, stream, number, string, name, boolean, object, etc. This also provides direct access to the pages dictionary which is the root of the page structure for the PDF document.
  • Every letter now has a GlyphRectangle property. This is the smallest rectangle which would entirely contain the glyph calculated from the glyph definition in the font. This supports both Type 1 and Compact Font Format (CFF) fonts which were not previously supported.
  • Page now has a method to retrieve words using some simple heuristics to merge letters into words based on their size and position as well as an experimental feature to retrieve the PDF XObjects for the images on a page using page.ExperimentalAccess.GetRawImages();.
  • A load of bug fixes and performance tweaks for reading from documents.

Next up the plan is to add creation of simple PDF documents and expose the decoded font objects for TrueType, Type 1 and CFF fonts (which already exist internally) as well as bug fixes for documents which rely on reading TrueType fonts from System Files and Type 1 CID fonts.

Let me know which other features would make good candidates for the next version along with any bugs you might spot. I think most people are after creation and editing of documents which is why it's the target for the next version (0.0.5 because I don't like 4).

PdfPig 0.0.3 released. NET Standard 2.0 PDF library Apache 2.0 License. Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team