简体   繁体   中英

Print pdf in webpage

I have an ASP.net web page embeded a pdf file using the object tag as below:

    <object data="<%=this.FilePath %>" type="application/pdf" style="width:600px; height:820px; border:solid 1px #888;">
    <embed src="<%=this.FilePath %>" type="application/pdf" />
    </object>

The viewer run good and I assume all client PCs have Adobe Reader installed.
I want to make a button to simply:

  1. remove the button panel of adobe reader
  2. create a button to print the pdf document(using the reader's API or any other method)

That type of customization isn't possible in the Acrobat Reader Plugin AFAIK.

You can hide the default button panel by adding #toolbar=0 to the url, but the user can just 'unhide' it if he wants.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM