Page 1 of 1


Posted: Sun Feb 18, 2018 11:48 pm
by cwswitch
Already I can get a job ticket/job bag as a webpage from our MIS. Printing the PDF to the required desktop printer is already solved.

What I'm looking to do now is convert that webpage to a PDF so I can print it.

I have seen numerous websites that offer this facility, but not the kind of thing I can use with Switch.

I have a silly idea to do all this in an Ubuntu virtual machine, but that is a long process and a silly overhead just to achieve this.

Switch is running in a Windows box

Any ideas welcome! Thanks

Re: URL to PDF

Posted: Mon Feb 19, 2018 10:25 am
by Padawan
It looks like this tool can do the job:

It's a command line tool, so you should be able to use it using the Execute Command tool or via Switch scripting.

I haven't tried it myself, so I'm not sure on the quality.

Also, the webpage gives an example with a live url, if you want it to work with html pages, then you will have to use the stuff said here: ... local-file

Re: URL to PDF

Posted: Mon Feb 19, 2018 9:17 pm
by cwswitch
Excellent thanks. This had popped up in searches yesterday but I had got distracted with other options - the most promising of which seemed like Chrome Headless.

But yes, wkhtmltopdf seems to at least grab the page and make a PDF, which is excellent!

Now for the username, password, and all the other joys..

Many thanks

Re: URL to PDF

Posted: Thu Jan 03, 2019 8:48 am
by rick1221
I was also looking for the answer to convert the URL file into the PDF file and I got to know from here what are the main things that need to be done. Converting the webpage to the pdf can be accessed.