gitbook-plugin-download-pdf-link
js
Add a download link for PDF on every page which works with multilingual GitBooks
<script type="module"> import gitbookPluginDownloadPdfLink from 'https://cdn.jsdelivr.net/npm/gitbook-plugin-download-pdf-link@2.0.0/+esm' </script>
Gitbook plugin download-pdf-link
GitBook Plugin to add a link on every page to download PDF.
To use this plugin, you have to modify your book.json configuration file.
{
"plugins": ["download-pdf-link"],
"pluginsConfig": {
"download-pdf-link": {
"base": "https://www.gitbook.com/book/poppy-project/poppy-docs/",
"label": {
"en": "Download PDF",
"fr": "Télécharger le PDF"
}
}
}
}
If you are trying it on your desktop, run gitbook install
to download and install the plugin, and gitboook serve .
to run the rendering.
To see this plugin in action, you can see this example.
This plugin comes from the original plugin gitbook-plugin-downloadpdf which was broken for multilingual books.