Skip to content

Give the ability to download a page in PDF #1273

Description

@elv-fra

We are using this theme for internal documentation and it is ok.

Occasionally we have some pages which would be good to have it in PDF. We can use print, but it is not the same as having an action which provide a pdf .

I investigated, and also if it is not perfect, html2pdf.js should do the trick.

Can it possibly be integrated?

I have forked the code, and I can provide a pr.

In the page header add a button, downloadPDF.

Image

The button can be visible or not per page or site based on a param:

geekdocDownloadPdfEnabled

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions