Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1011

Commented Unassigned: Issue when converting a PDF to PNG [1394]

$
0
0
I have noticed issues when converting large PDF (3.5MB and higher) that it freezes the system, and in the course of 5 minutes will create temp files over 10GB in size.

Let me know if you need any info
Comments: Below is the code I have. I need the PDF to append vertical to one image. > public static byte[] ConvertPDFtoPNG(byte[] data) { byte[] output = null; MagickReadSettings settings = new MagickReadSettings(); settings.Density = new PointD(300, 300); using (MagickImageCollection images = new MagickImageCollection()) { images.Read(data, settings); using (MagickImage vertical = images.AppendVertically()) { vertical.Quality = 100; vertical.Format = MagickFormat.Png; vertical.HasAlpha = false; vertical.BackgroundColor = new MagickColor("#FFF"); output = vertical.ToByteArray(); } } return output; }

Viewing all articles
Browse latest Browse all 1011

Trending Articles