Borrar filtros
Borrar filtros

how to print a web page automatically

9 visualizaciones (últimos 30 días)
Robert Welsh
Robert Welsh el 12 de En. de 2018
Comentada: Jan el 3 de Sept. de 2019
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:
web(['file://' fullfile(pwd,'file0.html')]);
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

Respuestas (2)

Jan
Jan el 12 de En. de 2018
Editada: Jan el 12 de En. de 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.
By the way: "print html file macos" are good keywords for a search in the internet.

Marcel
Marcel el 29 de Ag. de 2019
Hi,
is there a similar solution for Windows PC?
thanks
  3 comentarios
Marcel
Marcel el 2 de Sept. de 2019
Hi, thanks for this link. Unfortunately I get the Error: The RPC server is unavailable, even if my Windows 10 Filewall is Off.
Jan
Jan el 3 de Sept. de 2019
Again: Please start a discussion in a new thread. Post there exactly, what you have tried and a copy of the complete error message. I do not see, why calling the Internet Explorer through ActiveX is causing a problem with RPC or teh firewall.

Iniciar sesión para comentar.

Categorías

Más información sobre File Operations en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by