PDF creation for Firebase and Firestore
Leverage the power of popular tools like HTML, CSS, Handlebars,
and Markdown to simplify your PDF generation process.
PDFPlum is free to use and open source provided with Apache-2.0 license.
Leverage the power of popular tools like HTML, CSS, Handlebars,
and Markdown to simplify your PDF generation process.
PDFPlum is free to use and open source provided with Apache-2.0 license.
The template bundle is a ZIP file that contains the index.html
file.
You can optionally incorporate additional resources, which will be accessible and loaded by index.html
during rendering.
In short, with PDFPlum, you have the capability to create any content a browser can display.
After installing the extension on your Firebase project and uploading your template bundle to a Storage bucket, generating new PDFs becomes effortless. Simply call an endpoint or create a new document in a Firestore collection, choosing the method that best suits your needs.
Learn more about triggering the extension by calling an endpoint →Learn more about triggering the extension by creating Firestore documents →This is a sample invoice generated by PDFPlum. You can put your own logo and company name in it and use it as is. Feel free to change/adjust different parts of it based on your needs.
This is a good example to see how different data structures are sent to PDFPlum via Firestore documents or GET parameters.
See the contents of this bundle →Find more invoice templates here →This is a good starting point to learn how to set things up and use the features of PDFPlum.
Some of the use cases covered in this demo:
Many people already know markdown and enjoy its standard format. This example demonestrates how to use markdown as the templating language.
If you prefer to write your template in markdown, you can use this template as a boilerplate and change its components based on your needs.
It is using markdown-it library to transform markdown to HTML. PDFPlum then uses the generated HTML to create the PDF file.
See the contents of this bundle →Learn more about markdown-it →