Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

PDF view instead of downloading it #1383

Closed
TimKadyrov opened this issue Jun 10, 2021 · 1 comment
Closed

PDF view instead of downloading it #1383

TimKadyrov opened this issue Jun 10, 2021 · 1 comment

Comments

@TimKadyrov
Copy link

It may be related to #1127 but I'm not sure since I want PDF to be displayed.

When I pass URL to PDF file, wv2 first downloads it and then user need to select what to do with it.
If selection is made to open it in viewer - it will be opened in a new wv2 window, and not in the one embedded in application.

Is it possible to control somehow that downloaded PDF is automatically opened in wv2 control which received this download link?

Very much appreciated.

@hunkydoryrepair
Copy link

do you control the server? This can be controlled by Content-Disposition header, I believe.

You could also try using Javascript, something like

ExecuteScriptAsync("window.location = '/path-to/my.pdf'")

@MicrosoftEdge MicrosoftEdge locked and limited conversation to collaborators Oct 10, 2023
@victorhuangwq victorhuangwq converted this issue into discussion #3880 Oct 10, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants