Closed fahadsubzwari924 closed 3 years ago
Hi @fahadsubzwari924, the google viewer needs the file to be publicly available. So it probably will work when you deploy your application but the google viewer cannot access your localhost
So it will not work if i will change viewer="url"
?
Hi @fahadsubzwari924, the google viewer needs the file to be publicly available. So it probably will work when you deploy your application but the google viewer cannot access your localhost
Now i am using mammoth
for locally uploaded file preview but now it is previewing only .docx
file. Other than .docx
it is giving an error on console. see this
https://stackoverflow.com/questions/68166751/why-ngx-doc-viewer-is-not-displaying-pdf-filefile-is-on-local-disk-in-angular1/68167462#68167462
<ngx-doc-viewer [url]="inputFile.filePath" viewer="url">
How can i check content load or not. I m getting refuse to connect iframe.
In my
angular10
in which i have to display aPDF
file as a preview. So for that i am usingngx-doc-viewer.
My component is look like thiscomponent.html
my url is forming like this
http://localhost:PORT/documents/bids/bidId704/proposalDoc_Monday_June_28th_2021_8_49_01_PM.pdf
When i load just this url so that it loads
PDF
file inchrome
perfectly but when i try withngx-doc-viewer
so it is giving an error onechrome's console
How can i fix it?