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

Open pdf though URI #55

Closed
flutteruserrandd opened this issue Feb 2, 2024 · 3 comments
Closed

Open pdf though URI #55

flutteruserrandd opened this issue Feb 2, 2024 · 3 comments
Labels
question Further information is requested

Comments

@flutteruserrandd
Copy link

I am trying to use this method to run my pdf; it is a link given by the API.

PdfViewer.uri(
Uri.parse(
'https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf'),

but its going through errors

Screenshot 2024-02-02 at 12 08 26 PM like this
@espresso3389
Copy link
Owner

What platform are you running your app?
If you're on Flutter Web, downloading of web contents is restricted by CORS.

Anyway, do you give me more info. about your situation?

@flutteruserrandd
Copy link
Author

Yes, that was the problem.
It was my fault. I didn't read the documentation well.
if I run Flutter Web with this command,

"flutter run -d chrome --web-browser-flag "--disable-web-security""

It is running.
but it doesn't have a future, like open URL inside the pdf.
I mean, I am trying to tap the URL inside the pdf, but nothing is happening.
for your reference.

PdfViewer.uri(
Uri.parse(
'https://www.antennahouse.com/hubfs/xsl-fo-sample/pdf/basic-link-1.pdf'),

Screenshot 2024-02-02 at 12 50 51 PM

@espresso3389
Copy link
Owner

Link handling is not enabled by default.
See README.md's instruction to enable it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants