What is the recommended way to embed PDF in HTML?
What does Adobe say itself about it?
In my
Convert it to PNG via ImageMagick, and display the PNG (quick and dirty).
';
?>
This is a good option if you need a quick solution, want to avoid cross-browser PDF viewing problems, and if the PDF is only a page or two. Of course, you need ImageMagick installed (which in turn needs Ghostscript) on your webserver, an option that might not be available in shared hosting environments. There is also a PHP plugin (called imagick) that works like this but it has it's own special requirements.