[okular] [Bug 184742] Page orientation with dvi

John M. Novak bugzilla_noreply at kde.org
Sat Feb 12 01:09:55 GMT 2022


https://bugs.kde.org/show_bug.cgi?id=184742

John M. Novak <kdebug at dev.jade-lynx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kdebug at dev.jade-lynx.com

--- Comment #5 from John M. Novak <kdebug at dev.jade-lynx.com> ---
I took a look at reproducing this; as stated, the issue can be reproduced.
Using the .dvi file attached to the report, we can see that it renders in
Okular in a portrait-mode page, with contents being cut off to the right side
of the page. (Checked mostly in  V21.08.1, though I did a quick cross-check in
a build of V22.03.70.)

I think this is more of a feature request than a bug; the issue is that as far
as I can tell, the DVI format does not store page orientation or size
information in its standard form. If you use the tool dvipdf, you get the same
result as Okular. You can use dvips -t landscape <file> to get a PS file
rendered in landscape; but you must supply the option yourself, it's not
embedded in the file. Thus, I don't know that Okular can do any better by
default with DVI.

Just for completeness, confirmed that on my machine rotating doesn't help
(rotates the page and its contents together), nor does printing (attempting to
print landscape for me still printed portrait -- not immediately sure if that's
a separate issue or not, or just something related to Linux printing).

We could envision an option in Okular to specify the page size & orientation to
use with DVI files, similar to dvips '-t' option (though likely a menu, or
somesuch); at this point, I couldn't say what the best approach for that would
be.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list