Print a file

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Print a file

  • Creator
    Topic
  • #54916
    Anonymous

      I got the request to print some files (PDF format).

      I have no idea, how that can be achieved. (I never lost a thought about print, but just always only hit the print button.)

      Is it sufficient to just sent the PDF file via pdl-tcpip protocol of an outbound thread to a printer’s IP and port (which port?)?

      Do I need to change the format of the PDF file into something a printer does understand?

      Is there a specific pdl protocol available?

      I’m curious, if any body realized such an interface. Thanks for all hints, pointers and samples. [/list]

    Viewing 1 reply thread
    • Author
      Replies
      • #83439
        Elisha Gould
        Participant

          I haven’t done it myself, but if your using linux, then use the lpr command.

          You’ll need to set up the printer in the CUPS configuration. Google is full of examples if you search for “linux print pdf from command line” or “linux CUPS”

          For windows, looks like a touch more of a pain. Could possibly use acrobat reader:

          http://stackoverflow.com/questions/19124808/printing-pdfs-from-windows-command-line

          To run from a cloverleaf site, I’d probably send the PDF to a directory, then have a file reader/UPOC thread that scans the directory and uses “exec” to run the command line on it. Once complete move/delete the file.

        • #83440
          Dan Duffley
          Participant

            If this is on windows, I’ve found that the Adobe Acrobat solution has to have a logged in user to the windows desktop, so it isn’t feasible within Cloverleaf.

            SumatraPDF is the best choice I’ve found.

            <a href="http://www.sumatrapdfreader.org&#8221; class=”bbcode_url”>http://www.sumatrapdfreader.org

            Download the

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.