Welcome Guest Search | Active Topics | Sign In | Register

Blue question mark image in PDF, ASP.NET Options
Jack
Posted: Tuesday, February 7, 2012 8:01:23 PM
Rank: Newbie
Groups: Member

Joined: 2/7/2012
Posts: 2
Hi we are testing EO PDFToHtml and we're ready to go on with the licensing until we hit one problem. I got an ashx handler that will generate/serve images dynamically inside an ASP.NET app. Of course you need to login but at the generation time, the user is authenticated. the images inside html string contain absolute path to the handler and tinymce editor works fine with that img tag. When i generate pdf using htmlto pdf it never hits the handler at all. I tried setting username and password for the pdfoptions but also same problem. Please advise
eo_support
Posted: Tuesday, February 7, 2012 8:10:10 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

If the conversion code is called by your server side code, then you can try to use ASPXToPDF control. That control can automatically handle the login (passing the login session to your handler) in most cases. If that does not work or the converter is not running on your server (on the client side instead), then you must change your code to pass some kind of "key" to your handler through query string. For example, you can pass a unique encrypted string to the handler that only your handler knows how to decode it back to a key value (such as user id). The basic idea is your handler will always work with or without login ----- as long as a correct key argument is provided. However that key is only generated after user is authenticated.

Hope this helps. Let us know if you still need more help.

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.