Hi Mark,
http://ulc-community.canoo.com/snipsnap/space/Contributions/Utilities/Printi
ng
The above ULC community contribution supports SERVER side generation of PDF
documents.
Such a document can be viewed and printed from a browser on the client.
ULC does NOT support client side rendering of PDF documents. To achieve this
you will need an extension.
You need not reimplement whole of your engine but only create a client side
proxy and server side widget in ULC.
You say that you have a JPanel that renders PDF. Lets call this class
MyPDFRenderer which extends JPanel.
Now you need to create:
- UIMyPDFRenderer extends UIComponent: This the client side proxy that
instantiates and encapsulates MyPDFRendrer:
protected Object createBasicObject(Object[] arguments) {
return new MyPDFRenderer(...);
}
- ULCMyPDFRenderer extends ULCComponent - The server side ULC widget with
API similar to MyPDFRenderer.
The details of how to create a ULC Extension for a given Swing based widget
is explained in ULC Extension Guide.
You may also refer to the source code of ULC Pie Chart sample application
which is part of ULC release.
I hope this helps.
Thanks and regards,
Janak
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of markee
>Sent: Tuesday, June 20, 2006 10:45 AM
>To: [EMAIL PROTECTED] Com
>Subject: Re: [ULC-developer] Query on printing
>I am using Canoo 6.1
>
>I have a clientside PDF rendering engine setup as a custom JPanel to
>render onto a Graphics2D object. We are currently using Swing for this.
>
>I am trying to reimplement large parts of the library in Canoo for a
>client, decoding the PDF serverside, passing across as an object and
>rendering/printing clientside.
>
>I am trying to workout whether I can print the PDF is a similiar
>manner of whether I will need to maintain the Swing code to print.
>
>MArk
>_______________________________________________
>ULC-developer mailing list
>[email protected]
>http://lists.canoo.com/mailman/listinfo/ulc-developer
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer