Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kpdf insists it must print on A4 paper
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
afabco
Guru
Guru


Joined: 24 Feb 2004
Posts: 380

PostPosted: Thu Nov 17, 2005 12:09 am    Post subject: kpdf insists it must print on A4 paper Reply with quote

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
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2725
Location: Edmonton, AB

PostPosted: Sat Dec 03, 2005 12:22 am    Post subject: Re: kpdf insists it must print on A4 paper Reply with quote

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
View user's profile Send private message
corey_s
Apprentice
Apprentice


Joined: 29 Jun 2003
Posts: 264

PostPosted: Mon Dec 12, 2005 6:44 pm    Post subject: Reply with quote

* 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
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2725
Location: Edmonton, AB

PostPosted: Mon Dec 12, 2005 7:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
corey_s
Apprentice
Apprentice


Joined: 29 Jun 2003
Posts: 264

PostPosted: Fri Dec 16, 2005 7:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3943
Location: Hamburg

PostPosted: Fri Dec 16, 2005 8:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
corey_s
Apprentice
Apprentice


Joined: 29 Jun 2003
Posts: 264

PostPosted: Fri Dec 16, 2005 8:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Al_Kane
n00b
n00b


Joined: 19 Jan 2005
Posts: 13

PostPosted: Wed Jan 04, 2006 5:19 am    Post subject: Reply with quote

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
View user's profile Send private message
corey_s
Apprentice
Apprentice


Joined: 29 Jun 2003
Posts: 264

PostPosted: Wed Jan 04, 2006 5:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Al_Kane
n00b
n00b


Joined: 19 Jan 2005
Posts: 13

PostPosted: Wed Jan 04, 2006 6:23 am    Post subject: Reply with quote

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
View user's profile Send private message
X31
n00b
n00b


Joined: 21 Apr 2005
Posts: 19

PostPosted: Mon Feb 20, 2006 11:10 am    Post subject: Want letter but get A4 issue fix Reply with quote

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
View user's profile Send private message
beatryder
Veteran
Veteran


Joined: 08 Apr 2005
Posts: 1138

PostPosted: Fri Oct 26, 2007 5:01 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum