Bug 323563 - incorrect rendering while viewing PDF; it does print correctly
Summary: incorrect rendering while viewing PDF; it does print correctly
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-15 19:44 UTC by Unknown
Modified: 2013-08-29 21:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
PDF that doesn't render correctly (125.29 KB, application/pdf)
2013-08-15 19:45 UTC, Unknown
Details
This is the wrong rendering seen in okular (63.38 KB, image/png)
2013-08-15 19:45 UTC, Unknown
Details
This is the correct rendering seen in evince (25.29 KB, image/png)
2013-08-15 19:46 UTC, Unknown
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2013-08-15 19:44:18 UTC
Viewing a very simple PDF results in an incorrect display on the screen. This PDF has only two lines of text, and both of them should be in the top half of the page. Okular shows one line in the top half of the page, and the other line on the bottom half. Printing the page results in correct output on the paper.

Reproducible: Always

Steps to Reproduce:
1. View the PDF CD_label_CRtheme.pdf. I will attach this file.
Actual Results:  
Notice that the two lines of text are not both in the top half of the page. I will attach a screenshot okular_wrong.png to demonstrate this.

Expected Results:  
Instead I expect that the PDF would be displayed correctly on the screen, as well as on paper. I will attach a screenshot evince_correct.png to demonstrate this.

I am using version 0.14.3 in Debian stable.
Comment 1 Unknown 2013-08-15 19:45:11 UTC
Created attachment 81731 [details]
PDF that doesn't render correctly
Comment 2 Unknown 2013-08-15 19:45:56 UTC
Created attachment 81732 [details]
This is the wrong rendering seen in okular
Comment 3 Unknown 2013-08-15 19:46:30 UTC
Created attachment 81733 [details]
This is the correct rendering seen in evince
Comment 4 Albert Astals Cid 2013-08-15 19:57:55 UTC
Do you have the Trim Margins option enabled?
Comment 5 Unknown 2013-08-15 22:49:21 UTC
I do have Trim Margins enabled, and unchecking it makes the PDF display correctly.

Though it is a mystery to me how that box got checked. I am quite certain I didn't check it myself. Is it perhaps turned on by default? I can see that it is a useful option to have, but it certainly confused me when I didn't know what was going on.

Anyway, thanks a lot for the help, and sorry for the noise.
Comment 6 Christoph Feck 2013-08-29 21:35:39 UTC
I just tested with a clean config. Trim Margins is not enabled by default, so at some point you enabled it. I think it makes sense that Okular remembers this option between invokations, because someone might be highly annoyed, if he had to change it every time.