PDF4NET 12.x

Released: Jun 30, 2022

Updates in 12.x

12.1.4

Updated Jan 31, 2023

Fixes

  • PDF4NET
    • Encoded COS names in a PDF file are saved re-encoded.
    • The BDC operator is not saved correctly when processed through a page transform.
    • Redaction fails when page includes embedded images.
    • In some situations page properties are not copied when PDFPage objects are copied.
    • Page direct destinations are not converted to page number destinations when pages are extracted using PDFFileEx class.
    • TIFF image is not converted correctly to PDF when using PDFXLTiff image class.
    • PDFPageLayout enum does not support reader default option.
  • PDF4NET.Render
    • Predictor enhanced LZW encoded image is not decoded correctly.
    • Text using MS PMincho font (not embedded) is not rendered if the font is not installed on the local machine.
    • Indexed image with reversed /Decode array is not displayed correctly.

12.1.3

Updated Dec 30, 2022

Features

  • PDF4NET.Render
    • Added new PDFDocumentRenderer.PageRenderingCompleted event.

Fixes

  • PDF4NET
    • Form field default appearance is parsed incorrectly in some situations.
    • PDF files with document catalog included in an object stream cannot be loaded.
    • PDFLinkAnnotation.Destination is not properly set when the value is a named destination.
    • Text is not extracted in some situations.
  • PDF4NET.Render
    • Text is not rendered correctly in some situations.

12.1.2

Updated Nov 30, 2022

Features

  • PDF4NET
    • Added new 'PDFVisualObject.MarkedContentIdentifier' property.
    • Added new 'PDFTextRun.MarkedContentIdentifier' property.
    • Added new 'PDFTextRun.StructureElement' property.
    • Added new 'PDFCosStream.SetStreamContent' method.
    • PDFFont.GetCharWidth method is now public.

Fixes

  • PDF4NET
    • StructureElement property is null for tagged page visual objects.
    • Form fields that use resources stored at AcroForm level are not extracted correctly.
    • Textbox field appearance is not created correctly when the field uses Unicode fonts.
    • Some forms with invalid fields cannot be loaded.
    • Text in autosized multiline text fields is not scaled correctly.
  • PDF4NET.Render
    • Overlay blend mode is not applied correctly for transparency groups on RGB surfaces.
    • Overlay blend mode is not applied correctly for transparency groups on Gray surfaces.
    • Multiply and Screen blend modes are not applied correctly on Gray surfaces.
    • Screen blend mode is not applied correctly on RGB surfaces.
    • Blend mode is not applied correctly on page surface.
    • Pages that contain text using UniGB-UCS2-V encoding cannot be rendered.
    • HardLight blend mode is not applied correctly on Gray and RGB surfaces.
    • Darken and Lighten blend modes are not applied correctly on Gray and RGB surfaces.
    • ColorBurn blend mode is not applied correctly on Gray surfaces.
    • ColorDodge blend mode is not applied correctly on Gray surfaces.

12.1.1

Updated Oct 31, 2022

Features

  • PDF4NET
    • Added support for using the same TrueType font object in multiple 'PDFFixedDocument' objects.

Fixes

  • PDF4NET
    • Damaged file cannot be loaded.
    • Unicode TrueType fonts are not saved correctly when the document is saved page by page.
    • Incorrect defined form fields cannot be removed from document.
  • PDF4NET.Render
    • Darken blend mode is not applied correctly for transparency groups on RGB surfaces.
    • Document cannot be converted to multipage TIFF if the document pages have different sizes and target surface has an alpha channel.
    • Rendering is very slow for PDF pages with many rectangular clip regions.
    • 16bpc RGB images are not extracted correctly as System.Drawing.Bitmap.
    • Some invalid CFF fonts are not recovered correctly.

12.1.0

Updated Sep 30, 2022

Features

  • PDF4NET
    • Added user units for PDF pages.
    • Added support for page level metadata.
    • Added the ability to apply multiple compression filters to PDFImage objects.
  • PDF4NET.Render
    • Reduced the time required to generate PNGs and zip compressed TIFFs when converting PDF pages to images.
    • Reduced rendering time for PDF files with many vector graphics, such as maps.
    • Significantly reduced memory usage during PNG generation when converting PDF pages to images.

Fixes

  • PDF4NET
    • Multi-level form fields are not renamed correctly.
    • PDFDocument.Load method does not load correctly a PDF portfolio.
    • PDFFlowDocument.GetAvailableSpace throws an exception if the document is empty.
    • Annotations cannot be flattened if the document is loaded in partial mode.
  • PDF4NET.Render
    • In some situations large pages converted to image at high dpi cannot be saved as PNG.
    • Image with Multiply/Darken blend mode is not rendered on RGB surface.
    • Graphics with Multiply blend mode are not rendered on RGB surface.
    • Pattern with very large BBox uses too much memory.
    • PDF page is rendered partially.
    • Page with UserUnit is not rendered correctly.

12.0.2

Updated Aug 30, 2022

Fixes

  • PDF4NET
    • Page content cannot be extracted when annotations and/or form fields are flattened and the page has no /Contents entry.
    • Text cannot extracted from PDF page.
    • Text is extracted incorrectly from PDF page.
  • PDF4NET.Render
    • Some gray JPEG2000 images are not rendered.
    • Image with chroma key mask is not rendered correctly.
    • PDF page is rendered blank.

12.0.1

Updated Jul 29, 2022

Features

  • PDF4NET
    • Added support for custom spacing between table of contents entries.
    • Added new PDFCanvas.DrawDonut methods.

Fixes

  • PDF4NET
    • Flattened annotations included in extracted page content remain flatten in subsequent extraction operations.
    • JPEG image with invalid EXIF Orientation tag is drawn incorrectly on the page in autoscale mode.
    • Coordinates of text fragments are incorrect for vertical text.
    • Document with invalid /Prev entry in trailer cannot be loaded from ASP.NET stream.
  • PDF4NET.Render
    • PDF page is not displayed.
    • Damaged PDF file cannot be rendered.
    • Vertical text is not rendered correctly.

12.0.0

Updated Jun 30, 2022

Features

  • PDF4NET
    • Added TypographicGlyphCorners, TypographicFragmentCorners, TypographicLineCorners and TypographicWordCorners properties to include font descent when calculating the Y coordinate of extracted glyphs, text fragments, words and lines.
    • Added new PdfTextFragment.FontMetrics property.
  • PDF4NET.Render
    • Added ultra-high DPI support for PDF to image conversion. Output images can now be up to 65536*65536 pixels.
    • Added strip based rendering surfaces to support ultra-high DPI PDF rendering.

Fixes

  • PDF4NET
    • Very long string objects are not loaded.
    • CreationDate and ModifyDate file attachment properties are not loaded correctly from the PDF file.
    • Extracted page content changes color to the last fill color used on the page before it is drawn.
    • Some 32bit TIFF images are not converted correctly to PDF.
  • PDF4NET.Render
    • Some shadings are not rendered correctly.