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

Documentation Learn in PDF

Started by Muut Archive 11 years ago · 8 replies · 1867 views
11 years ago

HI,

Is the full documentation can be avalaible in pdf format in order to read it offline ?
It would be very helpful (or at least some chapters)
Thank you

11 years ago

Need to see if there's some automated service that can do this, else we'll have to have a mechanism to generate a PDF from Grav directly.

11 years ago

Hello @hardboiled, as said @rhukster should be a general mechanism to generate a pdf, but if you just convert to pdf a chapter at a time, you can install my plugin snappygrav: you can download from http://getgrav.org/downloads/plugins or from github and follow what is written in the readme.md.
It is important to add these lines

TWIG
{% if config.plugins.snappygrav.enabled %}
    <a href="{{ page.url }}:pdf" title="Send to PDF"><i class="fa fa-file-pdf-o"></i></a>
{% endif %}

in the bottom of the file github_link.html.twig or completely replacing its content.

10 years ago

I tried using this plugin, but get the following error when trying to generate a PDF:

TXT

E_NOTICE - Undefined variable: page_slug
---
10 years ago

Can you tell me what skeleton, which theme you are using and the type of printing (:pdf or :completepdf)?

10 years ago

I am using the RTFM Site skelton with the learn2 theme. The :pdf breaks. The :completepdf downloads the pdf.

10 years ago

Since I can not recreate the error, can you provide link to your website or a screenshot?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1362 9 years ago
Archive · by Muut Archive, 9 years ago
2 939 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2959 9 years ago
Archive · by Muut Archive, 9 years ago
3 1124 9 years ago