ApryseSDK / webviewer-react-sample

Sample to demonstrate integrating WebViewer into React
Other
172 stars 99 forks source link

Running a local file #15

Closed kkarthikvk closed 2 years ago

kkarthikvk commented 3 years ago

I am new to react. I hosted the pdf file using a flask with an external visible sever. Given that URL as input in initialDoc var. Still, it is not able to load the pdf. But if I give the "https://pdftron.s3.amazonaws.com/downloads/pl/webviewer-demo-annotated.pdf" URL it works fine.

Can you help me with this. Where I am doing wrong.

Thanks in advance regards, Karthik K

mparizeau-pdftron commented 3 years ago

Do you see any errors in the developer tools console?

For the file URL you're providing WebViewer, if you open it in a new browser tab are you able to access the file?

kkarthikvk commented 3 years ago

There was no error in the developer tab.

I'm also able to open and access the file in the new tab.

mparizeau-pdftron commented 3 years ago

If you can provide us with a runnable sample that reproduces the issue then we can look into it further.

mparizeau-pdftron commented 2 years ago

Closing due to inactivity