Recommended Approach to Wait for a PDF to Load? #2712
Unanswered
Mike-E-angelo
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Are you talking about like opening .pdf using browser and want to rasterize it from there? Are you sure you dont want to use small specialized library for that? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Community,
This is tangentially-related to this discussion. I am encountering an issue with taking screenshots of PDF files. Currently, I have to use a
Task.Delay(5000)
to wait for the PDF to fully load before I can take a screenshot. Any time before this the PDF is not fully loaded and results in a blurry circle instead of a screenshot of the content.As this time seems to be dependent on the speed of the machine I am worried that this wait will be different upon deployment and still result in inaccurate screenshots. Is there an elegant way to wait for the PDF to fully load before taking the screenshot?
Thank you for any assistance you can provide.
Beta Was this translation helpful? Give feedback.
All reactions