Jump to content
Sign in to follow this  
hyperjase

Silently Print PDF

Recommended Posts

hyperjase

I found a topic on this from 3 years ago with some code and links to some .au3 files, however, it appears much has changed within that time and it doesn't work.

I need to print a PDF, it's created by a webpage (for simpler methods, it saves to a network location) - is it possible to open a PDF viewer to print the document, or would it even be possible to get the PDF directly from the webpage (using inetget)?

Share this post


Link to post
Share on other sites
JLogan3o13

Using InetGet would be simple enough, have you looked at the examples in the help file?

$oFile = InetGet("http://kosovo.ohchr.org/repository/docs/2_slo_sample.pdf", @DesktopDir & "\MyPDF.pdf")

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
hyperjase

Actually just managed to achieve that - a heck of a lot simpler than I thought it would be!  It's just now getting it to print silently (as PDF)

Share this post


Link to post
Share on other sites
ijourneaux

Thanks for posting this tidbit.  Very useful.

Is there an option to send to a specific printer?

ShellExecuteWait("C:Print.pdf","","","Print",@SW_MINIMIZE)
 

Share this post


Link to post
Share on other sites
jguinch

If it can help, I usually use an external application for PDF print, to be sure that it works, even if there is no PDF Reader installed.

I use Sumatra PDF (portable version). With some command line parameters, you can either print on the default printer or on that of your choice.

  • Like 2

Share this post


Link to post
Share on other sites
TalivanIBM

If it can help, I usually use an external application for PDF print, to be sure that it works, even if there is no PDF Reader installed.

I use Sumatra PDF (portable version). With some command line parameters, you can either print on the default printer or on that of your choice.

Thank You, this Application is great, it works so good for me, I was needing to print to a not default printer.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.