I am using Aspose PDF .NET 9.2.1 library and trying to convert a PDF to an image. But there seems to be an issue the image transformation when the font is Helvetica Italic. When the font is Helvetica Italic, the text comes out very strange, as if they are dancing or something.
I have attached two images: one showing what it looks like on the PDF, and the other when I run the PDF to image transformation using Aspose PDF .NET.
This only happens for Helvetica Italic. When I change the font on the PDF to Arial Italic, everything turns out fine.
Any assistance would be greatly appreciated…
I have attached a sample PDF that replicates the issue I am having. It has a line with Helvetica font set in Italic. It also has a line with the Ariel font set in Italic.
When I run the following C# code:
Document d = new Document(@“C:\Temp\sample.pdf”);
Resolution resolution = new Resolution(300);
PngDevice pngDevice = new PngDevice(resolution)
RenderingOptions = new RenderingOptions
BarcodeOptimization = true
using (var m = new MemoryStream())
m.Position = 0;
var img = System.Drawing.Image.FromStream(m);
I will get an image with the weird looking line.
Let me know if this helps or if you need anything else.
We are sorry for the inconvenience caused. While testing the scenario with the latest version of Aspose.Pdf for .NET 9.2.1, we have managed to reproduce the reported issue and logged it in our bug tracking system as PDFNEWNET-37011 for further investigation and resolution. We will notify you via this thread as soon as it is resolved.
Please feel free to contact us for any further assistance.
Thanks for the quick reply! Do you have any ETA on when this might be resolved?