PHP display solutions of PDF

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

<?php

$fileName = "abcd.pdf";

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

ob_start();

readfile("http://www.xxx.com/pdf/xyz.pdf");
$content = ob_get_contents();

ob_end_clean();
        
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