Canon printer won't print PDF files












3















I am stumped with this situation. I have a new Canon Pixma MG5300 inkjet printer which is connected via USB. Anything else than PDF works perfectly fine: Ubuntu printer test page, LibreOffice files, web pages, Gimp images.



But it won't print any PDF file, from any PDF-viewer app.



When I print a PDF file, the printer wakes up just as usual, and the display shows "processing" as usual. But the output tray does not open (it usually does), and after a few seconds the display just goes back to idle. The file disappears from Ubuntu's print queue just as if it had been printed.




  • I've tried removing the printer and letting the computer rediscover and reinstall it.

  • I'm using default printer settings.

  • I've installed a number of PDF viewer apps from the Software Center, just to rule out that the built-in document viewer is to blame.

  • I've tried with a wide variety of PDF files -- some generated by SimpleScan, some downloaded from the Internet.

  • The printer also has a WIFI interface, so I've tried installing it as a WIFI printer and use that instead of via USB. No difference.


What can I do to troubleshoot this?




  • Ubuntu 13.10 detects and correctly identifies the printer, and provides drivers for it. I have not tried to find alternative drivers yet.










share|improve this question

























  • Honestly, I wouldn't have an explanation if this would work, but did you try printing from a terminal using lpr -P PRINTERNAME whatever.pdf?

    – Klaus-Dieter Warzecha
    Feb 25 '14 at 8:49






  • 1





    @KlausWarzecha: Thanks, I usually don't use the command line but I will try that this evening and report back.

    – Torben Gundtofte-Bruun
    Feb 25 '14 at 8:50
















3















I am stumped with this situation. I have a new Canon Pixma MG5300 inkjet printer which is connected via USB. Anything else than PDF works perfectly fine: Ubuntu printer test page, LibreOffice files, web pages, Gimp images.



But it won't print any PDF file, from any PDF-viewer app.



When I print a PDF file, the printer wakes up just as usual, and the display shows "processing" as usual. But the output tray does not open (it usually does), and after a few seconds the display just goes back to idle. The file disappears from Ubuntu's print queue just as if it had been printed.




  • I've tried removing the printer and letting the computer rediscover and reinstall it.

  • I'm using default printer settings.

  • I've installed a number of PDF viewer apps from the Software Center, just to rule out that the built-in document viewer is to blame.

  • I've tried with a wide variety of PDF files -- some generated by SimpleScan, some downloaded from the Internet.

  • The printer also has a WIFI interface, so I've tried installing it as a WIFI printer and use that instead of via USB. No difference.


What can I do to troubleshoot this?




  • Ubuntu 13.10 detects and correctly identifies the printer, and provides drivers for it. I have not tried to find alternative drivers yet.










share|improve this question

























  • Honestly, I wouldn't have an explanation if this would work, but did you try printing from a terminal using lpr -P PRINTERNAME whatever.pdf?

    – Klaus-Dieter Warzecha
    Feb 25 '14 at 8:49






  • 1





    @KlausWarzecha: Thanks, I usually don't use the command line but I will try that this evening and report back.

    – Torben Gundtofte-Bruun
    Feb 25 '14 at 8:50














3












3








3


2






I am stumped with this situation. I have a new Canon Pixma MG5300 inkjet printer which is connected via USB. Anything else than PDF works perfectly fine: Ubuntu printer test page, LibreOffice files, web pages, Gimp images.



But it won't print any PDF file, from any PDF-viewer app.



When I print a PDF file, the printer wakes up just as usual, and the display shows "processing" as usual. But the output tray does not open (it usually does), and after a few seconds the display just goes back to idle. The file disappears from Ubuntu's print queue just as if it had been printed.




  • I've tried removing the printer and letting the computer rediscover and reinstall it.

  • I'm using default printer settings.

  • I've installed a number of PDF viewer apps from the Software Center, just to rule out that the built-in document viewer is to blame.

  • I've tried with a wide variety of PDF files -- some generated by SimpleScan, some downloaded from the Internet.

  • The printer also has a WIFI interface, so I've tried installing it as a WIFI printer and use that instead of via USB. No difference.


What can I do to troubleshoot this?




  • Ubuntu 13.10 detects and correctly identifies the printer, and provides drivers for it. I have not tried to find alternative drivers yet.










share|improve this question
















I am stumped with this situation. I have a new Canon Pixma MG5300 inkjet printer which is connected via USB. Anything else than PDF works perfectly fine: Ubuntu printer test page, LibreOffice files, web pages, Gimp images.



But it won't print any PDF file, from any PDF-viewer app.



When I print a PDF file, the printer wakes up just as usual, and the display shows "processing" as usual. But the output tray does not open (it usually does), and after a few seconds the display just goes back to idle. The file disappears from Ubuntu's print queue just as if it had been printed.




  • I've tried removing the printer and letting the computer rediscover and reinstall it.

  • I'm using default printer settings.

  • I've installed a number of PDF viewer apps from the Software Center, just to rule out that the built-in document viewer is to blame.

  • I've tried with a wide variety of PDF files -- some generated by SimpleScan, some downloaded from the Internet.

  • The printer also has a WIFI interface, so I've tried installing it as a WIFI printer and use that instead of via USB. No difference.


What can I do to troubleshoot this?




  • Ubuntu 13.10 detects and correctly identifies the printer, and provides drivers for it. I have not tried to find alternative drivers yet.







13.10 printing pdf canon






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 25 '14 at 8:59







Torben Gundtofte-Bruun

















asked Feb 25 '14 at 8:40









Torben Gundtofte-BruunTorben Gundtofte-Bruun

4,4452463102




4,4452463102













  • Honestly, I wouldn't have an explanation if this would work, but did you try printing from a terminal using lpr -P PRINTERNAME whatever.pdf?

    – Klaus-Dieter Warzecha
    Feb 25 '14 at 8:49






  • 1





    @KlausWarzecha: Thanks, I usually don't use the command line but I will try that this evening and report back.

    – Torben Gundtofte-Bruun
    Feb 25 '14 at 8:50



















  • Honestly, I wouldn't have an explanation if this would work, but did you try printing from a terminal using lpr -P PRINTERNAME whatever.pdf?

    – Klaus-Dieter Warzecha
    Feb 25 '14 at 8:49






  • 1





    @KlausWarzecha: Thanks, I usually don't use the command line but I will try that this evening and report back.

    – Torben Gundtofte-Bruun
    Feb 25 '14 at 8:50

















Honestly, I wouldn't have an explanation if this would work, but did you try printing from a terminal using lpr -P PRINTERNAME whatever.pdf?

– Klaus-Dieter Warzecha
Feb 25 '14 at 8:49





Honestly, I wouldn't have an explanation if this would work, but did you try printing from a terminal using lpr -P PRINTERNAME whatever.pdf?

– Klaus-Dieter Warzecha
Feb 25 '14 at 8:49




1




1





@KlausWarzecha: Thanks, I usually don't use the command line but I will try that this evening and report back.

– Torben Gundtofte-Bruun
Feb 25 '14 at 8:50





@KlausWarzecha: Thanks, I usually don't use the command line but I will try that this evening and report back.

– Torben Gundtofte-Bruun
Feb 25 '14 at 8:50










4 Answers
4






active

oldest

votes


















1














A little research shows that Canon releases a Debian printer driver. The release date is 2011 so I am unsure that it would be any better than the driver in Ubuntu 13.10 though.



Downloads for MG5300 series (select OS = "linux"):
http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG5350.aspx

(This page says MG5350 but the listed drivers are for the whole MG5300 series.)



Direct download link:
http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG5350.aspx?DLtcmuri=tcm:14-863341&page=1&type=download



There's also this scanner driver, but it might not be needed because SimpleScan works fine already:
http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG5350.aspx?DLtcmuri=tcm:14-863345&page=1&type=download






share|improve this answer































    1














    According to Canon's MG-series printer documentation, Canon MG printers have a strange limitation that the only PDF files that they can print are PDF files that have been produced by Canon's own "IJ Scan" or "My Image Garden" software. PDF files produced by all other software cannot be printed. Even PDF files which are imported into IJ Scan from other applications and saved, cannot be printed. There seems to be no workaround or alternative solution, except to buy a printer from another manufacturer.



    Reference:




    1. "Printing Documents (PDF files)", page 442, Canon MG7550 manual, URL (as of September 2015): http://gdlp01.c-wss.com/gds/3/0300015853/02/MG7500ser_OnlineManual_Mac_EN_V02.pdf
      also via http://www.canon.co.uk/support/consumer_products/products/fax__multifunctionals/inkjet/pixma_mg_series/pixma_mg7550.aspx?type=manuals&language=undefined






    share|improve this answer































      0














      Johns answer gave me some hope that it could be possible to fool the printer to accept other pdfs. (Spoiler: No)



      I scanned a PDF (good.pdf) to a USB-stick and looked inside it. (it is able to print pdf files the scanner has produced)



      After some fooling around I found out that the printers "first line of defense" simply checks the pdf metadata.



      This script adds correct pdf metadata to an existing pdf file:



      #!/usr/bin/env bash

      META="[ /Creator (Canon SC1001) /Producer (MG5300 series) /DOCINFO pdfmark"

      gs -dSAFER -dBATCH -dNOPAUSE
      -sDEVICE=pdfwrite
      -dCompatibilityLevel=1.3
      -sOutputFile="$2" "$1" <(echo "$META")


      Also converts the pdf to version to 1.3 since that was the version of good.pdf



      This gets me to the print menu, but unfortunately it fails there.



      I guess the restriction was there for a reason :D The printer is probably really picky about what kinds of pdf it can handle.



      I digged a bit deeper in case anyone wants to pick this up:



      $ qpdf --show-pages --with-images good.pdf 
      page 1: 4 0 R
      images:
      /Im1: 5 0 R, 1240 x 1754

      $ qpdf --show-object=5 good.pdf
      Object is stream. Dictionary:
      << /BitsPerComponent 8 /ColorSpace /DeviceRGB /Filter /DCTDecode /Height 11 0 R /Length 7 0 R /Subtype /Image /Type /XObject /Width 10 0 R >>

      $ file =(qpdf --show-object=5 good.pdf --raw-stream-data)
      /tmp/zshVemxbQ: JPEG image data, Exif standard: [TIFF image data, little-endian, direntries=8, manufacturer=Canon, model=MG5300 series, software=1.01, xresolution=135, yresolution=143, resolutionunit=2], baseline, precision 8, 1240x1754, frames 3


      I then tried to no avail to make imagemagick's convert to produce a pdf containing the same type of image data



      Note: this is a Canon Pixma MG5350






      share|improve this answer































        -3














        Simple solution.



        Download Adobe Reader (it's free) and then you can print from there.



        You can also control which pages to print, orientation etc.






        share|improve this answer



















        • 2





          OP claims that he can't print from "any PDF-viewer app" and the accepted answer from question author himself implies that it was a printer driver issue. Also, I doubt that Adobe has somehow implemented better support for Linux' printing subsystem (in an application that they abandoned years ago) than the developers dedicated to open-source applications like Evince, Okular, Xpdf or lpr.

          – David Foerster
          Dec 11 '16 at 13:58













        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%2f425947%2fcanon-printer-wont-print-pdf-files%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        1














        A little research shows that Canon releases a Debian printer driver. The release date is 2011 so I am unsure that it would be any better than the driver in Ubuntu 13.10 though.



        Downloads for MG5300 series (select OS = "linux"):
        http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG5350.aspx

        (This page says MG5350 but the listed drivers are for the whole MG5300 series.)



        Direct download link:
        http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG5350.aspx?DLtcmuri=tcm:14-863341&page=1&type=download



        There's also this scanner driver, but it might not be needed because SimpleScan works fine already:
        http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG5350.aspx?DLtcmuri=tcm:14-863345&page=1&type=download






        share|improve this answer




























          1














          A little research shows that Canon releases a Debian printer driver. The release date is 2011 so I am unsure that it would be any better than the driver in Ubuntu 13.10 though.



          Downloads for MG5300 series (select OS = "linux"):
          http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG5350.aspx

          (This page says MG5350 but the listed drivers are for the whole MG5300 series.)



          Direct download link:
          http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG5350.aspx?DLtcmuri=tcm:14-863341&page=1&type=download



          There's also this scanner driver, but it might not be needed because SimpleScan works fine already:
          http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG5350.aspx?DLtcmuri=tcm:14-863345&page=1&type=download






          share|improve this answer


























            1












            1








            1







            A little research shows that Canon releases a Debian printer driver. The release date is 2011 so I am unsure that it would be any better than the driver in Ubuntu 13.10 though.



            Downloads for MG5300 series (select OS = "linux"):
            http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG5350.aspx

            (This page says MG5350 but the listed drivers are for the whole MG5300 series.)



            Direct download link:
            http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG5350.aspx?DLtcmuri=tcm:14-863341&page=1&type=download



            There's also this scanner driver, but it might not be needed because SimpleScan works fine already:
            http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG5350.aspx?DLtcmuri=tcm:14-863345&page=1&type=download






            share|improve this answer













            A little research shows that Canon releases a Debian printer driver. The release date is 2011 so I am unsure that it would be any better than the driver in Ubuntu 13.10 though.



            Downloads for MG5300 series (select OS = "linux"):
            http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG5350.aspx

            (This page says MG5350 but the listed drivers are for the whole MG5300 series.)



            Direct download link:
            http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG5350.aspx?DLtcmuri=tcm:14-863341&page=1&type=download



            There's also this scanner driver, but it might not be needed because SimpleScan works fine already:
            http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG5350.aspx?DLtcmuri=tcm:14-863345&page=1&type=download







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Feb 25 '14 at 8:45









            Torben Gundtofte-BruunTorben Gundtofte-Bruun

            4,4452463102




            4,4452463102

























                1














                According to Canon's MG-series printer documentation, Canon MG printers have a strange limitation that the only PDF files that they can print are PDF files that have been produced by Canon's own "IJ Scan" or "My Image Garden" software. PDF files produced by all other software cannot be printed. Even PDF files which are imported into IJ Scan from other applications and saved, cannot be printed. There seems to be no workaround or alternative solution, except to buy a printer from another manufacturer.



                Reference:




                1. "Printing Documents (PDF files)", page 442, Canon MG7550 manual, URL (as of September 2015): http://gdlp01.c-wss.com/gds/3/0300015853/02/MG7500ser_OnlineManual_Mac_EN_V02.pdf
                  also via http://www.canon.co.uk/support/consumer_products/products/fax__multifunctionals/inkjet/pixma_mg_series/pixma_mg7550.aspx?type=manuals&language=undefined






                share|improve this answer




























                  1














                  According to Canon's MG-series printer documentation, Canon MG printers have a strange limitation that the only PDF files that they can print are PDF files that have been produced by Canon's own "IJ Scan" or "My Image Garden" software. PDF files produced by all other software cannot be printed. Even PDF files which are imported into IJ Scan from other applications and saved, cannot be printed. There seems to be no workaround or alternative solution, except to buy a printer from another manufacturer.



                  Reference:




                  1. "Printing Documents (PDF files)", page 442, Canon MG7550 manual, URL (as of September 2015): http://gdlp01.c-wss.com/gds/3/0300015853/02/MG7500ser_OnlineManual_Mac_EN_V02.pdf
                    also via http://www.canon.co.uk/support/consumer_products/products/fax__multifunctionals/inkjet/pixma_mg_series/pixma_mg7550.aspx?type=manuals&language=undefined






                  share|improve this answer


























                    1












                    1








                    1







                    According to Canon's MG-series printer documentation, Canon MG printers have a strange limitation that the only PDF files that they can print are PDF files that have been produced by Canon's own "IJ Scan" or "My Image Garden" software. PDF files produced by all other software cannot be printed. Even PDF files which are imported into IJ Scan from other applications and saved, cannot be printed. There seems to be no workaround or alternative solution, except to buy a printer from another manufacturer.



                    Reference:




                    1. "Printing Documents (PDF files)", page 442, Canon MG7550 manual, URL (as of September 2015): http://gdlp01.c-wss.com/gds/3/0300015853/02/MG7500ser_OnlineManual_Mac_EN_V02.pdf
                      also via http://www.canon.co.uk/support/consumer_products/products/fax__multifunctionals/inkjet/pixma_mg_series/pixma_mg7550.aspx?type=manuals&language=undefined






                    share|improve this answer













                    According to Canon's MG-series printer documentation, Canon MG printers have a strange limitation that the only PDF files that they can print are PDF files that have been produced by Canon's own "IJ Scan" or "My Image Garden" software. PDF files produced by all other software cannot be printed. Even PDF files which are imported into IJ Scan from other applications and saved, cannot be printed. There seems to be no workaround or alternative solution, except to buy a printer from another manufacturer.



                    Reference:




                    1. "Printing Documents (PDF files)", page 442, Canon MG7550 manual, URL (as of September 2015): http://gdlp01.c-wss.com/gds/3/0300015853/02/MG7500ser_OnlineManual_Mac_EN_V02.pdf
                      also via http://www.canon.co.uk/support/consumer_products/products/fax__multifunctionals/inkjet/pixma_mg_series/pixma_mg7550.aspx?type=manuals&language=undefined







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Sep 27 '15 at 22:36









                    John BadgerJohn Badger

                    111




                    111























                        0














                        Johns answer gave me some hope that it could be possible to fool the printer to accept other pdfs. (Spoiler: No)



                        I scanned a PDF (good.pdf) to a USB-stick and looked inside it. (it is able to print pdf files the scanner has produced)



                        After some fooling around I found out that the printers "first line of defense" simply checks the pdf metadata.



                        This script adds correct pdf metadata to an existing pdf file:



                        #!/usr/bin/env bash

                        META="[ /Creator (Canon SC1001) /Producer (MG5300 series) /DOCINFO pdfmark"

                        gs -dSAFER -dBATCH -dNOPAUSE
                        -sDEVICE=pdfwrite
                        -dCompatibilityLevel=1.3
                        -sOutputFile="$2" "$1" <(echo "$META")


                        Also converts the pdf to version to 1.3 since that was the version of good.pdf



                        This gets me to the print menu, but unfortunately it fails there.



                        I guess the restriction was there for a reason :D The printer is probably really picky about what kinds of pdf it can handle.



                        I digged a bit deeper in case anyone wants to pick this up:



                        $ qpdf --show-pages --with-images good.pdf 
                        page 1: 4 0 R
                        images:
                        /Im1: 5 0 R, 1240 x 1754

                        $ qpdf --show-object=5 good.pdf
                        Object is stream. Dictionary:
                        << /BitsPerComponent 8 /ColorSpace /DeviceRGB /Filter /DCTDecode /Height 11 0 R /Length 7 0 R /Subtype /Image /Type /XObject /Width 10 0 R >>

                        $ file =(qpdf --show-object=5 good.pdf --raw-stream-data)
                        /tmp/zshVemxbQ: JPEG image data, Exif standard: [TIFF image data, little-endian, direntries=8, manufacturer=Canon, model=MG5300 series, software=1.01, xresolution=135, yresolution=143, resolutionunit=2], baseline, precision 8, 1240x1754, frames 3


                        I then tried to no avail to make imagemagick's convert to produce a pdf containing the same type of image data



                        Note: this is a Canon Pixma MG5350






                        share|improve this answer




























                          0














                          Johns answer gave me some hope that it could be possible to fool the printer to accept other pdfs. (Spoiler: No)



                          I scanned a PDF (good.pdf) to a USB-stick and looked inside it. (it is able to print pdf files the scanner has produced)



                          After some fooling around I found out that the printers "first line of defense" simply checks the pdf metadata.



                          This script adds correct pdf metadata to an existing pdf file:



                          #!/usr/bin/env bash

                          META="[ /Creator (Canon SC1001) /Producer (MG5300 series) /DOCINFO pdfmark"

                          gs -dSAFER -dBATCH -dNOPAUSE
                          -sDEVICE=pdfwrite
                          -dCompatibilityLevel=1.3
                          -sOutputFile="$2" "$1" <(echo "$META")


                          Also converts the pdf to version to 1.3 since that was the version of good.pdf



                          This gets me to the print menu, but unfortunately it fails there.



                          I guess the restriction was there for a reason :D The printer is probably really picky about what kinds of pdf it can handle.



                          I digged a bit deeper in case anyone wants to pick this up:



                          $ qpdf --show-pages --with-images good.pdf 
                          page 1: 4 0 R
                          images:
                          /Im1: 5 0 R, 1240 x 1754

                          $ qpdf --show-object=5 good.pdf
                          Object is stream. Dictionary:
                          << /BitsPerComponent 8 /ColorSpace /DeviceRGB /Filter /DCTDecode /Height 11 0 R /Length 7 0 R /Subtype /Image /Type /XObject /Width 10 0 R >>

                          $ file =(qpdf --show-object=5 good.pdf --raw-stream-data)
                          /tmp/zshVemxbQ: JPEG image data, Exif standard: [TIFF image data, little-endian, direntries=8, manufacturer=Canon, model=MG5300 series, software=1.01, xresolution=135, yresolution=143, resolutionunit=2], baseline, precision 8, 1240x1754, frames 3


                          I then tried to no avail to make imagemagick's convert to produce a pdf containing the same type of image data



                          Note: this is a Canon Pixma MG5350






                          share|improve this answer


























                            0












                            0








                            0







                            Johns answer gave me some hope that it could be possible to fool the printer to accept other pdfs. (Spoiler: No)



                            I scanned a PDF (good.pdf) to a USB-stick and looked inside it. (it is able to print pdf files the scanner has produced)



                            After some fooling around I found out that the printers "first line of defense" simply checks the pdf metadata.



                            This script adds correct pdf metadata to an existing pdf file:



                            #!/usr/bin/env bash

                            META="[ /Creator (Canon SC1001) /Producer (MG5300 series) /DOCINFO pdfmark"

                            gs -dSAFER -dBATCH -dNOPAUSE
                            -sDEVICE=pdfwrite
                            -dCompatibilityLevel=1.3
                            -sOutputFile="$2" "$1" <(echo "$META")


                            Also converts the pdf to version to 1.3 since that was the version of good.pdf



                            This gets me to the print menu, but unfortunately it fails there.



                            I guess the restriction was there for a reason :D The printer is probably really picky about what kinds of pdf it can handle.



                            I digged a bit deeper in case anyone wants to pick this up:



                            $ qpdf --show-pages --with-images good.pdf 
                            page 1: 4 0 R
                            images:
                            /Im1: 5 0 R, 1240 x 1754

                            $ qpdf --show-object=5 good.pdf
                            Object is stream. Dictionary:
                            << /BitsPerComponent 8 /ColorSpace /DeviceRGB /Filter /DCTDecode /Height 11 0 R /Length 7 0 R /Subtype /Image /Type /XObject /Width 10 0 R >>

                            $ file =(qpdf --show-object=5 good.pdf --raw-stream-data)
                            /tmp/zshVemxbQ: JPEG image data, Exif standard: [TIFF image data, little-endian, direntries=8, manufacturer=Canon, model=MG5300 series, software=1.01, xresolution=135, yresolution=143, resolutionunit=2], baseline, precision 8, 1240x1754, frames 3


                            I then tried to no avail to make imagemagick's convert to produce a pdf containing the same type of image data



                            Note: this is a Canon Pixma MG5350






                            share|improve this answer













                            Johns answer gave me some hope that it could be possible to fool the printer to accept other pdfs. (Spoiler: No)



                            I scanned a PDF (good.pdf) to a USB-stick and looked inside it. (it is able to print pdf files the scanner has produced)



                            After some fooling around I found out that the printers "first line of defense" simply checks the pdf metadata.



                            This script adds correct pdf metadata to an existing pdf file:



                            #!/usr/bin/env bash

                            META="[ /Creator (Canon SC1001) /Producer (MG5300 series) /DOCINFO pdfmark"

                            gs -dSAFER -dBATCH -dNOPAUSE
                            -sDEVICE=pdfwrite
                            -dCompatibilityLevel=1.3
                            -sOutputFile="$2" "$1" <(echo "$META")


                            Also converts the pdf to version to 1.3 since that was the version of good.pdf



                            This gets me to the print menu, but unfortunately it fails there.



                            I guess the restriction was there for a reason :D The printer is probably really picky about what kinds of pdf it can handle.



                            I digged a bit deeper in case anyone wants to pick this up:



                            $ qpdf --show-pages --with-images good.pdf 
                            page 1: 4 0 R
                            images:
                            /Im1: 5 0 R, 1240 x 1754

                            $ qpdf --show-object=5 good.pdf
                            Object is stream. Dictionary:
                            << /BitsPerComponent 8 /ColorSpace /DeviceRGB /Filter /DCTDecode /Height 11 0 R /Length 7 0 R /Subtype /Image /Type /XObject /Width 10 0 R >>

                            $ file =(qpdf --show-object=5 good.pdf --raw-stream-data)
                            /tmp/zshVemxbQ: JPEG image data, Exif standard: [TIFF image data, little-endian, direntries=8, manufacturer=Canon, model=MG5300 series, software=1.01, xresolution=135, yresolution=143, resolutionunit=2], baseline, precision 8, 1240x1754, frames 3


                            I then tried to no avail to make imagemagick's convert to produce a pdf containing the same type of image data



                            Note: this is a Canon Pixma MG5350







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jan 12 at 16:36









                            olejorgenbolejorgenb

                            1112




                            1112























                                -3














                                Simple solution.



                                Download Adobe Reader (it's free) and then you can print from there.



                                You can also control which pages to print, orientation etc.






                                share|improve this answer



















                                • 2





                                  OP claims that he can't print from "any PDF-viewer app" and the accepted answer from question author himself implies that it was a printer driver issue. Also, I doubt that Adobe has somehow implemented better support for Linux' printing subsystem (in an application that they abandoned years ago) than the developers dedicated to open-source applications like Evince, Okular, Xpdf or lpr.

                                  – David Foerster
                                  Dec 11 '16 at 13:58


















                                -3














                                Simple solution.



                                Download Adobe Reader (it's free) and then you can print from there.



                                You can also control which pages to print, orientation etc.






                                share|improve this answer



















                                • 2





                                  OP claims that he can't print from "any PDF-viewer app" and the accepted answer from question author himself implies that it was a printer driver issue. Also, I doubt that Adobe has somehow implemented better support for Linux' printing subsystem (in an application that they abandoned years ago) than the developers dedicated to open-source applications like Evince, Okular, Xpdf or lpr.

                                  – David Foerster
                                  Dec 11 '16 at 13:58
















                                -3












                                -3








                                -3







                                Simple solution.



                                Download Adobe Reader (it's free) and then you can print from there.



                                You can also control which pages to print, orientation etc.






                                share|improve this answer













                                Simple solution.



                                Download Adobe Reader (it's free) and then you can print from there.



                                You can also control which pages to print, orientation etc.







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Dec 11 '16 at 13:07









                                JohncarJohncar

                                1




                                1








                                • 2





                                  OP claims that he can't print from "any PDF-viewer app" and the accepted answer from question author himself implies that it was a printer driver issue. Also, I doubt that Adobe has somehow implemented better support for Linux' printing subsystem (in an application that they abandoned years ago) than the developers dedicated to open-source applications like Evince, Okular, Xpdf or lpr.

                                  – David Foerster
                                  Dec 11 '16 at 13:58
















                                • 2





                                  OP claims that he can't print from "any PDF-viewer app" and the accepted answer from question author himself implies that it was a printer driver issue. Also, I doubt that Adobe has somehow implemented better support for Linux' printing subsystem (in an application that they abandoned years ago) than the developers dedicated to open-source applications like Evince, Okular, Xpdf or lpr.

                                  – David Foerster
                                  Dec 11 '16 at 13:58










                                2




                                2





                                OP claims that he can't print from "any PDF-viewer app" and the accepted answer from question author himself implies that it was a printer driver issue. Also, I doubt that Adobe has somehow implemented better support for Linux' printing subsystem (in an application that they abandoned years ago) than the developers dedicated to open-source applications like Evince, Okular, Xpdf or lpr.

                                – David Foerster
                                Dec 11 '16 at 13:58







                                OP claims that he can't print from "any PDF-viewer app" and the accepted answer from question author himself implies that it was a printer driver issue. Also, I doubt that Adobe has somehow implemented better support for Linux' printing subsystem (in an application that they abandoned years ago) than the developers dedicated to open-source applications like Evince, Okular, Xpdf or lpr.

                                – David Foerster
                                Dec 11 '16 at 13:58




















                                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.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f425947%2fcanon-printer-wont-print-pdf-files%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

                                Human spaceflight

                                Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                                張江高科駅