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

Feature Request - Ability to generate tables on a pdf template #473

Open
mcornielje090404 opened this issue Apr 24, 2024 · 0 comments
Open

Comments

@mcornielje090404
Copy link

Is your feature request related to a problem? Please describe.

I am unable to generate tables within a pdf template. This is very limiting as I need to be able to generate these PDF's based on a previously made template and just slap the dynamic data on top.

Describe the solution you'd like

Currently it requires an object of

{
  width: number;
  height: number;
  padding: [number, number, number, number]
}

A possible solution could be to append

{
  file?: ArrayBuffer | UInt8Array etc.
}

to the basePdf object requiring padding, width, and height (ideally the width and height could be automatically determined if a file is added?).

I was wondering if there was a reason this wasn't previously implemented as it seems like a core aspect of the package to be able to insert templates and add dynamic data to them.

Describe alternatives you've considered

An alternative could be to put the width, height, and padding of a pdf into an options object within the generate function/designer function etc.

Additional context

No response

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

1 participant