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

PrintToPdfAsync PageRanges not work #3719

Closed
1339240789 opened this issue Aug 18, 2023 · 3 comments
Closed

PrintToPdfAsync PageRanges not work #3719

1339240789 opened this issue Aug 18, 2023 · 3 comments
Assignees
Labels
bug Something isn't working tracked We are tracking this work internally.

Comments

@1339240789
Copy link

1339240789 commented Aug 18, 2023

Description

I have a page that prints multiple sheets of paper, and PrintToPdfAsync prints all pages to PDF no matter how much pageRange I set

image
image
TestPrintUrl: https://www.electronjs.org/zh/docs/latest/api/notification

Version
SDK: 1.0.1901.177
Runtime: 115.0.1901.203
Framework: Winforms
OS: Win11

Regression
Was this working before but has regressed?
If yes, what version did this last work on?

Repro Steps

Screenshots

Additional context

AB#46043749

@1339240789 1339240789 added the bug Something isn't working label Aug 18, 2023
@novac42
Copy link
Contributor

novac42 commented Aug 18, 2023

Thanks for reporting the issue and sorry you are running into it. I've assigned this to a dev who can help follow up on this.

@vickiez vickiez added the tracked We are tracking this work internally. label Aug 18, 2023
@monica-ch
Copy link
Contributor

monica-ch commented Sep 20, 2023

@1339240789 While we fix this for PrintToPDFAsync, can you see if PrintToPDFStreamAsync API works for your scenario that supports PageRanges.

@victorhuangwq
Copy link
Collaborator

Fix is now available in the latest WebView2 pre-release runtime, as per the release notes: https://learn.microsoft.com/en-us/microsoft-edge/webview2/release-notes?tabs=dotnetcsharp#102164-prerelease.

Closing the issue as resolved. Do reopen if issue is yet to be resolved.

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

5 participants