Hi,

On Aug 22, 2008, at 3:06 PM, Guillaume Lerouge wrote:

>>
>> I don't think it is hopable to have the PDF renderer to actually  
>> execute
>> scripts, or?
>>
>
> Right now, it's definitely not hopable. The PDF renderer renders the  
> basic
> content of the page, not its velocity & groovy & javascript rendered
> version.

No this is not quite correct. The document is first rendered to HTML  
and then we transform the HTML to xslfo and then to PDF.
So the rendering to HTML evaluate Velocity and Groovy scripts.

However it's true that javascript is not evaluated since it's the  
browser which is the runtime and does the evaluation. We only export  
the generated HTML; it's not executed in a javascript engine.

Thanks
-Vincent


> Sorry for your use case Prathap.
>
> Guillaume
>
>
>>
>> paul
>>
>>
>> Le 22-août-08 à 14:04, Prathap Pandian a écrit :
>>
>>
>> Hi,
>>>
>>> I am having following code in xwiki page. In listing it showing  
>>> "BBB", but
>>> when exporting it to PDF it showing "AAA" in the
>>> PDF.
>>>
>>> <div id="text">
>>> AAA
>>> </div>
>>> <script>
>>> document.getElementById("text").innerHTML = "BBB";
>>> </script>
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to