Bug 319476 - feature request: fit to printable area
Summary: feature request: fit to printable area
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.15.5
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 276042 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-05-07 16:21 UTC by Darko Veberic
Modified: 2016-06-01 10:27 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.12.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darko Veberic 2013-05-07 16:21:26 UTC
currently okular sends the format of the printout unchanged when the printing option is single page per sheet. many scientific papers are typeset in US and therefore in letter format, an option like the "fit to printable area" in acrobat usualy solves this problem. it also helps printing pages from firefox or thunderbird where the outermost edge is marked with page numbers and url info but does not get printed under normal conditions since well inside of the printers "blind" region.

many thanks for this great piece of software! in last few versions okular really became the default pdf workhorse for my activities! thank you gain!

Reproducible: Always
Comment 1 Albert Astals Cid 2013-10-22 17:13:36 UTC
*** Bug 276042 has been marked as a duplicate of this bug. ***
Comment 2 Albert Astals Cid 2013-10-29 20:26:10 UTC
Git commit 5a1afc51e3bbe78cf9af2870ae41bf2eb79e7a64 by Albert Astals Cid.
Committed on 29/10/2013 at 19:44.
Pushed by aacid into branch 'master'.

Pass down to lpr the printer margins

This makes automagically work the printing on printers with
hard-margins since the QPrinter dialog margins are initialized to the printer
hard-margins. If you still want the old and mostly unuseful
behaviour of not having any margin (and thus your printer not printing things on the borders) you
can always set the margins to 0 in the dialog
FIXED-IN: 4.12.0

M  +5    -1    core/fileprinter.cpp

http://commits.kde.org/okular/5a1afc51e3bbe78cf9af2870ae41bf2eb79e7a64
Comment 3 Arne Babenhauserheide 2013-12-13 08:28:27 UTC
Thanks a lot for tackling this!
Comment 4 Miran B 2014-01-15 22:36:06 UTC
The fix does not seem to handle the case when the size of the pdf page is *smaller* than the printer page size.  A fully functional "fit to printable area" feature would enlarge the text in this case, rather than leaving it default size with large margins.

The shortcoming of this is best seen when printing 2 or more pages per sheet.   This is a useful way of saving paper when the original document has a default page size smaller than the print paper size.  At present, however, okular seems to first process the page for the specified paper size (say, US Letter), which leaves large margins around it, then shrinks it again to fit two or more pages into one.  The result are very small letters and lots of unused white space.

Please advise.  This issue fits the description of this feature request, as the same problem is handled with the "fit to printable area" option in the standard commercial pdf viewer, which enlarges a smaller page size to printer paper size, regardless of how many pages per sheet are being printed.  If needed, I'll gladly submit a new feature request, along with a sample file, detailed instructions how to reproduce the issue etc.

Thank you!
Comment 5 Albert Astals Cid 2014-01-15 22:44:27 UTC
please submit a new wish item
Comment 6 Hong Xu 2016-04-06 09:29:38 UTC
Has the issue been moved to a new ticket?
Comment 7 Tristan Miller 2016-06-01 10:27:38 UTC
(In reply to Hong Xu from comment #6)
> Has the issue been moved to a new ticket?

I couldn't find one, so I opened Bug 363788.  Please vote/comment there.