[cups] cupsfilter ignores fit-to-page

David Niklas deference at null.net
Thu Jan 26 08:19:04 PST 2023


Hello,
I'm using cups 2.3.3op2-3+deb11u2 on an up-to-date Devuan (Debian) Linux
system. I issued the following command:
sudo cupsfilter -i text/plain -m application/pdf -o \
orientation-requested=4 -o media=Letter -o fit-to-page \
/home/me/Documents/irrigation-supply-companies.txt > tmp.pdf

and expected that the text document would be fit-to-page. That did not
happen. Instead the text gets wrapped and the output is 2 pages. In the
unlikely event that my pdf viewer modified the displayed contents, I
tried both gv and qpdfview without any change in the displayed formatting.

The document I typed up on the terminal and will fit on one page because
my terminal window is smaller than a Letter sized page.

Below is the command's output. I cannot find any option for requesting
debugging info or more verbose output.
Attached is the generated pdf and the original text document, which
hopefully will not be stripped by the cups mailing list program.

Any idea how I can get my text document to be fit-to-page?

Thanks,
David



DEBUG: argv[0]="cupsfilter"
DEBUG: argv[1]="1"
DEBUG: argv[2]="root"
DEBUG: argv[3]="irrigation-supply-companies.txt"
DEBUG: argv[4]="1"
DEBUG: argv[5]="fit-to-page=true media=Letter orientation-requested=4"
DEBUG:
argv[6]="/home/me/Documents/irrigation-supply-companies.txt"
DEBUG: envp[0]="<CFProcessPath>"
DEBUG: envp[1]="CONTENT_TYPE=text/plain"
DEBUG: envp[2]="CUPS_DATADIR=/usr/share/cups"
DEBUG: envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
DEBUG: envp[4]="CUPS_SERVERBIN=/usr/lib/cups"
DEBUG: envp[5]="CUPS_SERVERROOT=/etc/cups"
DEBUG: envp[6]="LANG=C.UTF8"
DEBUG:
envp[7]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
DEBUG: envp[8]="PPD=/usr/share/cups/model/laserjet.ppd" DEBUG:
envp[9]="PRINTER_INFO=cupsfilter" DEBUG:
envp[10]="PRINTER_LOCATION=Unknown" DEBUG: envp[11]="PRINTER=cupsfilter"
DEBUG: envp[12]="RIP_MAX_CACHE=128m"
DEBUG: envp[13]="USER=root"
DEBUG: envp[14]="CHARSET=utf-8"
DEBUG: envp[15]="FINAL_CONTENT_TYPE=application/pdf"
INFO: texttopdf (PID 3977) started.
INFO: texttopdf (PID 3977) exited with no errors.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: irrigation-supply-companies.txt
URL: <https://lists.cups.org/pipermail/cups/attachments/20230126/4fc3f62f/attachment.txt>


More information about the cups mailing list