Reusing/refilling or modifying PDF causes size to grow exponentially
flooie opened this issue · 3 comments
Some bug causes the size of the Pdf used ( if repeatedly used to fill out) to grow exponentially large.
Any idea what is causing this?
At the moment, pdfform amends the PDF file. It has to repeat some, but not all values in the extra data (what exactly depends on the structure of the form and is current values). Can you provide an example file and example code (i.e. with a loop that goes to 20 or so and produces a 1GB file)?
Yeah - Its possible to replicate it with your demo. I ran it this morning and have attached a screen shot of the PDFs generated. I noticed it was an error I could manage by removing some of the non -utf8 characters in the tool tip TU (?) of an acroform on a PDF of mine yesterday.
þÿ. <-- this
I found some complaints of jsPDF appending this character and wonder if its somewhat related
I have been running into a lot of issues in which þÿ comes up for no apparent cause. In fact, in one of my applications it happened at the very beginning of a line of pdf.text().