Studiosity / grover

A Ruby gem to transform HTML into PDFs, PNGs or JPEGs using Google Puppeteer/Chromium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to save pdf?

marcuxyz opened this issue · comments

Hi,
thanks for providing the gem

How to save pdf, using method .save?

Screenshot 2024-05-29 at 13 32 37

Hi @marcuxyz

Please read the Usage documentation. There is no save method because Grover supports many output formats. Instead there is to_pdf, to_png, to_jpeg and to_html. It sounds like you want .to_pdf

Always a good idea to read the documentation first 😉