cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marten van der Honing <mvdhon...@noeska.com>
Subject RE: generate pdf from xml with embedded image?
Date Wed, 17 Dec 2008 22:06:23 GMT
Hello,

No the database initiates to contact with cocoon. I do not want cocoon to
contact the database.
Besides it would not know how to define a database-reader from cocoon.

The image is base64 encoded do i need to put that in another format? Or tell
xsl-fo something about that? 

Greetings,
M van der Honing

-----Oorspronkelijk bericht-----
Van: Varga Zsombor [mailto:varga.zsombor@gmail.com] 
Verzonden: woensdag 17 december 2008 22:42
Aan: users@cocoon.apache.org
Onderwerp: Re: generate pdf from xml with embedded image?


Is not possible to define a database-reader for reading only the image, with
a matcher, what matches to your request?

Zsombor

On Wed, Dec 17, 2008 at 22:34, Marten van der Honing <mvdhoning@noeska.com>
wrote:
> Hello
>
> I know that also works but the xml is generated from a database. The 
> image is also stored inside the database and is not available on a 
> local path on the server. So in this case the external-graphic is of 
> no use for me.
>
> Greetings,
> M van der Honing
>
> -----Oorspronkelijk bericht-----
> Van: Varga Zsombor [mailto:varga.zsombor@gmail.com]
> Verzonden: woensdag 17 december 2008 22:28
> Aan: users@cocoon.apache.org
> Onderwerp: Re: generate pdf from xml with embedded image?
>
>
> Hello
>
> i used to display images in my pdf files in this way: <fo:block >
> <fo:external-graphic width="50mm" height="25mm"
> src="{/my_path_to/my_image.jpg"/> </fo:block >
>
> try it.
>
> Zsombor
>
> On Wed, Dec 17, 2008 at 19:39, Marten van der Honing 
> <mvdhoning@noeska.com>
> wrote:
>> Hello,
>>
>> I am puzzled on generating an pdf from the following xml: <?xml 
>> version="1.0" encoding="UTF-8"?> <ROWSET>
>>   <ROW>
>>      <ID>2</ID>
>>      <FILE_NAME>Image1</FILE_NAME>
>>      <MIME_TYPE>image/gif</MIME_TYPE>
>>      <DESCRIPTION></DESCRIPTION>
>>
>> <IMAGE>R0lGODlhMAAzALMAAMe8UuTZWggCDq2lQzAAYCQASJSPNBUAK/zQ4VRUEiQiD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S7qQQ+5hsrrBhEAADs=</IMAGE>
>>   </ROW>
>> </ROWSET>
>>
>> I assumed it should be done like in the xsl file:
>> <fo:block>
>>        <fo:instream-foreign-object content-type="image/gif">
>>                <xsl:value-of select=".//IMAGE"/>
>>        </fo:instream-foreign-object>
>> </fo:block>
>>
>> But that does not show the image in the pdf.
>> The pdf is generated though but with no image visible.
>>
>> How should i do this if it can be done?
>>
>> Thanks for your help in advance.
>>
>> Greetings,
>> M van der Honing
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message