The PDF rendering is based on the Flying Saucer library:
https://xhtmlrenderer.dev.java.net/Obviously it doesn't support Canvas.
What you could do is have xf:output in your XBL components.
Your default CSS should hide those, so that the user doesn't see them
when you are using canvas.
Then use @media print {}, which is triggered when producing the PDF,
to override the other CSS rules to make the xf:output visible.
-Erik
On Fri, Oct 22, 2010 at 6:33 AM, bsantucci <
[hidden email]> wrote:
>
> Is there a way to influence the PDF rendering of a custom XBL component?
>
> I have developed a custom initials/signature XBL component that uses an HTML
> 5 canvas to capture a user's initials or signature. It works great in Form
> Runner. However, when I look at the PDF rendering of the form data it
> doesn't display the initials/signature. It displays the text that comes up
> when a browser doesn't support an HTML5 canvas.
>
> This doesn't really surprise me. However, I was wondering if there was
> something that I could do that could help the PDF rendering process display
> what I want.
>
> Thanks.
> --
> View this message in context:
http://orbeon-forms-ops-users.24843.n4.nabble.com/PDF-rendering-for-custom-XBL-component-tp3007217p3007217.html> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the
[hidden email] mailing list.
> To unsubscribe: mailto:
[hidden email]
> For general help: mailto:
[hidden email]?subject=help
> OW2 mailing lists service home page:
http://www.ow2.org/wws>
>
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws