I am opening a pdf from file system in pdf viewer it does open when i try to open it on a separate page but it keeps loading when opened in a dialog
This is how my dialog looks like
And OnOpen i am loading the pdf Viewer
but it does not show up
We have shared the sample for your reference. Refer to it and revert to us with the modified sample if you have any concerns about it.
Steps to run the above mentioned sample:
• Run the attached web services
• Copy the URL produced by the web service project
• In the stack blitz sample, paste the URL in the service URL field.
• Now run the stack blitz and test the reported issue
I followed the instructions, I am loading pdf from the file system by fetching the file path from the database
but this jsonObject is always null
This is the path of the pdf fetched from the database
I modified the GetDocumentPath to get the path from Session variable
but the pdf Viewer keeps loading for always
Thank you for your response.
Were you able to run the sample provided by us?
Kindly run the web service and copy the web service URL and paste it into the “ServiceUrl=https://localhost:44399/pdfviewer” of index.razor file of the blazor project and the pdf gets loaded in the sample.
We have provided the video of running the sample and we were able to get the values in the JSON object you can find it in the video and we have provided the image of the sample loading the PDF.
It is not possible to get the null value in the JSON object of the load method.
Note: Kindly provide us with the sample in which you are replicating the issue or else provide the modified sample.
This will help us to analyze the issue further and provide the required details.