-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Race condition in document generation. #762
Comments
Hi I think I have the same issue: Only differnce First time I call the function the PDF is created and writen to disk. Next time I call the function the file is writen with zero bytes. Wait and then retry after a couple of minutes same thing. Any ideas? |
you can use same |
This does not fix the issue ! Thats why I reported it |
Your pdf has png images? |
Yes it has PNG images |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just started using the PDFKit. The following works after calling "doc.end()":
but this returns an empty file:
It appears that doc.end() is a synchronous function. Am I missing an async call, or is it a race condition on the disk?
If I try to read the file from disk immediately after calling
doc.end()
usingfs
, I get an empty file then also.Thanks.
The text was updated successfully, but these errors were encountered: