[pdfJS Viewer] Support for blob - display PDF generated in javascript

[pdfJS Viewer] Support for blob - display PDF generated in javascript

  
Forge Component
(6)
Published on 14 Nov by Jorge Martins
6 votes
Published on 14 Nov by Jorge Martins

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.

Regards
Hanno

Solution

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

Solution

Thank you, Eduardo, I appreciate you taking the time to provide feedback. Looking forward to the changes being implemented next year.

Hanno