This repository is a playground and development environment for the https://github.com/pdfme/pdfme library. It can be started with the following command.
root directory
$ npm install
$ npm run build
playground directory
$ npm install
$ npm run dev
If you are developing a pdfme library, please refer to the following document. https://github.com/pdfme/pdfme/blob/main/DEVELOPMENT.md
The playground/public/templates
directory contains sample templates, which are used at https://pdfme.com/templates and https://playground.pdfme.com/templates.
Follow these steps to add a sample template:
- Create a directory with a kebab-case name inside
playground/public/templates
.- This template name will be converted from kebab-case and displayed in the template selection screen.
- Place a
template.json
file inside the directory you created.- You can create this template using https://pdfme.com/template-design or https://playground.pdfme.com.
- At the root of the
playground
directory, run eithernpm run generate-template-assets
ornpm run build
.- This will generate the template list data and thumbnail images.