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

Want to Display the Right-to-Left PDF #2203

Open
Atsushi-Johara opened this issue Feb 22, 2022 · 7 comments
Open

Want to Display the Right-to-Left PDF #2203

Atsushi-Johara opened this issue Feb 22, 2022 · 7 comments
Assignees
Labels
feature request feature request tracked We are tracking this work internally.

Comments

@Atsushi-Johara
Copy link

Atsushi-Johara commented Feb 22, 2022

Would you please add right edge binding PDF(like a Japanese comic) display function?
The two-page display is a nice feature ("Hidden PDF Toolber" too), but now it is displayed in reverse pages.

I tried about using the "InjectScript" function of "WebView2APISample", but PDF objects would not accept operations. (Chronium specification?)

I'm afraid there is little demand this feature and it is difficult to support right-bind PDF.
If so, isn't it possible to operate PDF objects in JavaScript?

AB#39415421

@Atsushi-Johara Atsushi-Johara added the feature request feature request label Feb 22, 2022
@champnic
Copy link
Member

champnic commented Mar 1, 2022

Hey @Atsushi-Johara - Thanks for the feature request! What's the current behavior in the browser (Microsoft Edge or Google Chrome)? It feels like there should be a localization feature which would let the PDF feature know to default to Right-to-left page display.

@champnic champnic self-assigned this Mar 1, 2022
@NonakaToshihiro
Copy link

I too would strongly prefer this feature be added.
In Google Chrome, the right edge binding PDF displays as follows:

| page 1 | page 2 |
| page 3 | page 4 |

The expected order is as follows:

| page 2 | page 1 |
| page 4 | page 3 |

@NonakaToshihiro
Copy link

@champnic
I would like to provide some information because I need this feature. What can I tell you that would assist you in adding this feature?

@champnic champnic added the tracked We are tracking this work internally. label May 2, 2022
@champnic
Copy link
Member

champnic commented May 2, 2022

I've added this as a scenario on our backlog and reached out to our PDF team. I think this may need to be a feature built by Chrome/Edge, rather than WebView2, but I'll let you know what I learn. Thanks!

@champnic
Copy link
Member

champnic commented May 2, 2022

The PDF team already has this request on their backlog and they say it's relatively high priority. I don't have a timeline yet. Thanks!

@NonakaToshihiro
Copy link

What is the status of this case since then?

@NonakaToshihiro
Copy link

I hope this issue will be resolved as soon as possible.

If ViewerPreferences«/Direction/R2L» is specified, images must be aligned from right to left.

See pages 362-363 of the PDF 1.7 specification for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request feature request tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

3 participants