You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
CoreWebView2.PrintAsync(printSetting) print blurring when passing virtual PDF printer as the printerName.
The default DPI is not populated from the virtual PDF printer, it always prints the lowest DPI(72) which results in the garbled PDF output.
Version
SDK: 1.0.1901.177
Runtime: Microsoft Edge WebView2 Runtime 115.0.1901.203
Framework: WPF
OS: Windows 10 Enterprise 19044.3208
.NET SDK 6.0
Regression
Was this working before but has regressed? Not sure
Check the print queue for "Adobe Print to PDF", noticed the pdf print job is generated with 72dpi instead of the default DPI sets on the virtual PDF printer.
It would be helpful if we can override the DPI value when creating CoreWebView2PrintSettings or have it fall back to the default DPI on the printer.
@Hedwig188 Can you let me know on how you are checking the printed properties from Print queue? Also, what is the behavior you are seeing if printed from the browser?
Added some instructions below to check what DPI is used when printing to the PDF printer.
Go to the "Printers & Scanners" settings from the window's search bar then click Manage for your PDF printer->Printer Properties->Advances->check Keep printed documents
Run the solution to print the document to the updated PDF printer
Open the print queue for this printer, right-click on the last print job and select Properties
Description
CoreWebView2.PrintAsync(printSetting) print blurring when passing virtual PDF printer as the printerName.
The default DPI is not populated from the virtual PDF printer, it always prints the lowest DPI(72) which results in the garbled PDF output.
Version
SDK: 1.0.1901.177
Runtime: Microsoft Edge WebView2 Runtime 115.0.1901.203
Framework: WPF
OS: Windows 10 Enterprise 19044.3208
.NET SDK 6.0
Regression
Was this working before but has regressed? Not sure
Repro Steps
It would be helpful if we can override the DPI value when creating
CoreWebView2PrintSettings
or have it fall back to the default DPI on the printer.AB#46014376
The text was updated successfully, but these errors were encountered: