KDE: margins incorrect when printing because of fit-to-page option

I'm attempting to print a PDF file with Okular (happens with other KDE/Qt applications as well) to my HP Deskjet D2530 printer. The PDF has one inch margins on all sides, but when printing, additional space is added to the margins.
The page prints perfectly using lp:
$ lp /Path/to/PDF.pdf
Should also note it prints perfectly with non-KDE applications such as epdfview.
I turned on debug mode in CUPS to find what options KDE sends to CUPS. I narrowed it down to the "fit-to-page" option causing the issue.
I can reproduce the incorrect margins exactly with this command:
$ lp -o fit-to-page -o PageSize=Letter /Path/to/PDF.pdf
Now the issue I'm having is disabling this. I see nowhere in the KDE print dialog to disable fit-to-page, and have searched CUPS' documentation for a way to disable it on that end, but could not find anything. Searching for this issue has similiarly turned up nothing. I've also tried adding "fit-to-page=false" to ~/.cups/lpoptions with no result. I can't be the only one who has dealt with this. Is there some configuration option I'm missing somewhere or should I report this as a bug upstream?

hello!
i have a similar problem:
https://bbs.archlinux.org/viewtopic.php … 3#p1402373
for me the fit to page cmdline option does not apply and the output is always bigger than one page ... same goes for print menues with the option to turn on/off fit to page ...
Last edited by brrbrrbruno (2014-04-09 17:22:04)

Similar Messages

  • Header font goes out of column width in fit to page option for print

    Hi,
    I've tried to print wide report as landscape with fit to page option. it printed out good but when i saw column header, header has missed some words.for e.g my column name is "Legacy Order" and it's showing only "Legacy Or" even i wrapped that column. it's works fine with 90% scalling option.i'm still confusing because there are over 1000 reports existed and i think i will have to touch all reports to print correctly.Older version took cares all of those things.
    Any idea would be great for me.
    Thanks,
    Jay

    Boy ... I thought I was watching a scene from Dragnet as I've just read this thread for the first time .... 8-)
    Sgt Friday: did you see the culprit ma'am?
    Woman: yes I did
    Sgt Friday: was he tall?
    Woman: yes and he reminded me of my son-in-law who bakes cookies ... and ...
    Sgt Friday: (interrupts): just the facts ma'am ..
    Woman: oh ... of course
    Sgt Friday: did he use Discoverer?
    Woman: yes he did
    8-)
    I'd love to see a 'Chips' one next:
    Ponch: oh look ... a Discoverer report going wild
    Jon: I'll just jump onto this computer and pull the plug ...
    Ponch: oh no ... there's a lady with her kids running the report, careening out of control we didn't see ...
    Jon: No problem, I'll just slow it down carefully and bring this server to a controlled halt
    Woman: thank God you two came along and saved my report
    camera pans away with everybody smiling and frozen in time ...
    8-)

  • Is There a Fit-to-Page Option in Scan?

    When I scanned a government form that is on an 8.5" x 11" sheet, but has only a 1/4" left, right, top margins and 1/8" bottom margin, the preview showed the bottom 1.5" of the form and part of the text on the side margins cut off.
    I selected the "Save as PDF*" option.
    I could not find a Fit-to-Page or Reduction-by-Percentage options in the Scan settings. I found "Letter Portrait (8.5 x 11)" and "Entire Scan Area" options.  I tried each one with the same result stated above.  The "Custom Scan Size" option provided for selecting a specific Width and Length, which would have been 8.5 and 11, the same as had been previously used, therefore it was not tested.
    I need all of the text on the sheet to show.

    Hello @Erislandy,
    Welcome to the HP Support Forums!
    I would like to assist you today with scanning the 8.5 x 11 inch sheet on your HP Officejet 5740 e-All-in-One Printer successfully without cutting off portions of the text. To resolve this issue I did some testing of my own on the Officejet 5740 printer I have here, and the following are my findings.
    First, I checked into the specifications of your printer. I found that the maximum scan size through the automatic document feeder on your machine is 8.5 x 14 inches. The maximum scan size for the flatbed is 8.5 x 11.7 inches. After finding this information I performed scan tests through both the automatic document feeder and flatbed to verify if there was a significant difference in the settings.
    Test 1: I chose the Save as PDF option. I set the Scan Size to Entire Scan Area and loaded the letter size sheet of paper in the automatic document feeder.
    This image had a lot of blank space at the bottom and top of the sheet to account for the 8.50 x 14 inch scan size.
    Test 2: I chose the Save as PDF option. I set the Scan Size to Entire Scan Area and loaded the letter size sheet of paper on the flatbed.
    There is a bit of blank space at the bottom of the sheet.
    Test 3: I then ran the scan tests for the 'Save as PDF' option with the Scan Size set to letter for both the automatic document feeder and the flatbed. Both tests came out almost identical.
    At no time were the margins changed to cut off the text on the report.
    This got me thinking that perhaps a setting conflict was occuring that was causing the text on your scanned image to crop down to a size.
    If you open the HP Scan software on your computer and click Advanced Settings on the bottom left, please make sure that the Auto Crop option is not selected.
    Once Auto Crop has been disabled, please click OK and perform your scan again. I found that when I ran the same test scan with Auto Crop enabled the margins were cut off. In regards to a Fit-To-Page option, there is no such setting within the software.
    Please respond to this post with the result of checking your scan settings. Should the issue persist, can you please clarify if you're scanning through the flatbed, or the automatic document feeder on your product. I look forward to hearing from you!
    X-23
    I work on behalf of HP
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    Click the "Kudos, Thumbs Up" on the right to say "Thanks" for helping!

  • Problem with margins shifting when printing.

    I have an installation template on an 11x17 sheet with 3/8” margins. There is a “left” and “right” version on each side (basically mirrored) and the intent is that they align front to back when you hold the sheet up to the light. When we print a proof, two sided, on our laser printer, the drawings match when the single sheet is held up to the light, but the margins are no longer the same; each is offset by a 1/16” in the same direction. BUT when you print one sided on our printer and hold the 2 sheets back to back, the drawings are off by 1/8” because the margins are off by the 1/16' in different directions. This creates a problem when it is sent to the commercial printers as they are printing single sided to their printing plates. (The problem still appears in the exported PDF file the printers use)
    The problem is, I can’t get InDesign to stop shifting the content on the page that 1/16”!
    If I look at the page, the margin guides show the correct 3/8”on both sides.
    If I look at the Master page, the margin guides show the correct 3/8”on both sides.
    Under “Margins and Columns” in InDesign, I found the correct margins set (0.375 - 3/8”) all around,  with 1 column and a 0.1667” Gutter. Ha .. I thought I had found it! So I removed the Gutter and checked “Enabled Layout”, But when printed, same problem.
    I then though it must be on the master pages and found and did the same thing as above, still no luck!
    Then I created a new master page and set it up as above and reapplied the new master page, still no luck!
    I’m stumped!?! If we can’t get these margins correct we can’t send it to the commercial printer.
    Thanks in advance for any help!

    Well I don't know for a fact that it is, but the customer is a major International Fortune 500 Company and this is an Installation sheet printed and included in one of their product packages, so I would imagine it is an offset press.
    Besides, if the commercial printer was using a commercial Laser printer, can't they print 2-sided? There is no problem when it is printed 2-sided, the images align because both margins are offset in the same direction. It is only when it is printed 1-sided (one side to each printing plate) that the problem becomes obvious because the offsets are in the opposite directions. (BTW, it is B&W)

  • Margins adjusted when printing in duplex

    A vast number of people have mentioned this problem with duplexing and HP has not addressed it specifically in any of the threads. I am re-posting this issue in a new thread because the threads which do bring it up have been marked as "solved" and do not allow further commenting.
    I have a C309g (running Vista 64) with auto duplex - which works - except that it squishes everything in and changes the margins when I use it. The printer properties/specifications say nothing about this attribute which is quite annoying and, quite frankly, unacceptable. The specifications allow for 1/4" margin, but, when auto-duplex is used, it downsizes the print area significantly. If I duplex manually, the margins are fine and do not change. I purchased this printer specifically for its auto-duplex capabilities, but it is unusable in that mode if it is going to change my documents from their original layout.

    This is a peer to peer support forum.  If you want to contact HP click here.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Margin problem when printing on ipad from pdf app

    On 4500g there is no top margin and very small left margin when printing from pdf printer app on my ipad. Where can i set margins before printing?

    Hello Leonie1938,
    Welcome to the HP Support Forums!
    If I understood correctly, you are printing from an iPad to the Officejet 4500 G510g using a .PDF printer App. If this is correct, what is the App name? I searched and found an App called PDF Printer for iPhone for $2.99, is this the App?
    If you are not using a HP App, all I can offer is to clean the rollers on the printer. This is best done by following steps here: The All-in-One Does Not Pick Up or Feed Paper, Solution four.
    Cheers,
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • Printing problem: "fit to page" option does not work, even from cmd

    hello!
    i am switching a company over to linux, that's why i am trying to make it shine as much as possible!
    unfortunately i have to explain why something as simple as printing an email to one page instead of 1 and half isn't working...
    no matter what i always get the same layout ... through
    a) print menues which give me the option to scale to page e.g. firefox's print menue or
    b) command line with the option found in (http://localhost:631/help/options.html#FIT_TO_PAGE)
    lp -o fit-to-page filename
    lpr -o fit-to-page filename
    they both do not result in a scaled to one page output, instead i get the same result a print without any extra configuration gives me (2 pages).
    i don't know where to report this problem!?
    since i don't know whether it is an arch, Canon, CUPS or postscript problem ...
    my setup is:
    manjaro/arch linux (latest packages)
    CUPS 1.7.1
    canon imagerunner irc2880 - printer language = postscript
    gnome 3.10
    (i use the canon "cque" aur package to get the only working ppd for this printer (cel-irc2880-ps-de.ppd) [working = print both b/w & color] ... ps stands for postscript.
    pls help or direct me to the right channels
    THANK YOU
    Last edited by brrbrrbruno (2014-04-14 11:26:40)

    i have checked with another printer ... same problem
    can anyone with firefox tell me whether the checked checkbox
    "ignore scaling and fit to page" or something (mine is german) under:
    firefox -> print... -> options
    works for you?

  • When printing from websites, only first page prints correctly. Rest of pages lose about one quarter of the page on the right side.

    Starting with the 2nd page, the pages are expanded and the whole right side of the page is gone. This only seems to happen on my Mac. I run Firefox on my PC and it prints correctly. At first I thought it was a problem with certain websites, but it always happens when I try to print out more than one page.

    The 2nd page print scaling error has been an issue with Firefox on the Mac since 2011. People at Mozilla have not considered this a major problem. Try printing anything at less than 100% and you'll quickly see how every page after the first page being scaled wrong gets old real fast. The lack of a solution to this issue forced me long ago into using Safari as my primary browser. Good luck waiting until version 21 for a solution. Current release is 18.0.2.

  • Margins shrink when printing to PDF

    Okay...I use Windows XP, Adobe Acrobat 6.0, and recently (begrudingly) uppgraded to Adobe Reader X.  I have a printing problem ever since the upgrade to Reader X.  When I print a hardcopy of a document, it looks fine.  However, if I print to PDF, it decreases the margins down to nothing, and text gets cut off because the margins are too small.  When I look at printing options, there is no place to change the margins.  The closest thing I can find is the "Scaling" area.  There is not an option for "Scale to Page" or anything like that...just the ability to change the percentage from 0-???.  But even that doesn't help....the text is shrunk, but still too close to the top and left sides of the page.  How can I adjust the print margins????

    I am having the same problem.  I can't print any PDF files!  I never had a problem before and I can't pinpoint when this started happening.  I use Mac OX Lion.

  • Margins problem when printing to PDF (Pages '09 v4.0.3 build 766)

    Hi,
    I don't know if this is connected to the latest Mac OS X v10.6.4 update, but some of my machines exhibit a very curious behaviour.
    + multiple pages A4 document
    + choose File > Print, click on "Save as PDF", under the PDF button
    ++ set pages 6 & 7 to print
    ++ set 2 pages per spread, so as to have Pages shrink the A4 document to somewhat A5, and have the two pages side-by-side on the same sheet
    ++ save the PDF
    Then, when I open the PDF with Preview, the margins are all wrong (i.e. too big, there's too much white running around).
    And from Preview's inspector, I can tell that the Page Size is set to US Letter, although in Pages both the document size AND the Printing Format are set to A4.
    The most curious part of the story is that my MacPro, my work MacBook Pro 13 and a white MacBook exhibit the problem, whereas my personal iMac 27" DOES NOT.
    And they are all running Mac OS X v10.6.4, with ALL the most recent updates, and the exact same version of Pages!!!
    I suspect that something has been changed in a framework somewhere, but I cannot figure out what it is...
    Any idea is welcome!
    Thanks,
    K2r

    I can do the same in TextEdit (although it's even more painful to control the margins!!).
    My problem is not that Pages won't put pages on one sheet; It's that the generated PDF does not respect the sheet physical size (A4 vs. US Letter), thus adding wider margins all around the document.

  • Margins issue when printing.

    I have used Acrobat Reader 10.0.0 to current and Acrobat Professional 10.0.0 to current with identical issues outlined below.
    The issue is with the printer margins as outline with a red circle below. Please note this has nothing do you with my printer/coppier or scaling (I have the same problem with 12+ devices). This is not a computer based issue (issue has affected 6+ systems all running windows (from xp (pro/home) to win7 32&64bit systems ranging from 2.5ghz, 1gb ram to 6core, 8gb systems). This is an issue with Acrobat. Please tell me how to fix this so I can attept produce product like a professional.
    I am open to any comment that adheres to the above restrictions, thank you in advance.

    Daniel Flavin wrote:
    Your screen shot clearly shows Shrink To Printable Area seleted in Page Scaling.
    Daniel, thank your for your reply; however, I am sorry, but I did note that this does not have anything to do with scaling (or at least appears to be). Below are a few more screen shots.
    Scale to fit with auto-rotate and center option disbled.
    No Scaling

  • Margin problem when printing with canon printer

    When I try to print a pages document on my canon pixma ip4500 printer (which they sold me at the apple store when i bought the laptop), the bottom margin does not appear. There is a space only about half an inch under the last line of text. Everything looks fine on the screen, but i cant get to print it with a bottom margin. and i don't even know how to set it manually...
    ps, the printer isnt set for a 8 1/2 by 14 sheet, it really is for a 8 1/2 by 11
    Help me please!

    That’s going to depend on what the document consists of. If it’s a single element such as a graphic or PDF, reduce the size. If it’s text, you can use a smaller point size, slightly reduce paragraph spacing, make a headline smaller, etc. If it’s text and graphic, reduce the size of the graphic(s) a little. But first, set your document margins to agree with your printer margins.
    Walt

  • Wrong margin length when printing from JRC

    Hi,
    I have problem with printing reports using JRC with null margins. Everytime when I chose 0 as a  margin (i have tested it with left margin), after printing the margin is bigger then 0. If the report is printig from Crystal Report all margins are set correctly. Is there any minimal value that is set by CR4E JRC libraries when the report margin is set to 0? How can I change that?
    Regards,
    Andrzej

    Hi,
    I am facing the same problem. How do i print reports with margins set to ZERO??
    Kamal.

  • Set paper margins size when printing ...

    Hi,
    I'm using the following code to print an image from a component :
         Settings pageSettings = new Settings();
         pageSettings.setXScaleAsFloat( 0.28f );
         pageSettings.setYScaleAsFloat( 0.28f );
         PagePrintable printable = new PagePrintable( pages[pagActual], pageSettings, false );
         PrinterJob printerJob = PrinterJob.getPrinterJob();
         PageFormat format = printerJob.defaultPage();
    //     printerJob.pageDialog( format );
         format.setOrientation(PageFormat.LANDSCAPE);
         printerJob.setPrintable(printable, format);
         printerJob.print();
    How can I define the paper margins ?
    At this moment I have to use default one inch margins.
    Thanks,
    Alexandre Gil

    You can render on your page in any place you like. In your paint method just use the Graphics.translate() method to set the upper and left margin and then use Graphics2D.transform() and a scaled AffineTransform to adjust the width and height of everything:
    public int print(Graphics g, PageFormat format, int pageIndex) {
        Graphics2D g2d = (Graphics2D) g;
        g2d.translate(format.getImageableX(), format.getImageableY());
        AffineTransform at = new AffineTransform();
        at.scale(format.getImageableWidth()//*the width of your stuff*/, format.getImageableHeight()//*the height of your stuff*/);
        g2d.transform(at);
        // all your rendering goes here
    }Of course you can use values other than format.getImageable* for the values.
    Jeff

  • Font size incorrect when printing smartform

    Hi,
    I have a smartform containing many smaller windows with frames. One big window should show a word in grey and in big letters behind all the other windows.
    In my smartstyles, I have used the font family "HELVE", font style bold and the size 72. When I print to a sap printer device, the word is printed in very small letters and in black. When I´m printing about LOCL and then on the same printer, the fontsize is correct.
    What can I do to change that?
    The second problem is, that the letters are shown over the frames of the other windows, but it should be completely in the background. I put the window with the backgorund letters as the first window on the screen to get it behind all others, but it´s not working....
    Cheers Arne

    there  is   some  proble in printer  setting.....
    contect  the basis person....
    method   for  font  size....
    Define the paragraphs & character formats using SMARTSTYLES & use them in your smartform.
    You have to give the smartstyle name in the Form attributes-->Output options for the formats to be used in your smartform.
    frm ur pc only u can get this font file..
    go to control panel , in tat go to font and select your desired font file..
    now give the path of this font file in se73..
    after doing that this file will be uploaded into ur SAP server.
    Se73 - > True type font installation - > Font name - > specify the name of the font file - > execute

Maybe you are looking for