Welcome Guest Search | Active Topics | Sign In | Register

Viewing PDF by using memory stream not the file on the hard disk Options
Ashwin
Posted: Wednesday, January 20, 2016 6:29:20 AM
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.
eo_support
Posted: Wednesday, January 20, 2016 10:53:00 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,088
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.aspx

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.