Files
pdfme/playground
Kyohei Fukuda afbfa87674 [WIP] Add pdf2img integration for converting PDF to images in e2e tests (#774)
* Add pdf2img integration for converting PDF to images in e2e tests

* Refactor PDF generation tests to convert PDFs to images and validate against snapshots

* Refactor package.json files to remove "type": "module" and update import statements to CommonJS format

* Fix e2e test

* Add new image snapshots for e2e tests and remove obsolete snapshot
2025-03-01 16:24:01 +09:00
..
2025-02-28 15:49:10 +09:00
2025-01-06 12:28:17 +09:00
2025-02-28 20:49:17 +09:00
2024-09-11 10:36:57 +09:00

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


How to Add Templates to the List

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:

  1. 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.
  2. Place a template.json file inside the directory you created.
  3. At the root of the playground directory, run either npm run generate-template-assets or npm run build.
    • This will generate the template list data and thumbnail images.