Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create a PDF template file #3

Open
JanMisker opened this issue Dec 16, 2024 · 3 comments
Open

How to create a PDF template file #3

JanMisker opened this issue Dec 16, 2024 · 3 comments

Comments

@JanMisker
Copy link
Contributor

This plugin looks great, seems to be very close to what I would need.
However, how could I create the fillable PDF template? Is it possible to use open source software for that? Or Google Docs or so? Some pointers in the documentation could be very helpful.

Also it would be interesting if certain sections of the PDF could be conditional, e.g. if a field is empty it could be left out completely. So instead of

Name: <nothing>

You would simple not get the Name: label at all.
But I'm not sure how difficult that would be to implement? I guess it requires precise knowledge of the template file.

@redondi88
Copy link
Member

Hi,
Good to hear you can work with the plugin. You can use multiple tools to create PDFs. Acrobat being one, or online tools like www.docfly.com allow you to create fillable PDFs.

A way to solve your problem: You could create a PDF with two fields one with name and other with value. so if both are empty then they will not show.

That said, thats a "hack". You probably want to create parts of the document dynamically, instead of fillable. For that you will need to make changes to the plugin. :)

@JanMisker
Copy link
Contributor Author

Check I indeed found some options also.
Out of curiosity, did you consider something like React-pdf? It's more an HTML to PDF tool. I see the usefulness with the pre-made PDFs but it could also be a bit limiting.

@redondi88
Copy link
Member

Something like that would be a lot more for the use case that I had. Which are standard forms being filled out. This might be ideal for a newer version where there is a form builder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants