Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Custom theme for PDF export

Started by Muut Archive 11 years ago · 2 replies · 403 views
11 years ago

Hi,

Really like Grav, I'd like to start using it for some sort of knowledge base/support articles, just like you did with learn.getgrav.org. I want to offer the user a downloadable manual in PDF with all the support articles combined. Therefore I want to create a theme that outputs all the support articles with an index. For the site a theme similar to learn.getgrav.org will be used. As soon as the user presses the Grav should switch theme on the fly so that the HTML of the PDF theme can be used for the PDF. Would something like this be possible?

11 years ago

Hello,
I am also interested in downloading posts in pdf format.
I read the bundle recommended, however:
1) composer ok;
2) where you enable the kernel? (KnpLabs says "app / AppKernel.php")
3) where you enable the binary program wkhtmltopdf? (KnpLabs says "app / config / config.yml")
4) and finally, where to put this controller: https://github.com/KnpLabs/KnpSnappyBundle#generate-a-pdf-document-from-a-twig-view?
thanks

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1329 9 years ago
Archive · by Muut Archive, 9 years ago
2 922 9 years ago
Archive · by Muut Archive, 9 years ago
2 4051 9 years ago
Archive · by Muut Archive, 9 years ago
1 2930 9 years ago
Archive · by Muut Archive, 9 years ago
3 1108 9 years ago