3 ms·
Ask HN: How to generate a pdf for website?
Hello,
I am very new to web site development and currently building a website, using react, which teaches online using text/gifs. At the end of the course, I would like to generate a sort of pdf book customized with the user inputs that are spread over the course.
Now, I would like a better design for the book and earlier for one of my own personal project, I used tufte-latex and loved the experience. I have searched for solutions online, but the highly recommended PhantomJS is not really easy to pick up.
Can anyone prime me about setting up a pdf generator using latex or any other suitable solution?
I expect around 3k users at least and some initial traction for people interested in the website.
Thanks and Regards
ai_ia
- pwg 10y agoOne "other suitable solution" could be to use Quickscript (http://quickscript.sourceforge.net/index.html http://quickscript.sourceforge.net/index.html). It is a Postscript based document formatter. The markup format it uses is relatively straighforward. You would output a suitable "qs" file, and then feed the document formatting code plus the "qs" file through ghostscript to generate a pdf.
- deleted 10y ago[deleted]
- osullivj 10y agoIf you're building your backend in Python with Django or Tornado you could use ReportLab's open source PDF generator [1]. ReportLab's founder, Andy Robinson was Mark Hammond's co author on Python Programming for Win32. [1] http://www.reportlab.com/opensource/ http://www.reportlab.com/opensource/
- anilgulecha 10y agopdfjs if an option if you want to generate it on the browser (clientside).