skip to Main Content

Php – Trying to make BLOB to PDF in browser

I have BLOB information from my database and trying to display a PDF file in browser using this: echo "<object data='data:application/pdf;base64,".base64_encode($row['PDF_File'])."' type='application/pdf' style='height:600px;width:60%'></object>"; But with the result I get a problem like this: The error message (originally in Russian) in…

VIEW QUESTION

Why do PDFs generated from HTML with images consume significantly more storage than the images themselves?

Why do PDFs generated from HTML with images consume significantly more storage than the images themselves, and how can I avoid this? E.g. This image have ~1.6MB https://cdn.wallpapersafari.com/21/63/kGOzq7.jpg <!DOCTYPE html> <html lang="de"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"…

VIEW QUESTION
Back To Top
Search