Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Whitespace after SVG conversion

$
0
0
Hi there,

We're using Aspose.PDF to convert to SVG and there's a problem where the size of the SVG is not only different to the PDF, but it is also for some reason shrinking the content and putting a lot of whitespace around the content in the SVG.

The code is looking like this:

        private static void pdfToSvg(string pdfPath, string svgPath)  
        {            
            Aspose.Pdf.Document doc = new Aspose.Pdf.Document(pdfPath);
            Aspose.Pdf.SvgSaveOptions saveOptions = new Aspose.Pdf.SvgSaveOptions();
            saveOptions.CompressOutputToZipArchive = false;
            string outFileName = svgPath;
            doc.Save(outFileName, saveOptions);                        
        }

Any idea how to fix this? or any work arounds that we could use?

Thanks, Jalitha

Viewing all articles
Browse latest Browse all 3131

Trending Articles