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; }
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; }