After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 598868 - Evince does not recognize page size correctly on some PS documents
Evince does not recognize page size correctly on some PS documents
Status: RESOLVED NOTGNOME
Product: evince
Classification: Core
Component: PS
2.22.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 694636 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-10-18 20:48 UTC by A. M. Reg
Modified: 2013-02-25 18:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case : PS file for A4 format, truncated to US Letter (77.74 KB, application/postscript)
2010-09-12 13:17 UTC, A. M. Reg
Details

Description A. M. Reg 2009-10-18 20:48:36 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.
Comment 1 Emmanuel Fleury 2009-11-29 17:39:01 UTC
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.
Comment 2 A. M. Reg 2009-12-23 12:49:19 UTC
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.
Comment 3 Tobias Mueller 2010-05-04 18:58:11 UTC
So, any news?
Comment 4 A. M. Reg 2010-05-11 00:49:04 UTC
(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.
Comment 5 Tobias Mueller 2010-05-11 07:52:08 UTC
k, closing as per last comment.
Comment 6 A. M. Reg 2010-09-12 13:17:25 UTC
Created attachment 170080 [details]
Test case : PS file for A4 format, truncated to US Letter
Comment 7 A. M. Reg 2010-09-12 13:24:32 UTC
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.
Comment 8 Tobias Mueller 2010-09-13 11:30:46 UTC
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
Comment 9 A. M. Reg 2010-09-13 20:42:23 UTC
> 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.
Comment 10 Germán Poo-Caamaño 2013-02-17 01:19:24 UTC
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
Comment 11 Germán Poo-Caamaño 2013-02-25 18:26:47 UTC
*** Bug 694636 has been marked as a duplicate of this bug. ***