You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Sam Fuqua <sa...@gmail.com> on 2009/06/10 16:43:24 UTC
External graphics methods
Hi,
I know that external-graphics can be added in a couple different ways. One
is to have the image on a file system and the other is to use a URL. Is
there any way to obtain the external-graphic through a bytestream? Or any
way to dump a binary file into the FO to be rendered? Any help or input is
appreciated.
--
Sam Fuqua
ΣΝ ΘΗ 454
Re: External graphics methods
Posted by Sam Fuqua <sa...@gmail.com>.
Thank you both for your help. I believe that the 'data:' will fit my needs,
but I will attempt a custom scheme if that turns out to not work for my
circustances.
On Wed, Jun 10, 2009 at 12:21 PM, Andreas Delmelle <
andreas.delmelle@telenet.be> wrote:
> On 10 Jun 2009, at 16:43, Sam Fuqua wrote:
>
> Hi Sam
>
> I know that external-graphics can be added in a couple different ways.
>> One is to have the image on a file system and the other is to use a URL.
>> Is there any way to obtain the external-graphic through a bytestream? Or
>> any way to dump a binary file into the FO to be rendered? Any help or input
>> is appreciated.
>>
>
> Besides using the 'data:' URI scheme, as Manuel suggested, another
> possibility is to 'invent' a URI scheme of your own. If you implement a
> custom javax.xml.transform.URIResolver and register it with FOP, you can
> basically do anything to resolve URIs with a specialized prefix of your own
> choosing.
>
> To register it with FOP, this can only be done when embedding, as described
> here:
> http://xmlgraphics.apache.org/fop/trunk/embedding.html#fop-factory
>
>
> HTH!
>
> Andreas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
--
Sam Fuqua
ΣΝ ΘΗ 454
Re: External graphics methods
Posted by Andreas Delmelle <an...@telenet.be>.
On 10 Jun 2009, at 16:43, Sam Fuqua wrote:
Hi Sam
> I know that external-graphics can be added in a couple different
> ways. One is to have the image on a file system and the other is to
> use a URL. Is there any way to obtain the external-graphic through
> a bytestream? Or any way to dump a binary file into the FO to be
> rendered? Any help or input is appreciated.
Besides using the 'data:' URI scheme, as Manuel suggested, another
possibility is to 'invent' a URI scheme of your own. If you implement
a custom javax.xml.transform.URIResolver and register it with FOP, you
can basically do anything to resolve URIs with a specialized prefix of
your own choosing.
To register it with FOP, this can only be done when embedding, as
described here:
http://xmlgraphics.apache.org/fop/trunk/embedding.html#fop-factory
HTH!
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org