LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-06-2005, 01:27 AM   #1
dekers
LQ Newbie
 
Registered: Dec 2005
Posts: 14

Rep: Reputation: 0
HP DesignJet 1050C paper size problem with CUPS


Hi all,

I am using a Debian machine to print out PDF files. The files are drawings of machines but I guess that is not that important. I have 3 formats of paper size: A0, A1, A2.

The files are stored locally on the Debian machine and are being printed via PHP with the help of a shell command [system("lp -d DesignJet_1050C \"../archive/drawings/{$a_drawings[$iter]}\"");].

The paper in the printer is a roll of paper in the size of A0.

The configuration of the printer is set to rotate the page if needed and the medium size is set to A0.
When I print an A0 drawing the drawing is correctly rotated but the size of the print is 50% of an A0 drawing (so it is being shrinked into an A1 page).
When I print an A1 drawing the size is OK but the drawing is 90° rotated so I would have to cut access paper, which is actually not acceptable (I will have to cut about 300 sheets of paper by hand...).
When I print an A2 drawing the size is OK but it is again 90° rotated.

I use the normal DesignJet 1050C driver I found on the CUPS site (since January).
Configuration: rotate is set to YES, Scaling of drawing is set to NO, media size is set to ISO A0, media source is set to ROLLER. As far as I understand all the other things are not relevant for the size of the print.

I found out that etc/papersize contains the following string "a3".
etc/cups/pdftops.conf contains the following line: "psPaperSize match" (among other lines...)

I understand that if psPaperSize is set to 'match', than pdftops takes the paper size from the PDF file itself.
Later I found this in the error_log file of CUPS:

D [01/Dec/2005:11:16:06 +0100] [Job 850] perl: warning: Setting locale failed.
D [01/Dec/2005:11:16:06 +0100] [Job 850] perl: warning: Please check that your locale settings:
D [01/Dec/2005:11:16:06 +0100] [Job 850] LANGUAGE = (unset),
D [01/Dec/2005:11:16:06 +0100] [Job 850] LC_ALL = (unset),
D [01/Dec/2005:11:16:06 +0100] [Job 850] LANG = "de"
D [01/Dec/2005:11:16:06 +0100] [Job 850] are supported and installed on your system.
D [01/Dec/2005:11:16:06 +0100] [Job 850] perl: warning: Falling back to the standard locale ("C").
E [01/Dec/2005:11:16:06 +0100] [Job 850] pdftops-options: -cfg /etc/cups/pdftops.conf
D [01/Dec/2005:11:16:06 +0100] [Job 850] Page = 2384x3370; 22,43 to 2362,3337
D [01/Dec/2005:11:16:06 +0100] [Job 850] slowcollate=0, slowduplex=0, sloworder=0
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%Creator: xpdf/pdftops 3.00
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%LanguageLevel: 2
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%DocumentSuppliedResources: (atend)
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%DocumentMedia: plain 2282 1614 0 () ()
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%BoundingBox: 0 0 2282 1614
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%Pages: 1
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%EndComments
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%BeginDefaults
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%PageMedia: plain
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%EndDefaults
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%BeginProlog
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%BeginResource: procset xpdf 3.00 0
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%EndResource
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%EndProlog
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%BeginSetup
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%EndSetup
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%Page: 1 1
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%Page: 1 1
D [01/Dec/2005:11:16:06 +0100] [Job 850] pw = 2340.0, pl = 3294.0
D [01/Dec/2005:11:16:06 +0100] [Job 850] PageLeft = 22.0, PageRight = 2362.0
D [01/Dec/2005:11:16:06 +0100] [Job 850] PageTop = 3337.0, PageBottom = 43.0
D [01/Dec/2005:11:16:06 +0100] [Job 850] PageWidth = 2384.0, PageLength = 3370.0
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%BeginPageSetup
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%PageOrientation: Portrait
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%EndPageSetup
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%PageTrailer
D [01/Dec/2005:11:16:06 +0100] [Job 850] 0 %%Trailer
D [01/Dec/2005:11:16:06 +0100] [Job 850] Saw Trailer!
D [01/Dec/2005:11:16:06 +0100] [Job 850] Saw EOF!

To me it seems like xpdf/pdftops ignores the settings on the server and simply takes some default values.

any ideas??

well... later I've tried to change the local settings on my machine (just in case) in an attempt to get rid of the local settings problem:

root:~# dpkg-reconfigure locales

and than I checked all possibilities dealing with 'de' (Germany)

Than I ran another print (not before restarting CUPs) but still I got this error: "perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "de" ..."
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

why didn't the LANGUAGE changed??

I would be very thankful for any tip or idea you could offer
Dekers

P.S - this problem is NOT a PHP problem - at the moment I am printing from the shell and not from PHP...
 
Old 01-19-2006, 05:26 AM   #2
dekers
LQ Newbie
 
Registered: Dec 2005
Posts: 14

Original Poster
Rep: Reputation: 0
no one?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Paper Size Choice for Plotter kaplan71 Fedora 1 08-04-2005 12:24 PM
lp with cups. Problems with centering image on paper jmgreen7 Linux - Software 0 04-13-2005 12:08 PM
Printer ignores paper size settings wpost Linux - Laptop and Netbook 0 07-19-2004 05:27 PM
new paper size abs Slackware 1 02-07-2004 08:42 PM
9.2 refuses to change default paper size! thas Mandriva 0 01-12-2004 09:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration