douguizhuang8276 2014-05-27 18:57
浏览 30

PHP和HTML PDF查看器

i am first time display the pdf in the html page for this i am using HTML5 inbuilt code to display the PDF. here below i mentioned the my code

<object data="http://localhost/app/akara/upload/1401213232.pdf" type="application/pdf" width="35%" height="500">
</object>

OR

<embed src="http://localhost/app/akara/upload/1401213232.pdf" width="500" height="375">

both of the above working fine. I have also installed the IDM. so when ever i come on the page it ask me to download the PDF file. i want to remove this IDM to asking me this. i dont want to change any IDM setting. i want to make it disable from my code.

can anyone tell me its solution.

Thansk in advance

  • 写回答

1条回答 默认 最新

  • dongliang9576 2014-05-27 19:08
    关注

    You can render PDF to canvas object using this. Moreover, you can use any document viewer there are plent of them for example this one

    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!