Bug 20138 - A particular eps file isn't opend correctly in Okular
Summary: A particular eps file isn't opend correctly in Okular
Status: RESOLVED MOVED
Alias: None
Product: libspectre
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Carlos Garcia Campos
QA Contact: Carlos Garcia Campos
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-16 05:07 UTC by Diego
Modified: 2018-10-12 21:36 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
EPS file that doesn't open correctly in Okular (wrong orientation, wrong paper size) (399.52 KB, application/postscript)
2009-02-16 05:07 UTC, Diego
Details

Description Diego 2009-02-16 05:07:11 UTC
Created attachment 22977 [details]
EPS file that doesn't open correctly in Okular (wrong orientation, wrong paper size)

I reported a bug against Okular and a developer told me that the problem is either in the file itself or in libspectre so he suggested me to report the bug here.
The original report is here:
http://bugs.kde.org/show_bug.cgi?id=184313

I copy the text:

How to create the file:
a) download PDF file from:
http://marte.unican.es/documentation/appsched-proposal.pdf
b) print page #6 to postscript from Okular
c) open it with Scribus, select the figure at the top of the page
d) export the selection to eps

Results:
1) preview in Dolphin is right;
2) the image in Gwenview is shown correctly;
3) if you convert the image to pdf with "epstopdf" command Okular can show it correctly too;
4) the eps in Okular isn't displayed right. You get the image at the bottom left of a horizontally oriented A4 paper. By the way, to me only this particular file doesn't work: I can see other eps with bounding boxes just fine.

The file giving problems is attached.
Comment 1 Carlos Garcia Campos 2009-03-22 10:00:03 UTC
The problem is that this document has a page bouding box bigger than the document bounding box. libspectre always takes the page bounding box when it's present for the given page. In this case the page bounding box is A4 size. And it's rendered horizontally oriented because there's also a PageOrientation: Landscape comment for the page. 

So, I don't think it's a bug. 
Comment 2 Diego 2009-03-23 03:06:47 UTC
I see... so this file is a bit broken because it can lead to different interpretations (e.g. the different visualization between Gwenview and Okular).

Which would be the best choice to have all the applications behave the same way? Should I file a bug against Gwenview to ask them to get the same behaviour as libspectre? Should I file a bug against Scribus so that the exported eps should not have different page and document bounding box?

Thanks.
Comment 3 Carlos Garcia Campos 2009-03-23 03:56:34 UTC
Well, I'm not sure, and that's the reason why I haven't closed this bug as NOTABUG. I think we are following the PostScript spec. FWIW, gsview gives me the same output than libspectre, so I would probably file a bug to Scribus. 
Comment 4 GitLab Migration User 2018-10-12 21:36:52 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/libspectre/libspectre/issues/20.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.