php - re- How to display pdf files from database in Google Docs? -
i want display pdf file in google docs using link. 'floc' file name in database contains .pdf files.
here code--->
<td><?php echo $file_row['fname']; ?> </td> <td><a href="http://docs.google.com/viewer?url=<?php echo urldecode($file_row['floc']); ?>"> <i class="text-warning">view </i></a></td> <td><em><i class="text-success"><?php echo $file_row['fdatein']; ?></i></em></td>
thanks immediate help!
try putting in iframe e.g.
<iframe id="iframe1" src="http://docs.google.com/gview?url=http://yourpdf&embedded=true#:0.page.1">
Comments
Post a Comment