Error: 'Unsupported document-format “application/pdf”'












3














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










share|improve this question
























  • Have you tried pdf2ps?
    – minmaxavg
    Nov 5 at 0:43










  • What do you mean? Transform the pdf to ps then print it?
    – Minee
    Nov 7 at 20:22










  • Yes, it's done on many occasions, and certainly no formatting would be lost anyway.
    – minmaxavg
    Nov 7 at 22:18










  • CUPS v2.27 does not exist. Do you mean v2.2.7?
    – Kurt Pfeifle
    Dec 15 at 17:02
















3














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










share|improve this question
























  • Have you tried pdf2ps?
    – minmaxavg
    Nov 5 at 0:43










  • What do you mean? Transform the pdf to ps then print it?
    – Minee
    Nov 7 at 20:22










  • Yes, it's done on many occasions, and certainly no formatting would be lost anyway.
    – minmaxavg
    Nov 7 at 22:18










  • CUPS v2.27 does not exist. Do you mean v2.2.7?
    – Kurt Pfeifle
    Dec 15 at 17:02














3












3








3


1





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










share|improve this question















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







printing pdf






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 15 at 18:31









Kurt Pfeifle

92079




92079










asked Nov 3 at 23:29









Minee

162




162












  • Have you tried pdf2ps?
    – minmaxavg
    Nov 5 at 0:43










  • What do you mean? Transform the pdf to ps then print it?
    – Minee
    Nov 7 at 20:22










  • Yes, it's done on many occasions, and certainly no formatting would be lost anyway.
    – minmaxavg
    Nov 7 at 22:18










  • CUPS v2.27 does not exist. Do you mean v2.2.7?
    – Kurt Pfeifle
    Dec 15 at 17:02


















  • Have you tried pdf2ps?
    – minmaxavg
    Nov 5 at 0:43










  • What do you mean? Transform the pdf to ps then print it?
    – Minee
    Nov 7 at 20:22










  • Yes, it's done on many occasions, and certainly no formatting would be lost anyway.
    – minmaxavg
    Nov 7 at 22:18










  • CUPS v2.27 does not exist. Do you mean v2.2.7?
    – Kurt Pfeifle
    Dec 15 at 17:02
















Have you tried pdf2ps?
– minmaxavg
Nov 5 at 0:43




Have you tried pdf2ps?
– minmaxavg
Nov 5 at 0:43












What do you mean? Transform the pdf to ps then print it?
– Minee
Nov 7 at 20:22




What do you mean? Transform the pdf to ps then print it?
– Minee
Nov 7 at 20:22












Yes, it's done on many occasions, and certainly no formatting would be lost anyway.
– minmaxavg
Nov 7 at 22:18




Yes, it's done on many occasions, and certainly no formatting would be lost anyway.
– minmaxavg
Nov 7 at 22:18












CUPS v2.27 does not exist. Do you mean v2.2.7?
– Kurt Pfeifle
Dec 15 at 17:02




CUPS v2.27 does not exist. Do you mean v2.2.7?
– Kurt Pfeifle
Dec 15 at 17:02










1 Answer
1






active

oldest

votes


















0














This could mean two things:





  1. 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.




    • You should check if you have installed the cups-filters package: dpkg -l cups*.

    • If it is missing, install it: sudo apt-get install cups-filters




  2. 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 application/pdf.





    • Check if the following entry is in /usr/share/cups/mime.types:



      application/pdf



    • Check if above entry also has the second field like in the following line:



      application/pdf                 pdf regex(0,^[nr]*%PDF)









share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1089829%2ferror-unsupported-document-format-application-pdf%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    This could mean two things:





    1. 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.




      • You should check if you have installed the cups-filters package: dpkg -l cups*.

      • If it is missing, install it: sudo apt-get install cups-filters




    2. 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 application/pdf.





      • Check if the following entry is in /usr/share/cups/mime.types:



        application/pdf



      • Check if above entry also has the second field like in the following line:



        application/pdf                 pdf regex(0,^[nr]*%PDF)









    share|improve this answer


























      0














      This could mean two things:





      1. 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.




        • You should check if you have installed the cups-filters package: dpkg -l cups*.

        • If it is missing, install it: sudo apt-get install cups-filters




      2. 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 application/pdf.





        • Check if the following entry is in /usr/share/cups/mime.types:



          application/pdf



        • Check if above entry also has the second field like in the following line:



          application/pdf                 pdf regex(0,^[nr]*%PDF)









      share|improve this answer
























        0












        0








        0






        This could mean two things:





        1. 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.




          • You should check if you have installed the cups-filters package: dpkg -l cups*.

          • If it is missing, install it: sudo apt-get install cups-filters




        2. 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 application/pdf.





          • Check if the following entry is in /usr/share/cups/mime.types:



            application/pdf



          • Check if above entry also has the second field like in the following line:



            application/pdf                 pdf regex(0,^[nr]*%PDF)









        share|improve this answer












        This could mean two things:





        1. 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.




          • You should check if you have installed the cups-filters package: dpkg -l cups*.

          • If it is missing, install it: sudo apt-get install cups-filters




        2. 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 application/pdf.





          • Check if the following entry is in /usr/share/cups/mime.types:



            application/pdf



          • Check if above entry also has the second field like in the following line:



            application/pdf                 pdf regex(0,^[nr]*%PDF)










        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 15 at 17:12









        Kurt Pfeifle

        92079




        92079






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1089829%2ferror-unsupported-document-format-application-pdf%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How did Captain America manage to do this?

            迪纳利

            南乌拉尔铁路局