HTML TO PDF USING wkhtmltopdf

Hi,

I’m trying to convert a file from html to pdf. I need the pdf exactly like the web but with wkhtmltopdf I am not being able. This is my configuration for wkhtmltopdf:
image
“–print-media-type --page-width 11.5in --page-height 20in C:\ObsFuncionalidad\Resultados\Alcampo\Producto_0.html C:\ObsFuncionalidad\Resultados\Alcampo\test.pdf”

The pdf I need is this one:

And the one I need this other one:

Hi Mmarcos,
Here you have two options:

  1. Use Send HotKey activity and send(Ctrl+S) and Use Type into activity to mention the name of the pdf.
  2. Use Send HotKey activity and Send(Ctrl+P) + Enter and finally Attach window, followed by click activity.

@mmarcos

As mentioned by @jose.ordonez1 ctrl+p should work

else you can try passing the endpoint in http activity and save the response as pdf and check if that works

cheers

Install browser extensions like “Webpage Saver as PDF” for Chrome or “Print Friendly & PDF” for Firefox. These extensions simplify the process by adding a “Save as PDF” button directly to your browser toolbar. Open the html page directlty click on the button and save that file with your desired name.