Welcome Guest Search | Active Topics | Sign In | Register

eodpf object Options
paulmc
Posted: Wednesday, January 9, 2013 11:45:29 AM
Rank: Newbie
Groups: Member

Joined: 12/20/2012
Posts: 7
Do you have any documentation on the javascript eopdf object model. I looking for an event that gets fired when the conversion is finished so I can do some clean up of some temp files.
eo_support
Posted: Wednesday, January 9, 2013 12:30:20 PM
Rank: Administration
Groups: Administration

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

You can't touch any file system from JavaScript. You can do whatever you want to do from the code that calls the converter.

Thanks!
paulmc
Posted: Wednesday, January 9, 2013 12:33:44 PM
Rank: Newbie
Groups: Member

Joined: 12/20/2012
Posts: 7
I know I can't delete from Javascript. I would like to call a function in my script from where I run the converter.
eo_support
Posted: Wednesday, January 9, 2013 12:42:02 PM
Rank: Administration
Groups: Administration

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

You can just do that in the code that calls the converter. For example:

Code: JavaScript
//Perform the conversion
HtmlToPdf.ConvertHtml(......);

//Now do the clean up
.....


You do not need a callback mechanism to notify your code that the conversion has completed.

If you use ASPXToPDF, then you can handle the control's AfterRender event.

Thanks
paulmc
Posted: Wednesday, January 9, 2013 1:39:18 PM
Rank: Newbie
Groups: Member

Joined: 12/20/2012
Posts: 7
Is there a way to call a javascript function using HtmlToPdf?
eo_support
Posted: Wednesday, January 9, 2013 1:44:47 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Yes. You can do that. See here for more details:

http://www.essentialobjects.com/doc/4/eo.pdf.htmltopdfsession.execscript_overloads.aspx

You can find more information on how to use the HtmlToPdfSession object here:

http://www.essentialobjects.com/doc/4/htmltopdf/session.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.