We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Pdf2SVG problem with text size

With this pdf(and few others) http://ge.tt/3uOIE7n2 Aspose return svg with weird text size http://ge.tt/7dhbE7n2

    Document doc = new Document("D:\\pdf\\11892_TYpisch_eMag.pdf");
// instantiate an object of SvgSaveOptions
    SvgSaveOptions saveOptions = new SvgSaveOptions();

// do not compress SVG image to Zip archive
    saveOptions.CompressOutputToZipArchive = false;
// resultant file name
    
    for (int pdfPage = 1; pdfPage <= doc.getPages().size(); pdfPage++) {
      // Create a new Document object
      Document newDocument = new Document();
      // Get the page at a given index of the Page Collection
      newDocument.getPages().add(doc.getPages().get_Item(pdfPage));
      // Save the new PDF file
      newDocument.save("D:\\temp\\as\\1\\page" + pdfPage + ".svg", saveOptions);
    }

@kvidmco,

We managed to replicate the said problem in our environment. It has been logged under the ticket ID PDFJAVA-37204 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates.