[PHP] page rendering data contents of a PDF file

Page rendering data in the PDF file!


Speaking of people really love and hate ah! PDF his secret advantage addictive, but he can not read can not modify the shortcomings but also makes quite sad ah !!

Today there is a small case, clients want the data presented on the page in the background, he uploaded the PDF file in, think of no way to read it is a headache, then think of eating step, with a wrap read absolute path is not on the list !!?

There should be no doubt to solve this little problem plagued, but it hit the absolute path to read PDF directly in IE, is very slow ~ ~! And may require installation kit or click to confirm the like, it is not enough humane, that the mountain will not turn people turn, how to read the PDF with the way Google provides? like ah !! screen like myself, but also eliminate the need for clicking confirm or install anything, fast speed, really Well !! the following practice sharing, upload the PDF section on the subject because it is not today, it will not discuss, the example database file name read out, temporarily ordered field called "P_PDF" ..:

The main key is to set the path to go to docs.google.com, parameter url = "Your absolute path", of course, based on the security issues recommend that you first encoded :)

&embedded=true">    

The results screen quite beautiful with GOOGLE long as the document also enclose read article Loading of ~ so sweet !!:

That's it - next encounter may not want to read PDF in a tense La ..

share it


Station for website design studio SiteMak Studio
Shinyo Ho 
Founder / Developer
email:[email protected]|web:www.sitemak.com.tw

Original: Large column  [PHP] page rendering data contents of a PDF file


Guess you like

Origin www.cnblogs.com/chinatrump/p/11491073.html