Convert PDF to SVG - Word spacing

I’m using the latest version of AsposePDF and converting a PDF to SVG. I see the original font is not retained and also spacing between words and within words is odd/random. I have truetype fonts on my machine and set it in code.

Document pageDoc = new Document();
Document.setLocalFontPaths(Arrays.asList("/usr/share/fonts/custom/renditions"));
pageDoc.getPages().add(pdfPage);
SvgSaveOptions saveOptions = new SvgSaveOptions();
saveOptions.CompressOutputToZipArchive = false;
pageDoc.save(dstFile.getAbsolutePath(), saveOptions);Test.pdf (7.8 KB)

The sample file attached has fewer issues than I noticed on other files which are internal to my company. But you can get an idea from the sample file


This Topic is created by sohail.aspose using the Email to Topic plugin.

@sparamesh

Thank you for contacting support.

Our colleague has shared related findings in the other thread created by you. Kindly follow up in respective thread.