dmester / pdftosvg.net

Fully managed .NET library for converting PDF files to SVG.
https://pdftosvg.net
Other
57 stars 12 forks source link

Text in unity with strange character #17

Closed hdxpmc closed 8 months ago

hdxpmc commented 11 months ago

Hello We test this file: Untitled design (7).pdf int the web online: pdftosvg.net the text is correct as: IMG_7727 in unity nugget package, it show as: IMG_7726 the text: it's -> it AAAA s

Do we need to set encoding somewhere ?

Best regards

dmester commented 11 months ago

Seems like you have an encoding mismatch somewhere.

If you use PdfPage.SaveAsSvg, it produces UTF-8 encoded files. You need to ensure UTF-8 is used when reading the files.

If you use PdfPage.ToSvgString, it is up to you to encode the SVG and to ensure the reader opens it with the same encoding.

dmester commented 8 months ago

Closing due to inactivity