Insertying javascript in resulting PDF
Hello, I need to insert javascript code to the generated PDF. I have a very simple need: I want the date that appears in the PDF to be today's date, and note the date of creation of the document. How do I specify this in FO-XML? Regards Igor -- This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. Este mensaje y los ficheros adjuntos pueden contener informacion confidencial destinada solamente a la(s) persona(s) mencionadas anteriormente pueden estar protegidos por secreto profesional. Si usted recibe este correo electronico por error, gracias por informar inmediatamente al remitente y destruir el mensaje. Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin no se hace responsable por su contenido. Su contenido no constituye ningun compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes. Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor no puede garantizar nada al respecto y no sera responsable de cualesquiera danos que puedan resultar de una transmision de virus. --
RE: Insertying javascript in resulting PDF
Hello, Inserting javascript to create non-static docs is possible: http://1t3xt.info/examples/results/in_action/chapter15/calculator.pdf On the FOP web-site, I found this terse information… http://xmlgraphics.apache.org/fop/dev/design/extending.html PDF Additions - This can be done with an XML Document extension. A simple xml document is defined that provides the appropriate information. When the document is rendered a handler converts the document into PDF markup. For example: my:script-link script=app.execMenuItem('AcroSrch:Query'); Search /my:script-link to result in a text box referencing the following PDF action: /S /JavaScript /JS (app.execMenuItem(AcroSrch:Query);) I don’t see how to include this in an FO-XML document… Does anyone have a working example? Or can I hack directly the PDF? Could I directly insert the javascript code directly in thee PDF Stream? /S /JavaScript /JS (app.execMenuItem(AcroSrch:Query);) Cheers Igor From: philippe voncken [mailto:m...@philippevoncken.com] Sent: lunes, 01 de marzo de 2010 9:18 To: fop-users@xmlgraphics.apache.org Subject: Re: Insertying javascript in resulting PDF Pdf document is not a dynamic document. I think it's impossible. 2010/3/1 Igor Rosenberg igor.rosenb...@atosresearch.eu Hello, I need to insert javascript code to the generated PDF. I have a very simple need: I want the date that appears in the PDF to be today's date, and note the date of creation of the document. How do I specify this in FO-XML? Regards Igor -- This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. Este mensaje y los ficheros adjuntos pueden contener informacion confidencial destinada solamente a la(s) persona(s) mencionadas anteriormente pueden estar protegidos por secreto profesional. Si usted recibe este correo electronico por error, gracias por informar inmediatamente al remitente y destruir el mensaje. Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin no se hace responsable por su contenido. Su contenido no constituye ningun compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes. Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor no puede garantizar nada al respecto y no sera responsable de cualesquiera danos que puedan resultar de una transmision de virus. -- -- This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. Este mensaje y los ficheros adjuntos pueden contener informacion confidencial destinada solamente a la(s) persona(s) mencionadas anteriormente pueden estar protegidos por secreto profesional. Si usted recibe este correo electronico por error, gracias por informar inmediatamente al remitente y destruir el mensaje. Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin no se hace responsable por su contenido. Su contenido no constituye ningun compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes. Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor no puede garantizar nada al respecto y no sera responsable de cualesquiera danos que puedan resultar de una transmision de virus. --
Re: Insertying javascript in resulting PDF
This exemple doesn't work in my Document Viewer (evince on Ubuntu) I think this is not an elegant solution. 2010/3/1 Igor Rosenberg igor.rosenb...@atosresearch.eu Hello, Inserting javascript to create non-static docs is possible: http://1t3xt.info/examples/results/in_action/chapter15/calculator.pdf On the FOP web-site, I found this terse information… http://xmlgraphics.apache.org/fop/dev/design/extending.html PDF Additions - This can be done with an XML Document extension. A simple xml document is defined that provides the appropriate information. When the document is rendered a handler converts the document into PDF markup. For example: my:script-link script=app.execMenuItem('AcroSrch:Query'); Search /my:script-link to result in a text box referencing the following PDF action: /S /JavaScript /JS (app.execMenuItem(AcroSrch:Query);) I don’t see how to include this in an FO-XML document… Does anyone have a working example? Or can I hack directly the PDF? Could I directly insert the javascript code directly in thee PDF Stream? /S /JavaScript /JS (app.execMenuItem(AcroSrch:Query);) Cheers Igor From: philippe voncken [mailto:m...@philippevoncken.com] Sent: lunes, 01 de marzo de 2010 9:18 To: fop-users@xmlgraphics.apache.org Subject: Re: Insertying javascript in resulting PDF Pdf document is not a dynamic document. I think it's impossible. 2010/3/1 Igor Rosenberg igor.rosenb...@atosresearch.eu Hello, I need to insert javascript code to the generated PDF. I have a very simple need: I want the date that appears in the PDF to be today's date, and note the date of creation of the document. How do I specify this in FO-XML? Regards Igor -- This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. Este mensaje y los ficheros adjuntos pueden contener informacion confidencial destinada solamente a la(s) persona(s) mencionadas anteriormente pueden estar protegidos por secreto profesional. Si usted recibe este correo electronico por error, gracias por informar inmediatamente al remitente y destruir el mensaje. Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin no se hace responsable por su contenido. Su contenido no constituye ningun compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes. Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor no puede garantizar nada al respecto y no sera responsable de cualesquiera danos que puedan resultar de una transmision de virus. -- -- This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. Este mensaje y los ficheros adjuntos pueden contener informacion confidencial destinada solamente a la(s) persona(s) mencionadas anteriormente pueden estar protegidos por secreto profesional. Si usted recibe este correo electronico por error, gracias por informar inmediatamente al remitente y destruir el mensaje. Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin no se hace responsable por su contenido. Su contenido no constituye ningun compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes. Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor no puede garantizar nada al respecto y no sera responsable de cualesquiera danos que puedan resultar de una transmision de virus. --