Bug 120993 - paper format setting in "Country/Region & Language" overrides paper size setting in KPDF printer dialog
Summary: paper format setting in "Country/Region & Language" overrides paper size sett...
Status: RESOLVED WORKSFORME
Alias: None
Product: kdeprint
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KDEPrint Devel Mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-29 18:45 UTC by Chad Sprouse
Modified: 2007-10-07 06:33 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Inserting the fitplot=true option into print dialog for kpdf/PDF printing (61.35 KB, image/png)
2007-01-13 00:33 UTC, Kurt Pfeifle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chad Sprouse 2006-01-29 18:45:40 UTC
Version:           0.5 (using KDE KDE 3.5.0)
Installed from:    Gentoo Packages
Compiler:          gcc (GCC) 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8) 
OS:                Linux

I have letter-size paper in my printer and "Page size" under "Properties" in the KPDF print dialog is set to Letter.  However, I had the language locale set to "C Default" under Control Center->Regional & Accessibility->Country/Region & Language which sets "Paper format" to A4.  Printing would not be successful because the ps file was generated for A4 paper despite the printer settings indicating Letter.  This problem was fixed by changing "Paper format" to "US Letter".

It seems to me that the printer settings should override the default global language locale, which they don't currently.
Comment 1 Albert Astals Cid 2006-01-30 00:21:55 UTC
Don't understand the text completely, but seems more a kprinter issue than a kpdf one, reassigning.
Cristian please reasign back if you think it is a kpdf issue.
Comment 2 Kurt Pfeifle 2007-01-13 00:28:15 UTC
WORKSFORME (SUSE-10.0 RPMs for KDE 3.5.5)

(but this did work for a looooong time already)


Chad,

you state: "Printing would not be successful because the ps file was generated 
            for A4 paper despite the printer settings indicating Letter" 

This is wrong. You can print a PDF on a different paper size than its internal format. This works for kpdf too. Just select the format you want. (Make sure the PDF fits on the sheet though).

You can even use the CUPS option "-o fitplot=true" to make a PDF scale to the media size. 

Use the "WhatsThis"-help in kprinter to find the explanations for all options.

See attached screenshot.

Cheers,
Kurt
Comment 3 Kurt Pfeifle 2007-01-13 00:33:23 UTC
Created attachment 19261 [details]
Inserting the fitplot=true option into print dialog for kpdf/PDF printing
Comment 4 Ulrich Kuettler 2007-08-28 17:30:54 UTC
We have the problem with KDE 3.5.6-3.fc6 (on Fedora Core 6), too. The internal format does affect the convertion from pdf to ps (for us). Our printer expects a4 pages and we selected a4 inside the printers configuration. Still the printer complains about getting letter format as long as "US Letter" is selected as paper format in "Country/Region & Language". Printing (sane) ps files works without problems.
Comment 5 hutch 2007-10-07 06:33:52 UTC
This bug is not resolved in fedora 6. Here's some new information.
With both kpdf and the Region & Language settings to Letter.
Open file in kpdf. Immediately do file print preview. Looks fine.
Print to pdf file. Fine: MediaBox [0 0 612 792] correct Letter paper size.
Print to ps file. Bad: %%BoundingBox: 0 0 595 842. That's A4. 

Now here's the telltale: after printing to ps file. The *print preview* shows
that there have been added extra margin space at the top and the bottom.
In other words the print preview is showing what kpdf and kprinter will really
do with the file when printing. There's been some interaction that has made 
kpdf CHANGE ITS MIND about how to print this file. That interaction happens 
when you print to ps file, but not when you print to pdf.