Announcement

Collapse
No announcement yet.

Can'r print pdf files

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can'r print pdf files

    Although .pdf files can be printed from Gwenview
    But from the command line:-
    Code:
    ~$ lpr /home/bill/xx.pdf
    Doesn't print because in printer manager the following error is shown:-

    loadFilename failed: /var/spool/cups/d00090-001: not a PDF file

    Any ideas would be appreciated

    #2
    Specific reason you are printing from the command line? If its for use in a script I might I propose a different route?

    Comment


      #3
      Yes, I've been calling lpr from a Gambas3 project for a long time now. Perhaps I haven't used it since a recent re-install of Kubuntu.
      Is there a better way?

      Comment


        #4
        Originally posted by bill-lancaster View Post
        Yes, I've been calling lpr from a Gambas3 project for a long time now. Perhaps I haven't used it since a recent re-install of Kubuntu.
        Is there a better way?
        Wait, I'm sure my solution is more convuluted. IF I'm not mistaked, you might be calling lpr wrong. Isn't it
        Code:
        lpr -P "<printer name>" <document name>.pdf
        ? Try that.

        Comment


          #5
          Thanks for the idea
          Removed and re-installed the printer and ran:-
          Code:
          lpr -P "Deskjet_F2400" /home/bill/Documents/xyz.pdf
          Gives the same result. Print queue shows "loadfilename failed, file is not pdf

          Comment


            #6
            http://terokarvinen.com/2011/print-p...-pdf-lpr-p-pdf
            "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
            – John F. Kennedy, February 26, 1962.

            Comment


              #7
              That's done the trick,
              Code:
              http://terokarvinen.com/2011/print-pdf-from-command-line-cups-pdf-lpr-p-pdf
              Thanks

              Comment

              Working...
              X