Hi Team
Does this component support viewing a blob (PDF generated with JavaScript)?
I have tried some other options, i.e. using <embed>, <object>, and <iframe> to display the pdf but none of them worked.
RegardsHanno
Hello Hanno,
The way the code is and the component was build around it requires that the PDF be passed in an URL.
I'm pretty sure that should be possible to change the code (and the component) to accept blobs, given they are valid PDF, but I have to check.
Unfortunately, we will not be able to make changes to the component until January.
It is in our list of ToDos.
Cheers
Eduardo Jauch
Thank you, Eduardo, I appreciate you taking the time to provide feedback. Looking forward to the changes being implemented next year.
Hanno
I would like the pdfjs viewer to support blob. I have an app to download pdf from Azure blob storage and i would like to show the pdf inside the app
Hi George,
For now, the only way to provide a PDF to the component is through an URL.You can implement a page to download your PDF from Azure. In the preparation, you retrieve the blob and use a Download node to return it.
From the page with the view, you use the URL of your page as the source of the PDF.
Hope this can help you.
Cheers.