Welcome to Pintexx Forum Sign in | Join | Faq

pinPDF

Started by Nicolson at 07-27-2009 3:28 . Topic has 2 replies.

Print Search
Sort Posts:    
   07-27-2009, 3:28
Nicolson is not online. Last active: 01.07.2011 12:20:19 Nicolson

Top 25 Posts
Joined on 09-24-2007
Posts 23
Jvascript and PinPDF
Reply Quote

Hi,

I created an HTML page named template.html with the following content:

<span id="elementTest">ToTo</span>

<script type="text/javascript">document.getElementById("elementTest").innerHTML = "test";</script>

When I browse this page with IE, the span outputs the value "test" (as expected with the javascript code).

But when I send the URL of template.html as a parameter to pinPDF, the PDF rendered contains "ToTo" as if the javascript was not interpreted...

What can I do to get a PDF similar to the page shown in Internet Explorer ?

 

Thank you,

 

Nicolson

 

 


   Report 
   07-28-2009, 8:24
Pintexx Support is not online. Last active: 12.01.2012 07:36:39 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.910
Re: Jvascript and PinPDF
Reply Quote
Hello,

I'm not sure if this will work in PDF but you can try

pinPDF.UseScript = true

Regards,
Hans-Peter
   Report 
   07-28-2009, 10:55
Nicolson is not online. Last active: 01.07.2011 12:20:19 Nicolson

Top 25 Posts
Joined on 09-24-2007
Posts 23
Re: Jvascript and PinPDF
Reply Quote

I did that and it works fine !

 

Thank you.

 

NB: but sometimes, some javascript libraries make the w3wp.exe process bug when it comes to generating a PDF with pinPDF.


   Report 
Pintexx Forum » Developer Produ... » pinPDF » Jvascript and PinPDF