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.
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.
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.
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.
-- 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.