-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't set margins in texttopdf 2.0.0? #577
Comments
Please attach the ppd file which should be available in /etc/cups/ppd |
With these packages installed:
on OpenBSD-release 7.4 I have:
FYI, this doesn't seem to be system-related. I have tried the example from the OP in up-to-date Artix Linux (having the latest CUPS), with the same results as in OpenBSD: |
In previous versions of CUPS, the texttopdf filter worked without setting up a printer. Still, to test if this is related to adding a printer, I added a "Generic CUPS-PDF Printer (w/ options)" as "Virtual_PDF_Printer", changed its default paper size to A4 and set it up as "server default" in the cups web interface. This created the file /etc/cups/ppd/Virtual_PDF_Printer.ppd (zipped here, as Github doesn't accept .ppd files: Virtual_PDF_Printer.zip). With that, I have (I wrapped the output for readability):
However, this didn't change anything - the resulting PDF file p2.pdf still doesn't have the desired margin. |
Describe the bug
texttopdf from
cups-filters
2.0.0 (version used in the OpenBSD packagecups-filters
) doesn't seem to respect thepage-*
option(s).To Reproduce
Steps to reproduce the behavior:
Expected behavior
Left margin should be increased to about 2cm in the file p.pdf (generated with the option
page-left=56
).Screenshots
System Information:
Additional context
For example, Alpine Linux has
cups-filters
1.28.17 fixed as the last upstream release they use for building thecups-filters
package. With that version of cups-filters, the commandproduces a PDF file with the left margin set to about 2cm. A similar command in OpenBSD:
complains:
when given the additional parameter of
media=A4
(A
has to be uppercase, unlike with 1.28.17!):the output is reduced to
and there is no difference in the generated PDF from
The text was updated successfully, but these errors were encountered: