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

Free Support Forum - aspose.com

Creating image from PDF renders some text incorrectly

I’m generating a preview image of a PDF using PngDevice. Some of the text on the screen is miss aligned.


I’ve attached the sample PDF and the image output.

I’m using the following code to generate the image:
            MemoryStream stream = new MemoryStream();
Document pdfDocument = new Document(sourceFileInfo.FullFilePath);
        <span style="color:#2b91af;">Page</span> firstPage = pdfDocument.Pages.Cast<<span style="color:#2b91af;">Page</span>>().First();
        <span style="color:#2b91af;">PngDevice</span> pngDevice = <span style="color:blue;">new</span> <span style="color:#2b91af;">PngDevice</span>((<span style="color:blue;">int</span>)firstPage.MediaBox.Width, (<span style="color:blue;">int</span>)firstPage.MediaBox.Height);

        pngDevice.Process(firstPage, stream);



Hello Muppets,

Thanks for using our products.
<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif””>

I
have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as <span style=“font-family:“Arial”,“sans-serif””>PDFNEWNET-32386. We
will investigate this issue in details and will keep you updated on the status
of a correction.<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif””><span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif””>

We
apologize for your inconvenience.


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


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