PDF to PNG - SVG problem

Hi,

I’m trialling Aspose.PDF for .NET and using the
PNGDevice to convert a multi-page PDF to PNG files. On some pages of
the PDF there are multiple SVG images, however only the first SVG image
on each page renders. Is this a bug, or do I need to do something
differently?

I can provide the PDF and PNG files if it helps.

Regards,
Andrew.

Hi Andrew,

Thanks for your interest in our products.

Can you please share the source PDF document and the resultant PNG image so that we can test the scenario at our end. We apologize for this inconvenience.

Hi,


I’ve attached an example PDF and output PNGs. Here’s the code I’m using.

Thanks,
Andrew.

public string ConvertToPNGs(Stream pdfFile, string outputFolder, int dpi)

{

var png = new PngDevice(new Resolution(dpi));

var pdfDocument = new Document(pdfFile);


var pageIndex = 0;

var outputId = Guid.NewGuid().ToString();

var baseFilename = string.Format("{0}\\{1}", outputFolder, outputId);


foreach (Page page in pdfDocument.Pages)

{

// Update the page number.

pageIndex++;


string filepath = string.Format("{0}-{1}.png", baseFilename, pageIndex);

png.Process(page, filepath);

}

return outputId;

}



Hi Andrew,

Thanks for sharing the resource files.

I have tested the scenario and have managed to reproduce the same problem. It seems be a problem in our product while rendering this PDF document in PNG image format. For the sake of correction, I have logged this problem as PDFNEWNET-31030 in our issue tracking system. We will further look into the details of this problem and will keep you updated on the status of correction. Please be patient and spare us little time. We are sorry for your inconvenience.

Thanks.


How long does it typically take to get a fix through? Just wondering if I wait for it, or find another solution?

Cheers,
Andrew.

Hi Andrew,

As we just have been able to discover this issue, so it will
take little time for us to investigate and figure out the root causes of
this problem. However, as soon as we have some updates regarding its
resolution, we would be more than happy to update you with the status of
correction. Please be patient and spare us little time.

The issues you have found earlier (filed as PDFNEWNET-31030) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.