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
PrintAsync for pdf files prints blank pages #3779
Comments
@AndyInside I am trying to understand when your app calls the WebView2 PrintAsync API? |
I too encountered this problem today. We want to print a pdf file completely in background from a console application, and I have tried that today using PrintAsync. For my small test pdf file i needed to wait at least 500ms for it to be then printed correctly. See my example code and my test pdf file as attachment. SDK: 1.0.2045.28 |
Navigation to pdf file ignores any state events like NavigationCompleted, PrintToPdfAsync starts printing immediately before pdf is loaded ( so prints empty pages) |
Can confirm, the code from @akoessler is reproducible for me. Sometimes the only information available is the "OtherError" print status ... can we get additional information from the CoreWebView2PrintStatus class? Like what the other error actually is. |
Fixed in version 123.0.2376.0+ |
Description
Version
SDK: 1.0.1938.49
Runtime: 116.0.1938.76
Framework: .NET6
OS: Windows 10
PrintAsync for pdf files prints blank pages, it seems that print starts before pdf is fully loaded, and there is no way to find it out. only Thread.Sleep before printing helps. I use 10 seconds timeout , but anyway sometimes it happens,
please help! thanks!
AB#46632667
The text was updated successfully, but these errors were encountered: