Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Not converting to PDF properly

$
0
0
It is limited to a small set of image types that cannot read directly from a memory blob. It this case it is happening because Magick.NET uses Ghostscript to convert the PDF. The following is happening:
  1. Format of data in stream is checked.
  2. If PDF then write the data of the stream to a temporary file.
  3. Tell Ghostscript to convert the PDF to a PNG file.
  4. Read PNG files and return image.
As you can see the PNG format is used in step 3 and the fix I added will set the format to PDF in step 4.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>