Skip to content

Releases: dmester/pdftosvg.net

Version 0.8.2

19 Mar 19:00
937cc1d
Compare
Choose a tag to compare

Improvements:

  • Extract embedded grayscale JPEGs
  • Glyph widths in extracted fonts are now overwritten by the PDF width data
  • If the PDF mapped a glyph to Unicode character 0, the character was not displayed in the exported SVG. All control characters are now redirected to the Private Use Area.

Version 0.8.1

04 Mar 10:04
c65050e
Compare
Choose a tag to compare

Bug fixes:

  • Default character widths of CID fonts were not considered when text was positioned on the page, which caused displaced text.
  • Soft hyphens were not visible in exported SVG.

Improvement:

  • Added sanitizing of hmtx table in export to OpenType or WOFF font. This lowers the risk that the browser will reject the font.

Version 0.8.0

09 Oct 12:46
219b1b6
Compare
Choose a tag to compare

New features:

  • Support for extracting most types of fonts.
  • Improved text decoding.
  • Interactive mode added to CLI tool.

Bug fixes:

  • Images using the average predictor were not properly decoded.
  • Encrypted PDFs using object streams could not be opened.
  • Char spacing was incorrectly calculated.
  • Text spans were sometimes incorrectly positioned when the PDF used negative X coordinate offsets.

Breaking changes:

  • DataUriImageResolver class now replaced with property ImageResolver.DataUri.
  • Image.ToDataUri renamed to Image.ToDataUrl
  • FontResolver.ResolveFont now takes a SourceFont instance as parameter instead of a string.

Version 0.7.0

19 Sep 12:26
e23513f
Compare
Choose a tag to compare

Improvements

  • Support for converting password protected PDFs.
  • Support for converting encrypted PDFs with access restrictions (as long as they don't restrict extraction of content).

Breaking changes

  • New optional parameter options on PdfDocument.Open.
  • EncryptedPdfException removed in favor of InvalidCredentialException and PermissionException.
  • PdfConversionException renamed to PdfException.
  • Document info properties on PdfDocument moved to separate class, accessible via the property Info on PdfDocument.

Bug fixes

  • Fixed unhandled exception when a PDF dictionary contained an integer with a value outside the range of a signed 32-bit integer.
  • Fixed various parsing exceptions that could occur if an object stream started at the input file buffer boundary.

Version 0.6.0

28 Jul 13:07
2fdce3f
Compare
Choose a tag to compare

Improvements

  • Added support for color spaces CalRGB, CalGray, Lab and DeviceN.
  • Improved support for opening corrupt PDF files.
  • Improved chances that text extraction will succeed.

Version 0.5.0

17 Jul 13:41
Compare
Choose a tag to compare

Improvements

  • Improved stability of text extraction of text using TrueType fonts.
  • Font detection now works on PDFs created by Microsoft Print to PDF.
  • Added support for stencil masks.
  • Added support for color key masks.
  • Corrected color of rendered image masks.
  • Validation of output text before XML serialization to avoid exception due to forbidden characters.

Bug fix

  • IndexOutOfRangeException thrown if trying to append clip path with an empty clip path.

Version 0.4.0

08 Jul 11:53
Compare
Choose a tag to compare

Improvements

  • Support for constant alpha values

Bug fixes

  • Some CSS styles leaked outside the SVG when being embedded in HTML

Breaking changes

  • IImageResolver interface replaced with ImageResolver base class.
  • IFontResolver interface replaced with FontResolver base class.

Version 0.3.0

02 Jul 11:48
Compare
Choose a tag to compare

Improvements

  • Support for .NET 4.0 and .NET Standard 1.6.
  • Command line conversion tool.
  • Improved support for text stroking.
  • Added support for text clipping.
  • Added WebFont class that can be used as alternative to LocalFont in IFontResolver.
  • Better image duplication detection to avoid converting the same image twice.
  • Now distributed as strong named assemblies.
  • Small optimizations of generated SVG markup.

Breaking changes

  • LocalFont has a new API.

Version 0.2.0

26 Jun 11:47
Compare
Choose a tag to compare

Improvements:

  • Conversion is now cancellable by passing a CancellationToken to PdfDocument.Open, PdfPage.ToSvgString and PdfPage.SaveAsSvg.
  • Basic support for hyperlinks. Only links leading to an URI are supported.
  • Support for image masks.
  • Images using unsupported filters or color spaces are now replaced with an error icon instead of showing random noise.
  • Support for function type 4 (PostScript function).
  • Improved image transcoding performance.
  • Improved async performance when PdfDocument is opened with a file path.
  • Optimized SVG markup.

Bug fixes:

  • Crash when converting multiple pages from the same PdfDocument concurrently.
  • SVGs were sometimes rendered with incorrect font sizes.

Version 0.1.0-alpha

13 Jun 11:57
Compare
Choose a tag to compare

Initial alpha version.