Page 1 of 1

Sending a PDF to printer

Posted: Mon Mar 06, 2017 1:26 pm
by kroka
Hello,

I am developing a project for a small company where one of the tasks is to print out a PDF document that is part of the program.

That means: The PDF is there and can be viewd in the browser widget, it only has to be sent to a printer.

Is there a way to do this without launching the PDF in an external viewer? And is there a way to do the same in an iOS-app?

I appreciate any idea.

Kroka

Re: Sending a PDF to printer

Posted: Tue Mar 14, 2017 6:11 pm
by MaxV
Every OS has it's code to print directly a PDF. On Mobile devices you can't for security reasons, you must launch an app with permission to communicate with a printer... it's a mess.
On Linux:

Code: Select all

put shell("lpr  myFile.pdf")
On Windows install RawFilePrinter.exe and then

Code: Select all

put shell("RawFilePrinter.exe -p " & quote & "c:\Users\Me\Desktop\mypdffile.pdf" & space & quote & "Canon Printer" & quote ")
On Mac

Code: Select all

put shell("lpr  myFile.pdf")

Re: Sending a PDF to printer

Posted: Sat Apr 14, 2018 8:19 am
by mikewhite
I am looking for a solution too. i did convert PDF to PNG using online free Converter https://onlineconvertfree[dot]com and now i want to send the PNG mage to printer. not sure how to go about it.