I'm trying to print .pdf documents from the command line using the
lpr command and I'm getting this error:
Unsupported document-format "application/pdf"
Could you please help me what can be the issue? I'm using Ubuntu 18.04 and CUPS 2.27
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
This could mean two things:
CUPS does not know how to convert incoming PDF documents to the final format your printer (What printer model is it at all??? Troubleshooting stuff like this and trying to help you out is not easy if you are so tight-lipped...) wants.
dpkg -l cups*.
sudo apt-get install cups-filters
CUPS does not have an entry (or a commented out entry) naming
application/pdf as one of the formats allowed for print submission, and/or does not have a ruleset to allow for auto-detection of this format -- but yet some print client explicitly told CUPS that it is wanting to send
Check if the following entry is in /usr/share/cups/mime.types:
Check if above entry also has the second field like in the following line:
application/pdf pdf regex(0,^[\n\r]*%PDF)