Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PDFs print on wrong paper size [SOLVED: kcontrol set locale]
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
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Wed Apr 18, 2007 5:16 pm    Post subject: PDFs print on wrong paper size [SOLVED: kcontrol set locale] Reply with quote

I used to be able to print PDF files just fine. I used xpdf and the command-line program lp to print with CUPs. Recently I installed kghostview to view PDF files instead -- my guests wanted a more full-featured PDF viewer. Now, when I print pdf documents with either xpdf or kghostview, they print as if on a legal paper size: there is about 4 or 5 inches of margin at the top, and the printing then extends past the bottom of my US Letter size paper.

If it would just start printing at the top of the page, everything would be fine. What I would really like is for kghostview to honor the page sizes I tell it to use. Good thing I did my taxes long ago!

Has anyone else had this problem?
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!


Last edited by erik258 on Sat Apr 21, 2007 4:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Wed Apr 18, 2007 5:56 pm    Post subject: Reply with quote

Have you tried looking through kghostview's configuration? From your story, it looks as if it's changed a setting somewhere that xpdf uses as well. Looking at the configuration from kghostview may reduce the number of places you have to search.

[Edit] I haven't been able to find a config file that lays down the page size but starting it here and clicking on "Print" and then "Properties" for the EpsonD88 inkjet which is the default printer, showed the page size set to A4 (under "General"), under Driver Settings it showed all the CUPS settings.

However, printing failed with a popup headed "Catastrophe! Knotify" which said that "cupsdoprint" couldn't be found.

kghostview uses libkdeprint and there have been problems between libkdeprint and CUPS in the past though this may be part of KDE (XFCE4 in use here) which it depends on but hasn't been installed.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.


Last edited by wynn on Wed Apr 18, 2007 8:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Wed Apr 18, 2007 8:06 pm    Post subject: Reply with quote

I have tried several different things, including changing paper and margin size, but I haven't found the magic buttons yet.
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Thu Apr 19, 2007 10:36 am    Post subject: Reply with quote

You do have your printer set up to use "Media Size: Letter" by default, don't you?
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Thu Apr 19, 2007 12:58 pm    Post subject: Reply with quote

Page size in Cups is and always has been US letter.

I have found a .pdf that works. It isn't the one I need to print, but it does print (and show in kghostview) at the right page size. It looks like my form thinks it's supposed to go on a legal sized paper because In KGhostview, View->Paper Size when set to "Auto" is legal sized (longer than the text on the page) and File->Print->Properties->Paper Size in kghostview (it's actually kprinter that is responsible for the dialog box) is also set to US Letter.

The problem then is that kghostview doesn't seem to resize the pages so that they fit on the page. It just prints them out as they are shown on the screen, with 4 or 5 extra margin inches on top. Since my pages are letter size, that means the print goes off the bottom of the page and starts nearly halfway down the page.

Thanks for all your suggestions, Wynn. If you think of anything else I'll be happy to give it a try.
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Thu Apr 19, 2007 2:37 pm    Post subject: Reply with quote

I can only suggest a bug report: this could get kghostview fixed if it's broken or get you an explanation and a workaround.

I haven't thought of Googling: http://lists.kde.org/?l=kde-print&m=101620425430984&w=2 (a bit old "Date: 2002-03-15 14:55:28")
Quote:
I have a problem printing PDF-Documents from kghostview, because the documents are in letter format while my printer (HP Laserjet 4 Plus, PS) has only A4 Paper. Printing is done via Cups 1.10 on localhost, works fine from every KDE programm. I have filed a bug report for kghostview (#38787: wrong paper size in print), but now I think there is a bug in kprinter.
Too old to be helpful but a straw in the wind, maybe?
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Fri Apr 20, 2007 3:56 pm    Post subject: Reply with quote

That's a good idea, I think I will. It looks like I'm not the only one that this has happened to. Besides, kde apps make it easy to file bug reports.
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Sat Apr 21, 2007 4:01 pm    Post subject: Reply with quote

Well, this isn't quite a bug. It's a KDE configuration thing.

If you install kde all at once, and use it as a desktop environment, you probably set up your locale and everything right away, the first time you log in to kde. However, if you compile kde applications alone, you may not be aware that you need to set your local with the 'kcontrol' control panel. Once I set that to US, the page size was correctly set in kghostview.
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Sat Apr 21, 2007 4:32 pm    Post subject: Reply with quote

I'm glad you managed to get that sorted out.

I shy away from Gnome and KDE just because there is so much going on under the hood that I don't know about.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Sat Apr 21, 2007 4:36 pm    Post subject: Reply with quote

Exactly my opinion. Too big and too memory-intensive. : )
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
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