Skip to content

Version 2.6.1

Latest

Choose a tag to compare

@arklumpus arklumpus released this 26 Dec 01:10

New features

VectSharp.MuPDFUtils

  • New methods in the PDFParser class from VectSharp.MuPDFUtils can be used to import PDF documents (and other formats supported by MuPDF).

    • PDFParser.FromFile can be used to import an entire document or a single page from a file.
    • PDFParser.FromStream can be used to import an entire document or a single page from a document in a Stream.
    • Overloads of these methods with an out Dictionary<string, string> linkDestinations parameter can be used to enable internal and external links within the document when it is later exported.

    The way this is achieved is a bit roundabout, but seems to work mostly fine: first the document is converted to SVG using MuPDFCore, and then the SVG file is imported using VectSharp.SVG.

VectSharp.Markdown

  • The MarkdownRenderer class now has rendering events that are invoked at various steps and can be used to customise the appearance of the document (#69).

VectSharp.SVG

  • The SaveAsSVG method now has a public overload that returns an XmlDocument.

VectSharp.PDF

  • There are some new public properties that can be used to manually customise PDF documents:
    • PDFPage.CropBox, PDFPage.TrimBox, PDFPage.BleedBox, PDFPage.ArtBox (in addition to PDFPage.MediaBox) to set the various bounding boxes.
    • PDFCatalog.OpenAction to set which page should be shown when opening the document.
    • A new PDFOptionalContentProperties constructor supporting alternative configurations.

Bugfixes

VectSharp.SVG

  • Improved SVG animation compatibility and performance (#68).

VectSharp.Plots

  • Axis labels are now correctly positioned when the axis is inverted (#74).
  • Stacked and clustered bar charts with a single bar now work correctly (#75).