Streaming live at 10am (PST)

Creating PDF from page content on button click


#1

Hi there,
Im looking to create a printable PDF from the content on one of my pages when clicking a button.
The page is: http://oslo-wine-agency.webflow.io/produkt/est-et-harum and it should happen when you click the "print produktark" page.

Any ideas?


#2

I used a print page media query to accomplish a print friendly page for recipes, users can then save as a PDF from the print dialogue. I used this article as reference.

Add the custom code to the "inside header code" or for the whole site in the custom code site setting area.

Here's my go at the recipes. Click the print icon or control+p to see the result.

Wouldn't be hard to trigger the print dialogue with some code too. Something like javascript:window.print()

Hope it helps.