GNOME Bugzilla – Bug 598868
Evince does not recognize page size correctly on some PS documents
Last modified: 2013-02-25 18:26:47 UTC
I tried to look at PostScript files. These files were created from printing via a printer PostScript driver under Windows (as an intermediary step for PDF creation). Evince seems to assume that the default page format is "US Letter", despite the fact that those pages were A4-sized indeed, and "printed" as A4. As a result of Evince behavior, they appear truncated at the top when seen with it (A4 being both taller and narrower than US Letter). Is "US Letter" a hard-coded value ? It seems there is no way to configure Evince to another default value (US Letter could be convenient for US, but is not suitable for many other countries, especially in Europe). Best Regards.
Could you provide such a PDF as a test case ? It would greatly help because Evince does certainly not behave as you describe for all the PDF documents. So, I believe the problem is coming from the way this specific PDF document is handled.
OK, just need to remember which kind of document I was creating when reporting this issue. As soon as I've got a useful test case, I'll let you know.
So, any news?
(In reply to comment #3) > So, any news? Sorry, I've been unable to reproduce the problem. I propose to close this bug. Should I succeed to reproduce the problem, I will let you know.
k, closing as per last comment.
Created attachment 170080 [details] Test case : PS file for A4 format, truncated to US Letter
In the end, I succeeded in reproducing the bug and here above is a test case, so please reopen the bug. This test file has been produced (under Windows) by a PostScript driver for a color laser printer, and set for A4 format (standard page format in many countries). Thus it contains the relevant PS directive (line 288). However, opening it in Evince yields a US-Letter-format document, rather different (A4 is both narrower and taller than US Letter, so if something is within margins it could be truncated or event dropped). Best Regards.
Hm. Evince reports the PostScript file being US Letter (Pressing Alt+Enter on the open document). I guess that's the bug. FWIW: LC_PAPER=de_DE.UTF-8
> Hm. Evince reports the PostScript file being US Letter (Pressing Alt+Enter on > the open document). I guess that's the bug. When creating this test file I carefully checked the PS driver settings for page format (indeed set to A4), and searched the PS file for PageSize directives (indeed set to A4). Additionally, when printed to the real printer (fitted with A4 paper), there is no warning from the printer about bad page format. Nevertheless, under Evince document properties reports format being US Letter as you found, which is confirmed by visual aspect provided (in the real document all margins should normally be roughly the same width, but under Evince top margin appears much thinner than the 3 others), so it seems that Evince mistakenly interpreted the PS file as US Letter format, truncating the top of the page. Hope it helps. > FWIW: LC_PAPER=de_DE.UTF-8 Sorry I'm not familiar with each English acronym (English's not my native language). What's the meaning of FWIW ("for what is worth" ?) ? B.R.
This is a bug in libspectre for some special PostScript files. Please, follow the bug in https://bugs.freedesktop.org/show_bug.cgi?id=60982
*** Bug 694636 has been marked as a duplicate of this bug. ***