pdfme / pdfme

A TypeScript based PDF generator library, made with React.
https://pdfme.com
MIT License
2.19k stars 194 forks source link

Support adding new pages to template #111

Closed asanoviskhak closed 5 months ago

asanoviskhak commented 1 year ago

Hi there! I love what you are doing. I was playing around your library and found out that you can't add new page dynamically in editing modes. It would be great to have that, thanks!

asanoviskhak commented 1 year ago

Mainly it would be creating PDF from blank, and not importing BASE_PDF, or build on top of BASE_PDF

hand-dot commented 1 year ago

Hi! Thank you for the feature suggestion👍

Could you please tell me more detail and user interface and function interface?

hand-dot commented 1 year ago

@asanoviskhak

I labeled the answer because I did not receive a reply. If there are no replies at this point, it will be closed after 30 days. If you have any questions, please comment.

halindraprakoso commented 1 year ago

I'm probably has the same idea. Basically, afaik there's no option to start from blank in the template designer on the website as users are currently required to make and use a blank pdf as the basePDF

xips1337 commented 1 year ago

Поддерживаю идею!

ujjwal-neu commented 1 year ago

@hand-dot @asanoviskhak any updates on this feature or a way around to achieve this?

hlin-neo4j commented 1 year ago

I am interested as well, thanks. Specifically to be able to add a new blank page in Designer mode.

sushi2all commented 8 months ago

The idea could simply be to have a "Add a blank page" section, with a height and width definition and then regenerate the template base pdf.

See relevant pdf-lib docs

Ben-CA commented 6 months ago

Would also like to see multi-page support.

peteward commented 6 months ago

Would also like to see multi-page support.

pdfme is does support multiple pages, just not dynamically creating them for an existing base template/pdf.

This shouldn't be too hard to implement if someone is willing to contribute.

urenpatelce commented 6 months ago

@peteward as you mentioned that pdfme supports multiple pages, so then what will be the template schema? is it possible to have the multiple pages designing at the same time ?

hand-dot commented 5 months ago

implemented by https://github.com/pdfme/pdfme/pull/394