-
Notifications
You must be signed in to change notification settings - Fork 90
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
Crash when appending PDF more than 507 times #61
Comments
Not sure if this will give a hint as to what is going on, but if I do the .appendPage 500 times before I invoke the crash, the document created appears to be unhealthy in some way, because when I try to print out the structure of the newly created document, I get the following problem.
So it would appear that the appendPage is not creating healthy PDF file. |
I will check soon. Thanks for finding the issue. |
The problem was that putting appendPage opens up a reader file resource that does not get released after function is complete, so when it is called within a large loop, the program runs out of file descriptors.
fixed in release 1.9.1 |
Since I had to programatically create a template file before I could edit it, I put the creation inside a loop.
when the loop was getting ready to append at the 508th iteration, the following appeared.
Is there some kind of limit involved when appending an existing document to a new document?
The text was updated successfully, but these errors were encountered: