[cups.bugs] [LOW] STR #2982: printing pdf with parameter PageSize=match at pdftops

franz.pfoertsch.brose franz.pfoertsch at brose.com
Wed Oct 29 12:44:50 PDT 2008


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

I try to printout pdf's with pagesize a5.

the printer has two trays. The first with A4 and the second with A5.
The default papersize should be A4. I configured the printer at the
webinterface to be a A4 printer.

Inside of the /etc/xpdfrc changed the following setting
---8<---
# Set the default PostScript paper size -- this can be letter, legal,
# A4, or A3.  You can also specify a paper size as width and height
# (in points).

#psPaperSize            letter
psPaperSize             match
---8<----

Now when I printout the A5.pdf-file it is done on the A4-Paper.

In older Version a trayselection was done by the printer!

What is wrong?

To track down the problem I have done the following steps:

PPD=/etc/cups/ppd/cobp0790.ppd /usr/lib/cups/filter/pdftops job user title
1 "" A5.pdf  >A5.ps

I looked into the A5.ps files the the pagesize seems to be A5 and OK!

now I pushed the ps-file through the pstops filter:

First with the Mediasize setting: A4

PPD=/etc/cups/ppd/cobp0790.ppd /usr/lib/cups/filter/pstops job user title
1 "" A5.ps >A5_A4.ps
DEBUG: Page = 595x842; 10,13 to 588,829
DEBUG: slow_collate=0, slow_duplex=0, slow_order=0
DEBUG: Before copy_comments - %!PS-Adobe-3.0
DEBUG: %!PS-Adobe-3.0
DEBUG: %%Creator: xpdf/pdftops 3.01
DEBUG: %%LanguageLevel: 3
DEBUG: %%DocumentSuppliedResources: (atend)
DEBUG: %%DocumentMedia: plain 595 842 0 () ()
DEBUG: %%BoundingBox: 0 0 595 842
DEBUG: %%Pages: 1
DEBUG: %%EndComments
DEBUG: Before copy_prolog - %%BeginDefaults
DEBUG: Before copy_setup - %%BeginSetup
DEBUG: Before page loop - %%Page: 1 1
DEBUG: Copying page 1...
PAGE: 1 1
DEBUG: pagew = 578.0, pagel = 816.0
DEBUG: bboxx = 0, bboxy = 0, bboxw = 595, bboxl = 842
DEBUG: PageLeft = 10.0, PageRight = 588.0
DEBUG: PageTop = 829.0, PageBottom = 13.0
DEBUG: PageWidth = 595.0, PageLength = 842.0
DEBUG: Wrote 1 pages...


and after this with the mediasettings: A5

PPD=/etc/cups/ppd/cobp0790.ppd /usr/lib/cups/filter/pstops job user title
1 "" A5.ps >A5_A5.ps
DEBUG: Page = 420x595; 13,13 to 407,583
DEBUG: slow_collate=0, slow_duplex=0, slow_order=0
DEBUG: Before copy_comments - %!PS-Adobe-3.0
DEBUG: %!PS-Adobe-3.0
DEBUG: %%Creator: xpdf/pdftops 3.01
DEBUG: %%LanguageLevel: 3
DEBUG: %%DocumentSuppliedResources: (atend)
DEBUG: %%DocumentMedia: plain 595 842 0 () ()
DEBUG: %%BoundingBox: 0 0 595 842
DEBUG: %%Pages: 1
DEBUG: %%EndComments
DEBUG: Before copy_prolog - %%BeginDefaults
DEBUG: Before copy_setup - %%BeginSetup
DEBUG: Before page loop - %%Page: 1 1
DEBUG: Copying page 1...
PAGE: 1 1
DEBUG: pagew = 394.0, pagel = 570.0
DEBUG: bboxx = 0, bboxy = 0, bboxw = 420, bboxl = 595
DEBUG: PageLeft = 13.0, PageRight = 407.0
DEBUG: PageTop = 583.0, PageBottom = 13.0
DEBUG: PageWidth = 420.0, PageLength = 595.0
DEBUG: Wrote 1 pages...

In the debug messages we can see that the output is scaled on the
Mediasize.

With this setting only printout on the default mediasize is possible!


Now the question?
What is the right way to disable scaling?

Link: http://www.cups.org/str.php?L2982
Version: 1.3.9





More information about the cups-devel mailing list