Sending a PDF to printer

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kroka
Posts: 52
Joined: Fri Sep 28, 2007 10:20 am
Location: Berlin, Germany
Contact:

Sending a PDF to printer

Post by kroka » Mon Mar 06, 2017 1:26 pm

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
"irgendwas is immer"

MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: Sending a PDF to printer

Post by MaxV » Tue Mar 14, 2017 6:11 pm

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")
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

mikewhite
Posts: 1
Joined: Sat Apr 14, 2018 7:52 am

Re: Sending a PDF to printer

Post by mikewhite » Sat Apr 14, 2018 8:19 am

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.

Post Reply

Return to “Multimedia”