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...
|