how to print a web page automatically
17 views (last 30 days)
I would like to take the html output from the profile and by being in matlab open up each page and automatically print. I know I can view the page with:
but it doesn't seem to have a print capability. I've lots of web pages that I need to batch print.
I'm on mac os x sierra running matlab 2017b, Thanks-Robert
Jan on 12 Jan 2018
Edited: Jan on 12 Jan 2018
See e.g. http://gavinballard.com/automatically-converting-html-to-pdf-on-mac/ : At https://github.com/scottgarner/URL2PDF you find the tool URL2PDF and you can call it from Matlab by:
file = '/path/to/local/file.html';
system(sprintf('url2pdf --url=file://', %s', file)
Printing a PDF should be easy afterwards.
For a direct printing: https://stackoverflow.com/questions/8326955/print-html-file-with-cups
By the way: "print html file macos" are good keywords for a search in the internet.