On Sunday 07 November 2004 16:37, Thomas DeWeese wrote:
>
> ...omissis...
>
>     Well right now (meaning as of Friday) we run 'onload' event
> handlers prior to getting the width/height of the the document
> being transcoded.  So you could for example use 'getBBox' (bounding
> box) on the outermost SVG element and use the resultant rectangle
> to set the width and height of the document to generate (if they
> aren't set already).  This way you will always have a width/height
> so you get a reasonable image result and you can know the size of the
> output.
>
>     To do this you will need to attach your onload DOM event listener
> prior to giving the document to the Transcoder.  So if you are
> currently being lazy and just giving a url you will have to use
> the SAXSVGDocumentFactory to parse the document yourself and then
> add your event listener, and finally pass it into the transcoder.

Thomas, thank you very much for your answer. I'm going to code your hints.


>
> ...omissis...
>
>     Good luck.

Thanks again,

        Giampaolo


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to