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

Dynamic text with unknown length should add new pages accordingly while generating the PDF #437

Open
vpn-dev opened this issue Mar 1, 2024 · 1 comment
Labels
help wanted Extra attention is needed idea

Comments

@vpn-dev
Copy link

vpn-dev commented Mar 1, 2024

Describe the bug

I want to add some agreements kind of text which i need to add at last of the pdf which is completely dynamic. Currently I am doing something like {{agreements}} in text widget which while generating the pdf on server not working when text is too large . Ideally pdf should add pages according to content length

To Reproduce

Described in detail in bug description

Expected behavior

Described in detail in bug description

Your Environment

- pdfme package(@pdfme/generator or @pdfme/ui): latest
- pdfme version: latest
- Operating system: Linux
- Node.js version or Browser name & version: node 18

Your Error Log

No errors

Additional context

No response

@hand-dot
Copy link
Collaborator

hand-dot commented Mar 2, 2024

Hey @vpn-dev !
Thank you for the suggestion.

I also have been wanting this feature. I'm thinking of incorporating something like a template engine that can handle placeholders.

In the tables we are currently implementing, we have added a mechanism that allows dynamic height changes and, if necessary, page breaks, so I think it might be possible to realize this using that mechanism.

It might take some time, but I would be happy to discuss the specifications and how to implement it here.


ref: #388
ref: #208 (comment)
ref: https://support.pdfgeneratorapi.com/en/category/expression-language-q203pa/

@hand-dot hand-dot added help wanted Extra attention is needed idea labels Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed idea
Projects
None yet
Development

No branches or pull requests

2 participants