New features
VectSharp.MuPDFUtils
-
New methods in the
PDFParserclass from VectSharp.MuPDFUtils can be used to import PDF documents (and other formats supported by MuPDF).PDFParser.FromFilecan be used to import an entire document or a single page from a file.PDFParser.FromStreamcan be used to import an entire document or a single page from a document in aStream.- Overloads of these methods with an
out Dictionary<string, string> linkDestinationsparameter 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
MarkdownRendererclass 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
SaveAsSVGmethod now has a public overload that returns anXmlDocument.
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 toPDFPage.MediaBox) to set the various bounding boxes.PDFCatalog.OpenActionto set which page should be shown when opening the document.- A new
PDFOptionalContentPropertiesconstructor supporting alternative configurations.
Bugfixes
VectSharp.SVG
- Improved SVG animation compatibility and performance (#68).