Skip to content

PDF generation #47

@BotondGalxc

Description

@BotondGalxc

We discussed the requirement to generate PDFs based on the contents of the website.

Browsers already have the capabilities to generate PDFs of the displayed website. The project Puppeteer uses the API of a headless browser (Chrome or Firefox) to render a HTML page, which can be transformed into a PDF file with the built-in browser capabilities.

To leverage this, we can do the following:

  • write a script, that compiles the .md files into one well-structured .md file
  • let docusaurus render the .md file as an HTLM page
  • cusomize the template for docusaurus for the page
  • Use Puppeteer to render the page as pdf

Researching different other options, I found, that these pdf-generators have a short lifetime, when they are created and maintained. The "latest" version is already a few years old. I recommend to use tools which get patches and improvements regulary and combine them to our own solution.

What do you think? @ostempel @Gerrit91 @simcod

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions