View previous topic :: View next topic |
Author |
Message |
afabco Guru

Joined: 24 Feb 2004 Posts: 380
|
Posted: Thu Nov 17, 2005 12:09 am Post subject: kpdf insists it must print on A4 paper |
|
|
kpdf keeps insisting that it must print on A4 size paper. cups is set to letter, as is the kpdf-> file -> print -> properties.
Any ideas?
Thanks _________________ Anyone who puts a small gloss on a fundamental technology, calls it proprietary, and then tries to keep others from building on it, is a thief.
-Tim O'Reilly |
|
Back to top |
|
 |
Joseph_sys Advocate

Joined: 08 Jun 2004 Posts: 2725 Location: Edmonton, AB
|
Posted: Sat Dec 03, 2005 12:22 am Post subject: Re: kpdf insists it must print on A4 paper |
|
|
afabco wrote: | kpdf keeps insisting that it must print on A4 size paper. cups is set to letter, as is the kpdf-> file -> print -> properties.
Any ideas?
Thanks |
I have the same issue.
I think some recent upgrade made some changes but I can not figure it out.
Few day ago everything was working OK, now printer insisting on printing to A4 size paper. |
|
Back to top |
|
 |
corey_s Apprentice


Joined: 29 Jun 2003 Posts: 264
|
Posted: Mon Dec 12, 2005 6:44 pm Post subject: |
|
|
* ka-bump *
I've got the same issue - it's downright vexing!
Only occurs via kpdf; I can print just fine w/ other kde apps.
No matter what I do, kpdf somehow manages to insist on requesting A4 paper to the printer; we don't have A4 in our printer, so the job never completes.
I've tried re-emerging quite a few different packages, in hopes of bumbling my way into a "fix" - but to no avail.
I can't figure out whether it's something in kpdf itself, or whether it's some obscure ( or not so obscure ) library or utility that kpdf uses.
I'm running a very current and stable ( no ACCEPT_KEYWORDS ) gentoo system, w/ kde-3.5.
Any pointers or suggestions would be much appreciated.
Anyone else other than us three experiencing this same issue? |
|
Back to top |
|
 |
Joseph_sys Advocate

Joined: 08 Jun 2004 Posts: 2725 Location: Edmonton, AB
|
Posted: Mon Dec 12, 2005 7:08 pm Post subject: |
|
|
Try to change setting in these two files.
To adjust the margine play with settings:
horigin 1 true in
vorigin 1 true in
Code: | /usr/share/texmf/pdftex/config/pdftex.cfg:
...
output_format 1
compress_level 9
decimal_digits 3
page_width 8.5 true in
page_height 11 true in
horigin 1 true in
vorigin 1 true in
pk_resolution 600
.... |
Code: | /usr/share/texmf/dvipdfm/config/config:
...
% Set default paper size here
p letter
...
|
|
|
Back to top |
|
 |
corey_s Apprentice


Joined: 29 Jun 2003 Posts: 264
|
Posted: Fri Dec 16, 2005 7:42 pm Post subject: |
|
|
Thanks man - that might have at least gotten me pointed in the right direction.
My pdftex.cfg looks ok - it already had the [h,v]origin settings as you recommended.
However, my dvipdfm config had 'p' set to 'a4'. I went ahead and changed it to 'letter' as per your suggestion - but unfortunately that did not appear to work; there was no change of behavior when I tried printing a pdf from kpdf agin.
hmmm... wondering if there's something else I'm missing.
How about this:
again, in the dvipdfm config:
Code: |
% Distiller config. Uses ghostscript and works on compressed and
% uncompressed files.
D "zcat -f %i | gs -q -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.2 -dUseFlateCompression=true -dSAFER -sOutputFile=%o - -c quit"
|
Is there perhaps a different 'PAPERSIZE' I should specifiy? Do you ( or anyone ) know of where I would find the different values I can use there? ( I looked into the man pages for gs and dvipdfm, but could not find anything regarding that 'PAPERSIZE' option/config/param.
Thanks a ton for your assistance -- this has really got me down! |
|
Back to top |
|
 |
toralf Developer


Joined: 01 Feb 2004 Posts: 3943 Location: Hamburg
|
Posted: Fri Dec 16, 2005 8:09 pm Post subject: |
|
|
corey_s wrote: | a very current and stable ( no ACCEPT_KEYWORDS ) gentoo system, w/ kde-3.5 |
? KDE 3.5 is stable ? |
|
Back to top |
|
 |
corey_s Apprentice


Joined: 29 Jun 2003 Posts: 264
|
Posted: Fri Dec 16, 2005 8:17 pm Post subject: |
|
|
toralf wrote: | corey_s wrote: | a very current and stable ( no ACCEPT_KEYWORDS ) gentoo system, w/ kde-3.5 |
? KDE 3.5 is stable ? |
Well, it's masked. So from a gentoo perspective, it's not officially "stable".
But from a KDE perspective it's been released as 3.5.0 final - so, definitely stable.
As far as my own perspective -- it's been 100% stable on my gentoo system.
( aside from whatever the heck is causing this outlandish pdf issue ) |
|
Back to top |
|
 |
Al_Kane n00b

Joined: 19 Jan 2005 Posts: 13
|
Posted: Wed Jan 04, 2006 5:19 am Post subject: |
|
|
Just wondering... Have you solved this yet? Did you solve this by installing KDE 3.5.0?
I'm now having a similar problem. KPDF always tries to print lettersize, but I need A4.
I was running KDE 3.5 before the problem, which showed up after upgrading some packages (including cups-1.1.23-r7). |
|
Back to top |
|
 |
corey_s Apprentice


Joined: 29 Jun 2003 Posts: 264
|
Posted: Wed Jan 04, 2006 5:35 am Post subject: |
|
|
No - I'm afraid I never did get it solved... to my utmost lament. I really wanted to figure it out.
I no longer have access to that pc... so I may never know...
Good luck! |
|
Back to top |
|
 |
Al_Kane n00b

Joined: 19 Jan 2005 Posts: 13
|
Posted: Wed Jan 04, 2006 6:23 am Post subject: |
|
|
I solved my problem... which is definitely a KDE bug related to internationalization.
To re-iterate: I wanted to print A4, but KPDF always spit out lettersize.
I had the U.S. set as the country in Control -> Regional&Accessibility -> Country/Region&Language.
This sets letter as the default papersize, which apparently overrides the printer settings in KPDF.
I solved my problem by changing the country to "Default" so that the default papersize is now A4.
If you have the "Default" country set, you might want to try setting it to the U.S.
Good luck. |
|
Back to top |
|
 |
X31 n00b

Joined: 21 Apr 2005 Posts: 19
|
Posted: Mon Feb 20, 2006 11:10 am Post subject: Want letter but get A4 issue fix |
|
|
So I found somewhat of a fix to the original problem of wanting to print letter size in KPDF but getting A4.
In KPDF, I went to File > Print
Then I selected System Options and chose the "Commands" setting.
Under there, I chose the "PDF Writer (needs Ghostscript)" option, and then clicked the wrench icon to edit the settings.
In the window that came up, I clicked the "Edit Command" button and in the command textbox, I changed the '-sPAPERSIZE' command line option to
-sPAPERSIZE=letter
Then I clicked OK to all the dialog boxes. After that, I could print from KPDF just fine without my printer giving me annoying messages for me to load A4 paper.
The internationalization settings suggested by Al_Kane did not work for me, perhaps because I wanted to use letter instead of A4. However, the above procedure worked. _________________ The beatings will stop when morale improves. |
|
Back to top |
|
 |
beatryder Veteran


Joined: 08 Apr 2005 Posts: 1138
|
Posted: Fri Oct 26, 2007 5:01 am Post subject: |
|
|
I had the same problem
I fixed it by editing /etc/X11/app-defaults/XDvi and adding the line
*paper: letter
and restarting cups and any app that I wanted to print from. _________________ Dont make it idiot proof, make it work.
Neucode.org
<suppressed key> |
|
Back to top |
|
 |
|