GNOME Bugzilla – Bug 777180
Pdf export seems to use wrong ppi setting
Last modified: 2018-04-18 14:07:10 UTC
When you export an image to pdf, it seems to be saved with a wrong ppi value. Various PDF-Readers and Gimp itself interpret the pdf as if the image was bigger in size and had a higher ppi value assigned than what was originally exported. Steps to reproduce: 1. Open Gimp, create new empty image with standard dimensions (640x400px@72ppi) 2. Export this newly created image as pdf 3. Open the exported pdf with gimp again -> The pdf import dialog defaults to a ppi value of 100 and suggests a size of 888x555px (sometimes 889x556px) instead of the expected 640x400px and 72ppi. PDF viewers like PDF-XChange Editor or SumatraPDF also show an image size of 888x555px. This looks like it could be related to bug 765166 .
I'm not even sure if the4 PDF import does try to get any PPI value from the imported file.
Created attachment 353732 [details] Simple test case - 100x100 pixels and 42 PPI
Created attachment 353733 [details] Test result Both Adobe Reader and Nuance PDF converter agree on a size of 2.38 inches or 60.48 mm.
So I assume the issue is just the import, as described in e.g. bug 781604.
Simon, can you test with the attached result and see what other viewers/readers are showing?
Just tested it and all of them give the same, correct results. PDF-XChange: image: 100px; page size: 60.5mm SumatraPDF: image: 100px; page size: 60.5mm Adobe Acrobat Reader DC: image: 100px; page size: 60.5mm Also I did some more testing with the steps to reproduce I gave above - and everything worked as expected. So I guess this report can be closed.