Bug 347631 - Option to shrink/enlarge/don't scale printed output missing
Summary: Option to shrink/enlarge/don't scale printed output missing
Status: RESOLVED MOVED
Alias: None
Product: okular
Classification: Applications
Component: printing (show other bugs)
Version: 0.21.3
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-12 18:59 UTC by Pascal Niklaus
Modified: 2015-06-03 23:19 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Niklaus 2015-05-12 18:59:14 UTC
This is a recurring issue, and I am not sure whether it is related to okular or QPrinter, but it really is a show stopper that already existed in recent KDE4 releases.

The print dialogue lacks options to  shrink PDF pages to paper size / enlarge to fit paper size / don't scale (100%) option. 

All these are critical, but the "don't scale" option is important for printouts that have to be to scale, while the "fit to paper size" option is important for other documents.

I find myself printing via KPrinter4 in these cases...

An example of a document that does not print correctly is here (a large part of the 1st page is cut off). Interestingly, okular says it is A5 format, but when printing it exceeds the margins of an A4 page:

http://www.uni-saarland.de/uploads/media/Promotionshandbuch_-_English_Doctoral_Candidates.pdf


Reproducible: Always

Steps to Reproduce:
1. Open e.g. PDF listed above 
2. Print 1st page


Actual Results:  
Part of page clipped (not on A4 printout)

Expected Results:  
1) Scaling options in Print dialog
2) Even without options, the document should at least print to 100% scale, which would be smaller than an A4 page (KPrinter4 does it correctly)
Comment 1 Pascal Niklaus 2015-05-13 07:14:44 UTC
I really think this should have a higher priority than "wishlist". If I print a PDF document and half of it is not on the printout (see example above), then the printing component is basically *broken*.
Comment 2 Albert Astals Cid 2015-05-13 19:52:23 UTC
Sorry but that's not what your subject says, your subject says that you want to shrink/enlarge/don't scale, and that's a wish.

If you're complaining that printing fails, that's a different bug. 

Never report multiple things in the same bug report because it makes it impossible to manage them.
Comment 3 Pascal Niklaus 2015-05-15 08:12:28 UTC
You are right, the subject line maybe was not clear. Nevertheless, I think that scaling is absolutely crucial for printing.

There are documents that need to be printed at 100% scale (e.g. technical drawings with defined scale). 

Then, there are documents that have another page size defined than the printer's paper format. Then, one may want to print re-scaled so that it fits e.g. an A4 page without the margins being lost (e.g. A5, as in the example above, or "letter" on "A4" paper )

Currently, either okular or some printing component do not handle this properly and it is impossible to print these document in an acceptable fashion. 

One more example: I tried printing https://www.gnu.org/software/emacs/manual/pdf/eintr.pdf, with 2 pages per sheet. Result: The top part of the pages is off the paper margin and the pages are not centred on the sheet, so that I can't read the document.
Comment 4 Gauss 2015-05-22 10:18:40 UTC
I also consider this a bug. I have the feeling that recently something in the printing process changed with KDE 4.14 or some of its point releases.
I can reproduce the behaviour described above, I thinlk the main problem is that I can no longer center pages when printing.
When I print a smaller document to an A4 page, then this document is scaled up an pushed into the upper right region of the page, making the upper right region of the paper no longer readable.
However this works with other tools (e.g. Kate, Calligra) relying on the KDE printing services. It also works with Evince.

A possible remedy I found with Okular is to print the document into a pdf with the desired pagesize and then printing this pdf. It not scaled but at least centered and not broken.
Comment 5 Albert Astals Cid 2015-05-24 04:14:41 UTC
I told you to not mix things and you went and added a different bug report to the bug, sorry but no, strictly one bug report or wish request per bugzilla item, so i'm closing this as invalid.
Comment 6 Pascal Niklaus 2015-05-24 05:34:56 UTC
As requested, resubmitted as two separate bugs: 348171 and 348172