Loading ...

PDF Viewer in a web page ???

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  client side web development   » PDF Viewer in a web page ???

PDF Viewer in a web page ???

Posts under the topic: PDF Viewer in a web page ???

Posted: 8/17/2011

Lurker 160  points  Lurker
  • Joined on: 8/10/2011
  • Posts: 32

Is there any embed code that i can use in HTML or tutorial that i can refer so i can embed a player in order to view PDFfiles within my page.....i dont know which website it was but i saw some one have a PDF file opening in a totally seprate manner it was not like the usual way you know like using internet explorer....


Posted: 8/17/2011

Starter 727  points  Starter
  • Joined on: 6/6/2011
  • Posts: 74

Hi,

First, you will never know how the browser will act, if the browser does not have an PDF plugin it will never open the pdf file within the broser. Another thing is that if the browser is setup to safe PDF file, rather then use the plugin then it won't display either. Beaside all of this, there are so many browsers on the market that can be configured independently and each of them can have different dialog boxes.

Second, if your wep application is asp.net you should set the header you send.

 

Response.ContentType = "application/pdf"; 

There is a workaround all of this, but i don't recomend them if there are some sensitive informations in the PDF.

You can find them here: http://www.labnol.org/internet/tools/read-adobe-pdf-files-online-without-acrobat/1923/

Best Regards,

 

Gjorgji


tags PDF
Page 1 of 1 (2 items)