PDF generated with duplicate pages #75
Unanswered
EnderMaldonado
asked this question in
Q&A
Replies: 2 comments
-
I was able to solve my problem by using the pdf-lib to remove the extra pages. You just have to replace the handleDownloadPdf function that I had in the original code with this one here:
pdf-lib source https://pdf-lib.js.org/ |
Beta Was this translation helpful? Give feedback.
0 replies
-
@EnderMaldonado
You need one unit(page1, page2), |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to export the PDF I created and it prints the pages 2 times
This is my code in React with Typescript:
And this is the JSON data that I pass in the Generator Method :
The basePdf var of the Template Object is a public URL of the Firebase server
You can open the url to check
And this is the result:
What am I doing wrong? why does it throw me duplicate pages?
It seems that it first uses the pages with edited values and then puts them back without the edited values.
Beta Was this translation helpful? Give feedback.
All reactions