Rank: Newbie Groups: Member
Joined: 1/20/2016 Posts: 1
|
Hello,
I want to view the PDF in the browser called as WebControl provided by EO.WebBrowser.Wpf. I'm using WebView to view the PDF content. There is property Url where I need to provide the URL of the PDF. However, I don't want to use PDF from hard drive, what I want is to directly load PDF from the memory stream. I want to avoid creating PDF file on a hard drive due to some security reasons.
Is this possible any how?
Please suggest.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, Yes. You should be able to do it whatever way you can do it through a browser. For example, if you have a Url such as "http://www.yoursite.com/CreatePdf.aspx" that will dynamically creates a PDF file and send it to the browser, then you can use such an Url with EO.WebBrowser. If you do not want to use any real Urls, you can use a "Virtual Url" through a custom resource handler. See more information about custom resource handler here: http://www.essentialobjects.com/doc/webbrowser/advanced/resource_handler.aspxThanks!
|