Skip to content
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

PagesPerSide is not respected when calling CoreWebView2.PrintAsync with virtual PDF printer #3710

Open
Hedwig188 opened this issue Aug 14, 2023 · 4 comments
Assignees
Labels
bug Something isn't working tracked We are tracking this work internally.

Comments

@Hedwig188
Copy link

Hedwig188 commented Aug 14, 2023

Description
CoreWebView2.PrintAsync(printSetting) doesn't respect PagesPerSideoption for virtual PDF printer.

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

  1. Checkout the code from here.
  2. Run the WebView2PrintDPIIssue solution
  3. Save the PDF to file

See the PDF generates one page per sheet instead of 2.

Note: This works fine when printing from Edge's print preview.

AB#46014321

@Hedwig188 Hedwig188 added the bug Something isn't working label Aug 14, 2023
@vickiez vickiez added the tracked We are tracking this work internally. label Aug 16, 2023
@vickiez
Copy link
Contributor

vickiez commented Aug 16, 2023

Hi @Hedwig188, we'll take a look at the issue. In the meantime can you use our PrintToPDF API instead?

@Hedwig188
Copy link
Author

Seems like PrintToPDFAsync has the same issue.

@fabiorocha fabiorocha assigned monica-ch and unassigned vickiez Aug 17, 2023
@Hedwig188
Copy link
Author

Hedwig188 commented Feb 9, 2024

@vickiez @monica-ch Is there a plan to address this issue?

@monica-ch
Copy link
Contributor

@Hedwig188 We've started investigating the issue, will update the thread once the fix is pushed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

3 participants