Button to convert markdown/rst/orgmode file to PDF and download #800

Open
opened 2025-11-02 03:37:14 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @lunny on GitHub (Jun 12, 2017).

For a company, we need a formal document to cooperators. Since Gitea has supported markdown to HTML, then provide a PDF download or some PDF settings is a good idea. Now we can covert Markdown to HTML and we can covert HTML to PDF via https://github.com/jung-kurt/gofpdf

Originally created by @lunny on GitHub (Jun 12, 2017). For a company, we need a formal document to cooperators. Since Gitea has supported markdown to HTML, then provide a PDF download or some PDF settings is a good idea. Now we can covert Markdown to HTML and we can covert HTML to PDF via https://github.com/jung-kurt/gofpdf
GiteaMirror added the type/featuretype/proposal labels 2025-11-02 03:37:14 -06:00
Author
Owner

@jonasfranz commented on GitHub (Jun 13, 2017):

I try to implement it but I am not sure if I am able to do it.

@jonasfranz commented on GitHub (Jun 13, 2017): I try to implement it but I am not sure if I am able to do it.
Author
Owner

@lunny commented on GitHub (Jun 14, 2017):

@JonasFranzDEV you cannot be assigned But I think it's enough that you have posted a comment. Please try and send a PR.

@lunny commented on GitHub (Jun 14, 2017): @JonasFranzDEV you cannot be assigned But I think it's enough that you have posted a comment. Please try and send a PR.
Author
Owner

@bkcsoft commented on GitHub (Jun 15, 2017):

Personally I'd just have a print-CSS and use the browsers print-facility :/ (which we'd to use need anyhow...)

@bkcsoft commented on GitHub (Jun 15, 2017): Personally I'd just have a `print`-CSS and use the browsers print-facility :/ (which we'd to use need anyhow...)
Author
Owner

@marbetschar commented on GitHub (Aug 16, 2019):

@jonasfranz is there any progress on this? We document a lot in Markdown format and it would be awesome to be able to print a Markdown file from Gitea to PDF. Doesn't need to be a PDF export IMHO, a simple print CSS which leverages the browsers print-facility would be enough as @bkcsoft suggested....

@marbetschar commented on GitHub (Aug 16, 2019): @jonasfranz is there any progress on this? We document a lot in Markdown format and it would be awesome to be able to print a Markdown file from Gitea to PDF. Doesn't need to be a PDF export IMHO, a simple print CSS which leverages the browsers print-facility would be enough as @bkcsoft suggested....
Author
Owner

@davidak commented on GitHub (Oct 10, 2021):

I think this feature don't fit the core functionality of Gitea and makes it too complex.

There are other tools for that, like pandoc.

You could create a build script for the project that generates PDFs for every file.

@davidak commented on GitHub (Oct 10, 2021): I think this feature don't fit the core functionality of Gitea and makes it too complex. There are other tools for that, like [pandoc](https://pandoc.org/). You could create a build script for the project that generates PDFs for every file.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#800