Bug 347976 - Rotated ps(.gz)
Summary: Rotated ps(.gz)
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: PS backend (show other bugs)
Version: 0.22.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-19 23:44 UTC by Antony Lee
Modified: 2018-11-28 10:05 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antony Lee 2015-05-19 23:44:51 UTC
Some ps.gz file is shown upside down.  Gunzipping into a ps still results into an upside-down display, but running ps2pdf on it results in a rightside-up page, which makes me think that the issue is on okular's side, not on the ps file's side.

Reproducible: Always

Steps to Reproduce:
1. Open http://www.fftw.org/pldi99-slides.ps.gz with okular, observe an upside down file.
2. Run gunzip and ps2pdf on the file, open the pdf and observe a rightside up file.

Actual Results:  
The ps.gz is upside down.

Expected Results:  
The ps.gz should be rightside up.
Comment 1 Antony Lee 2016-05-09 15:42:34 UTC
Kindly bumping the issue.  Anything I can do to help?
Comment 2 Luigi Toscano 2016-05-09 15:55:48 UTC
Evince, after uncompressing the gz file (which can't be open directly) behaves the same, but it uses libspectre like Okular.
gv, which uses ghostscript directly, also shows the document upside-down.
But ps2pdf belongs to ghostscript too, so maybe there is a flag somewhere which is not used; anyway, it is likely that it could be fixed in libspectre.
Comment 3 Alex Cherepanov 2018-11-28 02:43:03 UTC
By default Ghostscript rotates generated PDF pages to have most of the text in a normal reading orientation. This feature can be turned off.

ps2pdf -dAutoRotatePages=/None pldi99-slides.ps pldi99-slides-none.pdf 

The PS file appears upside down because viewers interpret" %%Orientation: Landscape" comment in the file, but Document Structure Convention doesn't specify how to make landscape orientation out of portrait.
Comment 4 Antony Lee 2018-11-28 10:05:28 UTC
OK, so the file likely has incorrect (or at least underspecified) metadata.
Feel free to close if you deem this not-a-bug.