Bug 192189 - PDF printing doesn't scale to margins of paper.
Summary: PDF printing doesn't scale to margins of paper.
Status: RESOLVED DUPLICATE of bug 312826
Alias: None
Product: okular
Classification: Applications
Component: printing (show other bugs)
Version: 0.10.4
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-10 02:00 UTC by Robin Laing
Modified: 2014-05-15 22:37 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Image of 4 different margin settings. (381.48 KB, image/jpeg)
2009-05-10 02:15 UTC, Robin Laing
Details
Screen Capture of print preview (422.16 KB, image/jpeg)
2009-05-10 02:23 UTC, Robin Laing
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Laing 2009-05-10 02:00:55 UTC
Version:           0.8.2 (using 4.2.2 (KDE 4.2.2), 4.2.2-12.fc10 Fedora)
Compiler:          gcc
OS:                Linux (i686) release 2.6.27.21-170.2.56.fc10.i686

On a monthly basis, I download a skymap from http://skymaps.com/.

I try to print out the pdf file with Okular and both the right and left side are cropped.  I change the margins expecting the pdf page to be scaled to fit the page, but again it just crops the right and left side (long side of page) of the printing.

If I change the top/bottom margins (narrow part) nothing is changed.  I even tried 2cm margins with no change to the printing.

There is no problems in the print preview.  I had no problems with kpdf printing these pdf files.
Comment 1 Robin Laing 2009-05-10 02:15:06 UTC
Created attachment 33504 [details]
Image of 4 different margin settings.

All these are printed on an HP Business Inkjet 2100 that has worked perfectly with Kpdf.  The top print was with the Top/Bottom margins set as 2cm each.  Ruler is there to show the width.  As you can see, the top margin is set to 2cm but the image is still printed at 1.45cm.
Comment 2 Robin Laing 2009-05-10 02:23:58 UTC
Created attachment 33505 [details]
Screen Capture of print preview

This is a screen capture of the print preview dialog.  You will notice that there is no cropping.  Note that there is no cropping of the image on any sides.

I don't think that there is any linking between the print settings and the preview so the preview is not a good indicator of how printing is going to look.
Comment 3 ietc 2009-06-23 01:01:53 UTC
Do you think this could be related to Bug 196590 ?
Comment 4 Robin Laing 2009-07-13 08:14:19 UTC
It may be related but the printing isn't being moved.  The edges are being clipped no matter what I do with the margins.  I printed the same document with kpdf on a Fedora 7 computer today and had to adjust the margins a bit to get it to print properly.  Adjusting the margins in Okular doesn't fix the problem.

Maybe the skymaps.com pdf just shows the problem more.
Comment 5 Lars Winterfeld 2009-12-26 00:50:02 UTC
I also think, it would be nice, if I could say "print this image on the full page", and it gets scaled accordingly just as much as needed, still keeping the width:height ratio of the original image and respecting the page margins of the paper.
Comment 6 Robin Laing 2009-12-29 06:01:49 UTC
Last week I printed with Okular on a F10 machine and the image did adjust to the page margins.  I have yet to try it with F10 on the same machine.

This was printing from a client to a print que on a different computer then to a cups printer.  When I get back to work, I will try it with F12 and different printers.
Comment 7 Mikolaj Machowski 2010-01-05 23:51:42 UTC
Confirming problem for 0.9.80 from sources.
Comment 8 Daniel Finistauri 2010-04-12 15:20:34 UTC
I'm having a similar problem on Arch 64, except when I print, the bottom margin is essentially neglected resulting in the printed page to be shifted downwards. Left-right centering is unaffected.
Comment 9 tony 2010-06-15 15:10:13 UTC
Confirmed in Okular version 0.10.4 from KDE 4.4.4 under archlinux 32bit.
Setting page margins under printer properties has absolutely no effect.
Comment 10 Myriam Schweingruber 2011-12-27 17:27:09 UTC
Is this report still valid for a more recent okular version?
Comment 11 Robin Laing 2012-01-11 04:42:31 UTC
I have just had a chance to test on 0.13.3 (from about)  Still the same problem on Fedora.

I made three printouts with a change in the margins (top and bottom) from 1/2 inch to .75 inch and all margins to 1 inch.  No change.

I know that Evince 3.2.1 prints as expected and works.

okular-4.7.4-1.fc16.x86_64 (number is KDE version)
kernel-3.1.7-1.fc16.x86_64
evince-3.2.1-2.fc16.x86_64

Fully up-to-date.

I have had some printing issues with other documents but this is the worst.

I also printed a different two page document and tried to increase the margins to 1 inch on all sides.  No change.  Yes. the bug still exists.

Do I need to take pictures again?
Comment 12 Albert Astals Cid 2012-12-08 22:39:49 UTC
User did provide info, moving back to unconfirmed
Comment 13 Robin Laing 2012-12-12 04:15:19 UTC
I just made sure that my system was up to date and did a test.  Still issues with the margins.

I can set the margins to what ever I want.  1.5 inch in the print dialog on all sides and there is no change.  The print preview shows a margin around the document.  Of course it isn't based on the margin setting that I set in the print dialog.

When it comes to printing, if the default won't work in Okular, I change to a different program.

Download the latest skymap from Skymap.com.  This is the worst case test file.

I just tried with multiple files and still the same issues.  I cannot set the print margins.  The preview shows margins but the actual print still has no margins.  Other linux programs work as expected.

From the about info.
Version 0.14.3 
KDE 4.8.5
Comment 14 Robin Laing 2014-05-10 20:30:01 UTC
I have been using a different program to print pdf's for so long, I forgot about this bug until I saw the update.

Since then I have changed printers and updated OS as well as Okular has been updated.  Today I tested printing out the file that caused the most issues and it worked as expected.

Changing the margins in the print dialog still doesn't change the margins on the print out even though the preview changes.
Comment 15 Albert Astals Cid 2014-05-11 14:35:31 UTC
You mean the preview in the dialog? That preview is fake :D

Can you say which okular and cups version are you running?
Comment 16 Robin Laing 2014-05-12 00:59:20 UTC
Okular  4.11.5-1.fc19
cups  1.6.4-5.fc19

As I am running an HP laser printer I use hplip.  Just to cover all bases.
hplip - 3.13.11-4.fc19

I did confirm that the printer is working through cups from the cups logs and a test print.
Comment 17 Albert Astals Cid 2014-05-15 20:06:14 UTC
Ok, so this is a dupe of 312826

Well not really, you have a working cups but an old okular that doesn't have the bugfix, and 312826 is about having the bugfix but cups broken.

If you're lucky and you update your KDE without updating your cups it should work.

*** This bug has been marked as a duplicate of bug 312826 ***
Comment 18 Robin Laing 2014-05-15 22:37:35 UTC
I just checked and there is no update on my version of Linux (Fedora 19).  I will check the F20 machines I have.