Displaying PDF data in my HTML page

I have Base64 encoded BLOB

data in my page. This is PDF data BLOB

. How can I convert this data to display it as PDF?

I tried to tag iframe

, embed

, object

, all ... They do not work. The data is BLOB

huge. Is there any viewer who will earn it? Also, I should be able to select texts in the displayed PDF data.

+3


source to share


1 answer


try it



<object data="data:application/pdf;base64,<?php echo base64_encode($content) ?>" type="application/pdf" style="height:200px;width:60%"></object>

      

0


source







All Articles