SVG not viewing properly in viewer when converted through Aspose.PDF

Hi All,

We are converting PDF to SVG images using Aspose.PDF to show in slide show using crorcodoc viewer. But due to some internal issue of SVG images Zoom functionality is not working properly only for those SVG images that are converted using AsposePDF , we have check with other images converted through other libraries has no issue in Zoom, so issue must be conversion using. Aspose.PDF
Below is the code of conversion of PDF to SVG using Aspose

// Conversion to SVG for Vector Graphics
PdfFileEditor pdfEditor = new PdfFileEditor();
int fileNumber = 1;
// Split to pages
MemoryStream[] outBuffer = pdfEditor.SplitToPages(sourceFile.FullName);
// Save individual files
foreach (MemoryStream aStream in outBuffer)
{
FileStream outStream = new FileStream(dir + @"\File_" + fileNumber.ToString() + “out.pdf", FileMode.Create);
aStream.WriteTo(outStream);
outStream.Close();
Aspose.Pdf.Document pdfDoc = new Aspose.Pdf.Document(dir + @"\File
” + fileNumber.ToString() + “out.pdf");
SvgSaveOptions saveOptions = new SvgSaveOptions
{
// Do not compress SVG image to Zip archive
CompressOutputToZipArchive = false,
TreatTargetFileNameAsDirectory = false,
};
pdfDoc.Save(dir + @"\page-" + fileNumber.ToString() + “.svg”, saveOptions);
if (System.IO.File.Exists(dir + @"\File
” + fileNumber.ToString() + “out.pdf"))
{
System.IO.File.Delete(dir + @"\File
” + fileNumber.ToString() + “_out.pdf”);
}
fileNumber++;

                }

Please help

@Rkadiwala,

Can you please share the document so I can investigate the problem?

@carlos.molina ,Thanks in Advanced
Here is the file, Just wanted to highlight not only attached file but all the PDF file that are converted using Aspose.PDF has Zoom issue with viewing library crocodoc viewerPeopleDev.pdf (1.0 MB)

@Rkadiwala,

I just run the following code and no zoom issues:

private void Logic()
{
    Document doc = new Document($"{PartialPath}_input.pdf");

    var saveOption = new SvgSaveOptions();

    doc.Save($"{PartialPath}_output.svg", saveOption);
}

The result:
ConvertPdfToSvg_2_output.zip (928.9 KB)

@carlos.molina , Thank you for looking into it Just wanted to know where you checked zoom functionality. Also output you shared are missing vector graphics from the actual PDF
PDF page
image.png (53.0 KB)

output
image.png (48.4 KB)

@Rkadiwala,

I did not noticed that. I will create a bug for the deav team. But before this, just so I do not miss anything important comunicating to the devs.

Beside those vector graphics, what else is missing?

The Zoom I opened the browser without any scale(100 zoom) and the pictures all look the same size. I do not have an special tool for it.