I have noticed that the rendered output is smaller than the original, is there a scaling option?
The converted images seem to be of lower quality that the original. The originals were JPG, I see that they are converted as PNG. Can the quality be improved?
Some of the rendering alignment is out, I’d post a copy here but I don’t know how.
Would you please share your sample PDF document with us. We will test the scenario in our environment and address it accordingly. You can please upload your document by using upload button in post editor. Upload_Files.png (8.9 KB)
I have attached the following which show my issues if converted using my sample code posted earlier -
Sample1 - this clearly shows the size difference in the rendered output, scaling the PDF viewer to 100% and comparing the size of the HTML against it, the HTML document is smaller. Also this sample illustrates the image quality difference.
Sample2 - this shows the alignment issues I am experiencing.
We have tested the scenario in our environment using Aspose.PDF for .NET 18.8 and will like to share following findings:
Difference in size of content depends upon the application or software which you are using to view the PDF. Different applications shows PDF documents with different scaling and it is not related to the quality of font or images. If you open PDF document (i.e. Sample1.pdf) with chrome, you will notice the content renders with same size.
Please check attached output which was generated on our side using following modified code snippet and image quality was fine in the output HTML.
We were unable to notice any alignment issue in the generated output at our side using same code snippet. Would you please share some screenshot displaying the issue that you are facing. We will again test the scenario in our environment and address it accordingly.
Thank you for taking the time to look at this for me.
The amendments to the code for Sample1 has solved my issues, thank you.
However, the sample output you have posted here for Sample2 does illustrate my alignment issues. Have a look at my attached image, this shows a small extract from the original PDF (left) and from the HTML output (right).
You should see that the text alignment within the gridlines is out.
We have again checked the HTML (i.e. Sample2.html) in our environment and were unable to notice the alignment issue. Please check attached screenshot. Alignment.png (127.8 KB) Please note that earlier shared Sample2.zip was generated using the same code snippet shared in our reply. Would you please confirm if you have checked the same file in your environment.
In case things do not work as expected in your environment, please share a sample console application demonstrating the same issue in any environment. We will again test the scenario in our environment and address it accordingly.
We were able to notice the alignment issue with IE11 and logged an investigation ticket as PDFNET-45276 in our issue tracking system. We will further look into this issue and keep you posted with the status of its correction. Please be patient and spare us little time.
We have recorded your concerns and will definitely consider them while investigating the logged issue. As soon as we have some definite updates in this regard, we will surely let you know. Please spare us little time.
Thank you for your update. However, using 18.12 and the code snippet you have provided along with sample2.pdf, the html output viewed in IE11 is still misaligned.
We apologize for the confusion and misinformation. Your issue has been resolved already however, its fix will be included in Aspose.PDF for .NET 19.1 which will be releasing in next month. As soon as API revision is available for download, you will be able to use earlier shared code snippet and obtain correct output.