pvginkel / PdfiumViewer

PDF viewer based on Google's PDFium.
Apache License 2.0
972 stars 418 forks source link

Render Large PDFs eg 1.5x2meters to Image at 600dpi not possible #181

Open cyberchen123 opened 6 years ago

cyberchen123 commented 6 years ago

Is there anyway this could be done? For smaller PDF like A2 its working, but at bigger Formats System.Drawing seems to die. Is it possible to use a alternative to Systen.Drawing? Thx U Rock 🥇 :)

CanadianHusky commented 6 years ago

1500x2000mm = 59.05x78.74 " x 600dpi = 35430 x 47244 pixels image. at 24bit RGB Image, 3 bytes per pixel image memory is required. If you do the math, you need 4789 MegaByte of RAM, or 4.7 GB! There is no way .NET GDI subsystem or any 'normal' program can fit that into memory. Those size images are printed in "stripes" by high end RIP Software with a 5 digit price tag...