|
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.
|
|
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!
|
|
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.
|
|
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
|
|
Rank: Newbie Groups: Member
Joined: 12/20/2012 Posts: 7
|
Is there a way to call a javascript function using HtmlToPdf?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
|
|