Should be possible to print pages with embedded scripts?
Tried to create the functions o_SCRIPT and c_SCRIPT that just returned true/false - but no go.
Regards
Sigurd
Spipu Le 13/10/2009 à 12:16 have you read the examples ??? (like js1, js2, js3) ...
Spipu Le 13/10/2009 à 13:53 the javascript and pdf's script are different : a javascript can not works on a pdf, because all the specifics objects like document, windows and others, does not exists
Nil Le 13/10/2009 à 14:33 BTW there's a support for javascript on PDF documents. There may be a way to convert simple javascript operations from HTML jS to PDF jS, but I think that there are major issues with that :
- not supported by FDPF (so Spipu would have to write several methods to extend the actual FPDF class - I think it's a very huge amount of work)
- will be very complicated to know how to convert the jS objects from HTML jS to PDF jS as users may have different desires (and what to do when scripts cannot be applicable, such as Ajax stuffs)
and that's only for the may difficulties...