Template Contribution Guide ❤️
Add your template to pdfme's Example Templates!
The Template List page is one of the most important pages on pdfme.com, created to help new users find templates that match their requirements and save time.
By adding your template, you can contribute to the pdfme community.
We use GitHub pull requests for template additions - no builds or code changes required.
Even if you're new to OSS contributions, you can easily contribute by following this guide.
Template Addition Steps
1. Create Your Template
Design your template in the Template Designer, then download template.json
using the DL Template
button
2. Prepare Repository
-
[Create Fork]
Click theFork
button at the top-right of pdfme repository to copy to your GitHub account -
[Clone Locally]
Run in terminal (replaceYOUR-GITHUB-USERNAME
with your GitHub username):git clone git@github.com:YOUR-GITHUB-USERNAME/pdfme.git
cd pdfme -
[Create Branch]
Create new branch (example using template namemy-new-template
):git checkout -b add-my-new-template
3. Add Template Files
-
[Create Directory]
Create new directory in kebab-case (e.g.my-new-template
):mkdir -p playground/public/template-assets/my-new-template
- Directory name will appear as
My New Template
on Template List page
- Directory name will appear as
-
[Place Files]
Place downloadedtemplate.json
in the new directory
(Optional) Addauthor
field for credit:{
"author": "YOUR-GITHUB-USERNAME",
"basePdf": ...
}
Reference: https://github.com/pdfme/pdfme/tree/main/playground/public/template-assets/invoice
4. Commit Changes
-
[Record Changes]
Run in terminal:git add .
git commit -m "feat: Add My New Template" -
[Push to GitHub]
Push to your repository:git push origin add-my-new-template
5. Create Pull Request
-
Create PR on GitHub
Go to your repository page →Pull requests
→New pull request
-
Select Branches
base repository
: pdfme/pdfme (main branch)head repository
: YOUR-GITHUB-USERNAME/pdfme (add-my-new-template branch)
-
Enter Information
- Title:
Add [My New Template] template
- Include brief description of template features and use cases
- Title:
-
Submit PR
ClickCreate pull request
to complete!
6. Await Merge
After maintainer review, your template will be merged and listed officially 🎉
(If modifications needed, you'll receive comments on GitHub)
Thank you! Your contribution makes a big impact on pdfme's community 🚀
Need Help?
If you have questions, ask with screenshots in Discord #template-contribution for smooth support!