Releases: dmester/pdftosvg.net
Releases · dmester/pdftosvg.net
Version 0.8.2
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
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
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 propertyImageResolver.DataUri
.Image.ToDataUri
renamed toImage.ToDataUrl
FontResolver.ResolveFont
now takes aSourceFont
instance as parameter instead of a string.
Version 0.7.0
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
onPdfDocument.Open
. EncryptedPdfException
removed in favor ofInvalidCredentialException
andPermissionException
.PdfConversionException
renamed toPdfException
.- Document info properties on
PdfDocument
moved to separate class, accessible via the propertyInfo
onPdfDocument
.
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
Improvements
- Added support for color spaces
CalRGB
,CalGray
,Lab
andDeviceN
. - Improved support for opening corrupt PDF files.
- Improved chances that text extraction will succeed.
Version 0.5.0
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
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 withImageResolver
base class.IFontResolver
interface replaced withFontResolver
base class.
Version 0.3.0
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 toLocalFont
inIFontResolver
. - 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
Improvements:
- Conversion is now cancellable by passing a
CancellationToken
toPdfDocument.Open
,PdfPage.ToSvgString
andPdfPage.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
Initial alpha version.