Re: Jvascript and PinPDF

pinPDF

Jvascript and PinPDF


Nicolson 07-27-2009, 3:28

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

 

 

Re: Jvascript and PinPDF


Pintexx Support 07-28-2009, 8:24
Hello,

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

pinPDF.UseScript = true

Regards,
Hans-Peter

Re: Jvascript and PinPDF


Nicolson 07-28-2009, 10:55

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.