PDF Import filter: crashes when importing large image PDF or specifying high resolution
Submitted by Dan Aylward
I have several single-page PDF files containing scans of building plans. I loaded the smaller ones (e.g., 14400 pixels by 10889, RGB, 18.7 MB on disk) specifying 600 DPI, and they loaded up fine. However, all the larger ones (e.g., 21600 by 14433 pixels, RGB, 37.3 MB on disk) imported at 600, or even 500 DPI cause the PDF importer plug-in to crash. Lowering the DPI to 200 or 100, it imports fine, but then I'm not getting the full resolution of the image. I also tried with a smaller PDF specifying a high resolution (e.g., 2200 DPI, such that the resulting image is on the order of 20000 pixels by 15000 pixels or more), and received the same crashing error.
- Choose File->Open, causing the "Open Image" dialog to appear.
- Select a PDF file that contains a single page with a large image that is on the order of 20000 pixels by 15000 pixels, color (haven't tried all variations).
-Click "Open" on the "Open Image" dialog, causing the the "Import from PDF" dialog to appear. -Enter "600.000" in the "Resolution" field, specify "pixels/inch". -Choose "Images" in the "Open pages as" field -Verify that the "Width" and "Height" fields show values in the range of 20000 and 15000 pixels or more. -Click the "Import" button on the "Import from PDF" dialog. -Within a few seconds, the following error appears:
========= Plug-in crashed: "file-pdf.exe" (C:\Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins\file-pdf.exe)
Opening 'E:\OceTDS1805.pdf' failed:
Procedure 'file-pdf-load' returned no return values
-Repeat the repro steps with a PDF containing a smaller image, but specify a higher resolution in the "Import from PDF" dialog, such that the resulting image is around 20000 by 15000 pixels. -The same error occurs on import.
Expected results: Large PDF images should load correctly; if they load in Acrobat, they should be able to load in the GIMP. If there is a technical limitation to the size of image that the PDF importer can handle, the import plug-in should still not crash, and the error should be friendlier or the "Import from PDF" dialog should not allow the user to exceed the limit.
OS - Windows XP Computer - Dell Inspiron 9300, 2GB RAM.