ng2-pdf-viewer icon indicating copy to clipboard operation
ng2-pdf-viewer copied to clipboard

PDF Viewer does not work with PDF from byte array

Open No1e opened this issue 2 years ago • 3 comments

Hi Vadym,

we have specific requirement to load PDF from byte array, becase we get PDFs from the server side as byte array. We tried that out, but for some reason it does not work.

Can you please give us an example app, where this works?

Thank you and best regards, Novak

No1e avatar May 24 '22 07:05 No1e

Not sure if this helps otherwise search through issues, there were multiple questions about how to show pdf from backend

VadimDez avatar May 24 '22 21:05 VadimDez

@VadimDez By changing my Solution with an ArrayBuffer to use a Blob and then URL.createObjectURL(...) the Application can now displays the PDF again.

In my case I updated ng2-pdf-viewer 7.0.1 to 9.0.0

seal-tm avatar Jun 20 '22 13:06 seal-tm

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 09 '22 00:09 stale[bot]