Comment 8 for bug 357732

Revision history for this message
Leonard Michlmayr (leonard-michlmayr) wrote :

Setting "Fit to Page" and /etc/papersize to letter (which is wrong) will print an a4 testpage which is shrunk just enough to fit within the page margins. So, everything is displayed, but it is slightly too small. I prefer to disable "Fit to Page" and set the correct /etc/papersize

As to the attached pstopdf: I cannot find the attachment, did you attach it to this bug in LP?

I read some words of the gs bug-report and I want to add my thoughts.

Probably, if the document does not request a page size, pstopdf does not have any other choice than using the default size, because the page size may be undefined in PS but it may not be undefined in PDF.

So it is the duty of cups to care for the page size. (For example gs -sPAPERSIZE=...) On the other hand the better solution may be to add the code from the PPD first:

If I call cups with
$ lpr -oPageSize=A3 foobar.ps

Cups will FIRST convert the PS to PDF and THEN add the options from the PPD, which sets A3 paper. Thus the default papersize overrides the options from the PPD. The order is wrong.

I don't know why cups converts to PDF and then back to PS, but maybe it could evaluate the options (e.g. -oPageSize=A3, or the default option in the PPD) and prepend the appropriate code from the PPD before calling pstopdf.