PHP display solutions of PDF

My demand is displayed on the remote server PDF file in a page, the code as follows:


$fileName = "abcd.pdf";

header("Content-Type: application/pdf");
header('Content-Disposition: inline; filename*="utf8\'\''.$fileName.'"');


$content = ob_get_contents();

echo $content;

The problem is:
1, Read the remote PDF in PHP, slow,
2, In some browsers do not support PDF reading, will be prompted to download files, then filename will be garbled,

Started by Kyle at October 28, 2016 - 10:29 PM

Read slowly, can read the cached in the local background
No PDF reader.

Posted by Gilbert at October 30, 2016 - 10:59 PM

The inline to outline;;

Posted by Ella at November 04, 2016 - 11:45 PM