-
Hello, I was able to read and convert a PDF file into a PNG format and extract tiles. Yet, I haven't found the right combination for certain files. Here is a sample file: Please pay special attention to the tables at the left of the document. The lines and the text on these tables are loosing a lot of quality on the conversion process. Here some extracted tiles to illustrate the result: In this png files you can appreciate how the table lines are not super crisp and get cutout a lot. I was able to get a better conversion using Acrobat Reader exporting the file to a PNG using the Anti-Aliasing param to "Type Optimized Hinted". I have tried setting different color schemas, compression, quality, anti-aliasing (regular, text, and stroke), etc..., with no luck. At the end I need to be able to get something like the following image (quality-wise) using Magick.Net and Ghostscript: Png 4 (please note the table looks more "complete"): Any help will be more than appreciated!! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
The problem with your PDF file is that for some reason that part of the PDF file is an image. And when Ghostscript resizes the image you appear to get a low quality result. After some research it looks like with an option that will allow you to get a better quality image but there is no way to pass that Ghostscript option now so I will need to figure out how we can make that possible. With that extra option I get the following output: Will need to talk with the rest of the team to figure out how to make this option available to you. |
Beta Was this translation helpful? Give feedback.
-
Dear @dlemstra, thanks a lot for your prompt response. I know you guys are extremely busy so I hope you can get to this item in your todo list as fast as possible. This library is excellent and we have been using it for long now. |
Beta Was this translation helpful? Give feedback.
-
Dear Magick.NET team, |
Beta Was this translation helpful? Give feedback.
Dear Magick.NET team,
I just finished up testing the new release and I am happy to report the issue reported on this thread has been successfully resolved.
I take this opportunity to express gratitude for your hard work and prompt response.