Open hustliyilin opened 4 months ago
cups-pdf
is really old and takes PostScript input (instead of PDF) and converts it to PDF. Some people have modernized cups-pdf
to use PDF as input, e.g.:
You modified the PPD to have the following cupsFilter line:
cupsFilter: "application/vnd.cups-postscript 0 /usr/lib/cups/filter/texttopdf"
So, you are trying to make texttopdf
take PostScript input, why?
The stock cups-pdf
will use texttopdf
if you try to print a text file, e.g. lp -d cups-pdf test.txt
, the filters used would be:
texttopdf
→ pdftopdf
→ pdftops
→ cups-pdf
You can also issue the following to see which filters are used to generate an output PDF file with cups-pdf
:
/usr/sbin/cupsfilter -p /usr/share/cops/model/CUPS-PDF_noopt.ppd -m application/pdf test.txt --list-filters
Describe the bug
When I use the cups-pdf in Linux alone to print, I can see that the printed PDF content is normal. However, when I use cups-pdf with cups-filters,the printed content is empty. I don't know what's causing it and how to locate and fix it. Could you give me some advice ? Thanks a lot.
To Reproduce Steps to reproduce the behavior:
install the cups-filters and cups-pdf
configure the cups-pdf and add the cups-filter to the cups-pdf's ppd configure file
restart the cups by typing
sudo systemctl restart cups
use the cups-pdf with cups-filters to print the test.txt by typing
lp -d cups-pdf ./test.txt
view the printed file. However, the content of the out file is empty like this:
Expected behavior
I hope to correctly configure cups-filter to print the correct content with cups-pdf. In addition, in addition to texttopdf, I have also configured other filters, but all the printed pages are blank,I don't know how to fix it.
System Information: