Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display PDF Blob data on my HTML page

Hi I have base64 encoded blob data on my page. It is pdf blob data. How can I convert this data to display as PDF.

I have tried iFrame, Embed object everything.. It is not working. The blob data is huge. Is there any viewer which would get this working? Also, I should be able to select texts in the displayed PDF data.

like image 536
NoNicknameSFDC Avatar asked Nov 09 '22 14:11

NoNicknameSFDC


1 Answers

try it

<object data="data:application/pdf;base64,<?php echo base64_encode($content) ?>" type="application/pdf" style="height:200px;width:60%"></object>
like image 80
Arya Praza Musabbih Avatar answered Nov 15 '22 10:11

Arya Praza Musabbih