views:

1100

answers:

2

Load PDF Document in WebBrowser using DocumentStream

A: 

I have looked into this, and it seems that setting the DocumentStream does this:

  1. Load about:blank
  2. On the resulting (empty) HTML DOM, call Load, passing the stream

It would appear that the result is that anything supplied in the stream will be interpreted as a HTML document.

I would look into some other solution.

Tor Haugen
A: 

http://www.adobe.com/devnet/pdf/pdf_reference_archive.html Documentation archive http://www.adobe.com/devnet/acrobat/pdfs/pdf_reference_1-7.pdf Their latest PDF Reference. It contains the complete PDF specification for developers

The browser can display pdf files if the client has a plugin for it. But if you want to display it within a page you will need to parse the pdf document and display it correctly.

Jonas B