Re: generate pdf from xml with embedded image?

2008-12-26 Thread Jason Johnston

Marten van der Honing wrote:

Now i tried:



I think you should omit the "url()" wrapper:



An example from the FOP users list, where it appears to be working:
http://www.nabble.com/RE%3A-Help%21-URI-for-fo%3Aexternal-graphic-in-web-service-p14680841.html

Also, it's possible that the old version of FOP in the default fop block 
doesn't support 'data:' URIs, so you might need to use the fop-ng block, 
which uses FOP 0.9x, instead.


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



RE: generate pdf from xml with embedded image?

2008-12-24 Thread Peter Flynn
On Tue, December 23, 2008 7:01 pm, Marten van der Honing wrote:
> Peter: Did you write a preprocessor in cocoon? Where can i find more info
> on
> that?

No, the preprocessor that sets it up is run separately through a CGI
script, using XSLT routines processed with Saxon. I can send you details
separately after the holidays.

I'd do it using Cocoon if I could grok Cocoon forms, but this has so far
eluded me.

///Peter

> Meanwhile i tried another approach:
> 
>  src="url('data:image/gif;base64,{$image-base64}')"
> height="3cm" width="3cm" />
>
> But now i get an error in html instead of an pdf file:
>
> java.lang.NullPointerException:
>
> Cocoon stacktrace[hide]
>
> java.lang.NullPointerException cocoon://fop_post/xsl - 4:14
>
> Exception in StreamGenerator.generate() cocoon://fop_post/xsl - 4:14
> [TransformerException]
> context://fop_post/sitemap.xmap - 11:32 
> context://fop_post/sitemap.xmap - 7:33 
> context://fop_post/sitemap.xmap - 44:37 
> context://fop_post/sitemap.xmap - 43:42 
> context://fop_post/sitemap.xmap - 32:38 
> context://sitemap.xmap - 1034:92 
>
> Maybe i should try to show the base64 as text in the pdf first to see if
> it
> still there.
>
> -Oorspronkelijk bericht-----
> Van: Peter Flynn [mailto:pfl...@ucc.ie]
> Verzonden: donderdag 18 december 2008 10:24
> Aan: users@cocoon.apache.org
> Onderwerp: Re: generate pdf from xml with embedded image?
>
>
> Ken Starks wrote:
> [...]
>> I did have a few images that were stored also in a database, but I
>> would pre-process them in a seperate stage, generating a local copy,
>> and populating a table of the database with the path. This was a batch
>> process, not an interactive one, and it used python rather than
>> cocoon. (Actually, it could do a minor amount of image-processing as
>> well, such as cropping, changing contrast, creating thumbnails,
>> changing to a different format, Etc and used Image magick as well as
>> python).
>
> I do something very similar, taking in Word XML documents. The
> preprocessor extracts any encoded image data, converts them back to
> image format, creates thumbnails and web-res versions, and adds details
> of them to an XML file in their directory, rather than using a database.
> The XSL[T] processes then reference them externally as images, which is
> probably faster than doing database extraction and image conversion in
> real time.
>
>> I suppose it depends on the amount of storage you have, and how
>> important it is to you to store your images on a database.
>
> In this case there are typically only a handful of images, so a database
> would be overkill: YMMV.
>
> ///Peter
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>



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



Re: generate pdf from xml with embedded image?

2008-12-24 Thread Philippe GAUTHIER
Hello,
I had the null exception too, I remember solving it by changing to a
newer version of the batik library.
I also tried using the svg syntax and the fo:instream-foreign-object element.
Best regards,

Philippe Gauthier


2008/12/23 Marten van der Honing :
> Now i tried:
>
>  src="url('data:image/gif;base64,R0lGODlhMAAzALMAAMe8UuTZWggCDq2lQzAAYCQASJSP
> NBUAK/zQ4VRUEiQiDvje
> nLyYtXx4JU8/TgAAACH5BAkAAA8ALAAwADMAAAT/8ElJqr0z63072VRxCCR5
> FBioEeLhjm6BVhlxKGVenpb62LqgQEb7uRyM5KBhaDgVON5nUyA5BkqD1pmIzh4i
> BGLBLG+fihNqdXCIGcym3NnoSgUMsXa/PduJGWEIDHyFTQkJLhUCb4aGdWmAEgd5
> CAOOe3UJQyiMY46XfJBqUzJiAJhbXQI8badaoZijgAR4enuxhzhDFiSVoZfBsKqR
> M1VuCADAxCYdI2ILy8LCDVBSLLaWwFwmXz82vwPB07F1rGs2yMoGl5DnRRSUY+L0
> 9faH72DIDPRNUPka5GmzR1CcAUTvbIgJQI8brykZ5EUrSNGfAiIKoPVDKGWDgnAU
> /wcoq4fmRMYFEy9xhBcozwJlI0eKpAdT5EFrBTSKfAIwIMiaMWeKG+lPQMZkRFcd
> YDlBIoCaM4GKBKpL4zqOazY4jfp0KkypNhu4eTmV51KIEV12lQr069OuXrveZMV0
> ktq3ePPq3bu26FkQTvkKHvz0ZiS0Te8SXow3gNm6DwLnDfCWMmPLqKrRRSzh4xjK
> oPmGxoy58dy/WhU/DaCFwYLSjWMDsOw3q88xs3OjUmDg82jdoYGfhixxtEpbL1fn
> /j3aL2TPr5cv2TXmNXPg0pUSdxmg++wlmwSM7T4atPfQtTlHznP+u+Yb45crZz7A
> Durb1slPZzWCO/n/AHa3H+4PIHgWIADviYBcgAwypJ16xf2HIE42nJRfgwK+tx0C
> AV7ixSJjXdhgfWncl5Zv+iXYy3gYeqciYK6JyNqH34iH4ogPcmALgyTms0hvMkr4
> YkAsdqgZLcfcCGCP3kxQC3stHkkDiEqSN2FPEhTgRosCfvgBlUECkOOJQf43gJcU
> 1FKklUfaZheHXGoIzyIGSjimkye1aMA/BNYARJFikiCJkze4duBBOzTpJDYfRben
> oHUBIYQOiqj3TS1CdLSCDSNMGoOiHEhqgqahyvCCCKgSAdmmpqZqaZoWyCBrCj74
> WYGqtS7qQQ+5hsrrBhEAADs=')" />
>
> Also no image is displayed.
>
> Is this possible with cocoon?
>
> I am afraid i do have to write images temporary to the filesystem :-(
>
> -Oorspronkelijk bericht-
> Van: Marten van der Honing [mailto:mvdhon...@noeska.com]
> Verzonden: dinsdag 23 december 2008 21:02
> Aan: users@cocoon.apache.org
> Onderwerp: RE: generate pdf from xml with embedded image?
>
>
> With
>
> 
>
> i get the base64 content as tekst inside the pdf.
>
> But with
>
>  height="3cm" width="3cm" />
>
> i still get no visible image :-(
>
> The error i got before was due to an mistake i made in another part of my
> xsl stylesheet.
>
> -Oorspronkelijk bericht-
> Van: Joerg Heinicke [mailto:joerg.heini...@gmx.de]
> Verzonden: dinsdag 23 december 2008 20:39
> Aan: users@cocoon.apache.org
> Onderwerp: Re: generate pdf from xml with embedded image?
>
>
> Marten van der Honing wrote:
>
>> Peter: Did you write a preprocessor in cocoon? Where can i find more
>> info on that?
>>
>> Meanwhile i tried another approach:
>> 
>
> You might try
>  just to be
> sure.
>
>> > src="url('data:image/gif;base64,{$image-base64}')"
>> height="3cm" width="3cm" />
>>
>> But now i get an error in html instead of an pdf file:
>>
>> java.lang.NullPointerException:
>>
>> Cocoon stacktrace[hide]
>>
>> java.lang.NullPointerException cocoon://fop_post/xsl - 4:14
>>
>> Exception in StreamGenerator.generate() cocoon://fop_post/xsl - 4:14
>> [TransformerException] context://fop_post/sitemap.xmap - 11:32
>>  context://fop_post/sitemap.xmap - 7:33
>>  context://fop_post/sitemap.xmap - 44:37
>>  context://fop_post/sitemap.xmap - 43:42
>>  context://fop_post/sitemap.xmap - 32:38 
>> context://sitemap.xmap - 1034:92 
>
> Can you post parts of the actual Java stack trace?
>
> Joerg
>
>> Maybe i should try to show the base64 as text in the pdf first to see
>> if it still there.
>>
>> -Oorspronkelijk bericht-
>> Van: Peter Flynn [mailto:pfl...@ucc.ie]
>> Verzonden: donderdag 18 december 2008 10:24
>> Aan: users@cocoon.apache.org
>> Onderwerp: Re: generate pdf from xml with embedded image?
>>
>>
>> Ken Starks wrote:
>> [...]
>>> I did have a few images that were stored also in a database, but I
>>> would pre-process them in a seperate stage, generating a local copy,
>>> and populating a table of the database with the path. This was a
>>> batch process, not an interactive one, and it used python rather than
>>> cocoon. (Actually, it could do a minor amount of image-processing as
>>> well, such as cropping, changing contrast, creating thumbnails,
>>> changing to a different format, Etc and used Image magick as well as
>>> python).
>>
>> I do something very similar, taking in Word XML documents. The
>> preprocessor extracts any encoded image data, converts them back to
>> image format, creates thumbnails and web-res versions, and adds
>> details of them to an XML file in their directory, rather tha

RE: generate pdf from xml with embedded image?

2008-12-23 Thread Marten van der Honing
Now i tried:



Also no image is displayed.

Is this possible with cocoon?

I am afraid i do have to write images temporary to the filesystem :-(

-Oorspronkelijk bericht-
Van: Marten van der Honing [mailto:mvdhon...@noeska.com] 
Verzonden: dinsdag 23 december 2008 21:02
Aan: users@cocoon.apache.org
Onderwerp: RE: generate pdf from xml with embedded image?


With 



i get the base64 content as tekst inside the pdf.

But with



i still get no visible image :-(

The error i got before was due to an mistake i made in another part of my
xsl stylesheet.

-Oorspronkelijk bericht-
Van: Joerg Heinicke [mailto:joerg.heini...@gmx.de] 
Verzonden: dinsdag 23 december 2008 20:39
Aan: users@cocoon.apache.org
Onderwerp: Re: generate pdf from xml with embedded image?


Marten van der Honing wrote:

> Peter: Did you write a preprocessor in cocoon? Where can i find more
> info on that?
> 
> Meanwhile i tried another approach:
> 

You might try
 just to be
sure.

>  src="url('data:image/gif;base64,{$image-base64}')"
> height="3cm" width="3cm" />
> 
> But now i get an error in html instead of an pdf file:
> 
> java.lang.NullPointerException:
> 
> Cocoon stacktrace[hide]
> 
> java.lang.NullPointerException cocoon://fop_post/xsl - 4:14
> 
> Exception in StreamGenerator.generate() cocoon://fop_post/xsl - 4:14
> [TransformerException] context://fop_post/sitemap.xmap - 11:32 
>  context://fop_post/sitemap.xmap - 7:33 
>  context://fop_post/sitemap.xmap - 44:37 
>  context://fop_post/sitemap.xmap - 43:42 
>  context://fop_post/sitemap.xmap - 32:38 
> context://sitemap.xmap - 1034:92  

Can you post parts of the actual Java stack trace?

Joerg

> Maybe i should try to show the base64 as text in the pdf first to see
> if it still there.
> 
> -Oorspronkelijk bericht-
> Van: Peter Flynn [mailto:pfl...@ucc.ie]
> Verzonden: donderdag 18 december 2008 10:24
> Aan: users@cocoon.apache.org
> Onderwerp: Re: generate pdf from xml with embedded image?
> 
> 
> Ken Starks wrote:
> [...]
>> I did have a few images that were stored also in a database, but I 
>> would pre-process them in a seperate stage, generating a local copy, 
>> and populating a table of the database with the path. This was a 
>> batch process, not an interactive one, and it used python rather than 
>> cocoon. (Actually, it could do a minor amount of image-processing as 
>> well, such as cropping, changing contrast, creating thumbnails, 
>> changing to a different format, Etc and used Image magick as well as 
>> python).
> 
> I do something very similar, taking in Word XML documents. The 
> preprocessor extracts any encoded image data, converts them back to 
> image format, creates thumbnails and web-res versions, and adds 
> details of them to an XML file in their directory, rather than using a 
> database. The XSL[T] processes then reference them externally as 
> images, which is probably faster than doing database extraction and 
> image conversion in real time.
> 
>> I suppose it depends on the amount of storage you have, and how
>> important it is to you to store your images on a database.
> 
> In this case there are typically only a handful of images, so a
> database
> would be overkill: YMMV.
> 
> ///Peter

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


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


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



RE: generate pdf from xml with embedded image?

2008-12-23 Thread Marten van der Honing
With 



i get the base64 content as tekst inside the pdf.

But with



i still get no visible image :-(

The error i got before was due to an mistake i made in another part of my
xsl stylesheet.

-Oorspronkelijk bericht-
Van: Joerg Heinicke [mailto:joerg.heini...@gmx.de] 
Verzonden: dinsdag 23 december 2008 20:39
Aan: users@cocoon.apache.org
Onderwerp: Re: generate pdf from xml with embedded image?


Marten van der Honing wrote:

> Peter: Did you write a preprocessor in cocoon? Where can i find more 
> info on that?
> 
> Meanwhile i tried another approach:
> 

You might try
 just to be
sure.

>  src="url('data:image/gif;base64,{$image-base64}')"
> height="3cm" width="3cm" />
> 
> But now i get an error in html instead of an pdf file:
> 
> java.lang.NullPointerException:
> 
> Cocoon stacktrace[hide]
> 
> java.lang.NullPointerException cocoon://fop_post/xsl - 4:14
> 
> Exception in StreamGenerator.generate() cocoon://fop_post/xsl - 4:14 
> [TransformerException] context://fop_post/sitemap.xmap - 11:32 
>  context://fop_post/sitemap.xmap - 7:33 
>  context://fop_post/sitemap.xmap - 44:37 
>  context://fop_post/sitemap.xmap - 43:42 
>  context://fop_post/sitemap.xmap - 32:38 
> context://sitemap.xmap - 1034:92  

Can you post parts of the actual Java stack trace?

Joerg

> Maybe i should try to show the base64 as text in the pdf first to see 
> if it still there.
> 
> -Oorspronkelijk bericht-
> Van: Peter Flynn [mailto:pfl...@ucc.ie]
> Verzonden: donderdag 18 december 2008 10:24
> Aan: users@cocoon.apache.org
> Onderwerp: Re: generate pdf from xml with embedded image?
> 
> 
> Ken Starks wrote:
> [...]
>> I did have a few images that were stored also in a database, but I
>> would pre-process them in a seperate stage, generating a local copy, 
>> and populating a table of the database with the path. This was a batch 
>> process, not an interactive one, and it used python rather than 
>> cocoon. (Actually, it could do a minor amount of image-processing as 
>> well, such as cropping, changing contrast, creating thumbnails, 
>> changing to a different format, Etc and used Image magick as well as 
>> python).
> 
> I do something very similar, taking in Word XML documents. The
> preprocessor extracts any encoded image data, converts them back to 
> image format, creates thumbnails and web-res versions, and adds details 
> of them to an XML file in their directory, rather than using a database. 
> The XSL[T] processes then reference them externally as images, which is 
> probably faster than doing database extraction and image conversion in 
> real time.
> 
>> I suppose it depends on the amount of storage you have, and how 
>> important it is to you to store your images on a database.
> 
> In this case there are typically only a handful of images, so a 
> database
> would be overkill: YMMV.
> 
> ///Peter

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


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



Re: generate pdf from xml with embedded image?

2008-12-23 Thread Joerg Heinicke

Marten van der Honing wrote:


Peter: Did you write a preprocessor in cocoon? Where can i find more info on
that?

Meanwhile i tried another approach:



You might try

just to be sure.




But now i get an error in html instead of an pdf file:

java.lang.NullPointerException: 

Cocoon stacktrace[hide] 

java.lang.NullPointerException cocoon://fop_post/xsl - 4:14  


Exception in StreamGenerator.generate() cocoon://fop_post/xsl - 4:14
[TransformerException] 
context://fop_post/sitemap.xmap - 11:32  
context://fop_post/sitemap.xmap - 7:33  
context://fop_post/sitemap.xmap - 44:37  
context://fop_post/sitemap.xmap - 43:42  
context://fop_post/sitemap.xmap - 32:38  
context://sitemap.xmap - 1034:92  


Can you post parts of the actual Java stack trace?

Joerg


Maybe i should try to show the base64 as text in the pdf first to see if it
still there.

-Oorspronkelijk bericht-
Van: Peter Flynn [mailto:pfl...@ucc.ie] 
Verzonden: donderdag 18 december 2008 10:24

Aan: users@cocoon.apache.org
Onderwerp: Re: generate pdf from xml with embedded image?


Ken Starks wrote:
[...]
I did have a few images that were stored also in a database, but I 
would pre-process them in a seperate stage, generating a local copy, 
and populating a table of the database with the path. This was a batch 
process, not an interactive one, and it used python rather than 
cocoon. (Actually, it could do a minor amount of image-processing as 
well, such as cropping, changing contrast, creating thumbnails, 
changing to a different format, Etc and used Image magick as well as 
python).


I do something very similar, taking in Word XML documents. The 
preprocessor extracts any encoded image data, converts them back to 
image format, creates thumbnails and web-res versions, and adds details 
of them to an XML file in their directory, rather than using a database. 
The XSL[T] processes then reference them externally as images, which is 
probably faster than doing database extraction and image conversion in 
real time.



I suppose it depends on the amount of storage you have, and how
important it is to you to store your images on a database.


In this case there are typically only a handful of images, so a database 
would be overkill: YMMV.


///Peter


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



RE: generate pdf from xml with embedded image?

2008-12-23 Thread Marten van der Honing
Peter: Did you write a preprocessor in cocoon? Where can i find more info on
that?

Meanwhile i tried another approach:



But now i get an error in html instead of an pdf file:

java.lang.NullPointerException: 

Cocoon stacktrace[hide] 

java.lang.NullPointerException cocoon://fop_post/xsl - 4:14  

Exception in StreamGenerator.generate() cocoon://fop_post/xsl - 4:14
[TransformerException] 
context://fop_post/sitemap.xmap - 11:32  
context://fop_post/sitemap.xmap - 7:33  
context://fop_post/sitemap.xmap - 44:37  
context://fop_post/sitemap.xmap - 43:42  
context://fop_post/sitemap.xmap - 32:38  
context://sitemap.xmap - 1034:92  

Maybe i should try to show the base64 as text in the pdf first to see if it
still there.

-Oorspronkelijk bericht-
Van: Peter Flynn [mailto:pfl...@ucc.ie] 
Verzonden: donderdag 18 december 2008 10:24
Aan: users@cocoon.apache.org
Onderwerp: Re: generate pdf from xml with embedded image?


Ken Starks wrote:
[...]
> I did have a few images that were stored also in a database, but I 
> would pre-process them in a seperate stage, generating a local copy, 
> and populating a table of the database with the path. This was a batch 
> process, not an interactive one, and it used python rather than 
> cocoon. (Actually, it could do a minor amount of image-processing as 
> well, such as cropping, changing contrast, creating thumbnails, 
> changing to a different format, Etc and used Image magick as well as 
> python).

I do something very similar, taking in Word XML documents. The 
preprocessor extracts any encoded image data, converts them back to 
image format, creates thumbnails and web-res versions, and adds details 
of them to an XML file in their directory, rather than using a database. 
The XSL[T] processes then reference them externally as images, which is 
probably faster than doing database extraction and image conversion in 
real time.

> I suppose it depends on the amount of storage you have, and how
> important it is to you to store your images on a database.

In this case there are typically only a handful of images, so a database 
would be overkill: YMMV.

///Peter


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


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



Re: generate pdf from xml with embedded image?

2008-12-18 Thread Peter Flynn

Ken Starks wrote:
[...]

I did have a few images that were stored also in a database, but I
would pre-process them in a seperate stage, generating a local copy,
and populating a table of the database with the path. This was a
batch process, not an interactive one, and it used python rather than
cocoon. (Actually, it could do a minor amount of image-processing as 
well, such as cropping, changing contrast, creating thumbnails,

changing to a different format, Etc and used Image magick as well as
python).


I do something very similar, taking in Word XML documents. The 
preprocessor extracts any encoded image data, converts them back to 
image format, creates thumbnails and web-res versions, and adds details 
of them to an XML file in their directory, rather than using a database. 
The XSL[T] processes then reference them externally as images, which is 
probably faster than doing database extraction and image conversion in 
real time.


I suppose it depends on the amount of storage you have, and how 
important it is to you to store your images on a database.


In this case there are typically only a handful of images, so a database 
would be overkill: YMMV.


///Peter


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



Re: generate pdf from xml with embedded image?

2008-12-17 Thread Ken Starks
I also use file-system stored images, or url-stored images rather than 
database-stored images

when using xsl-fo and cocoon.
I did have a few images that were stored also in a database, but I would 
pre-process
them in a seperate stage, generating a local copy, and populating a 
table of the
database with the path. This was a batch process, not an interactive 
one, and it used
python rather than cocoon. (Actually, it could do a minor amount of 
image-processing as
well, such as cropping, changing contrast, creating thumbnails, changing 
to a different format,

Etc and used Image magick as well as python).
I suppose it depends on the amount of storage you have, and how 
important it is to you

to store your images on a database.
I no longer do so; I store the 'master-copy' on DVD or CD and a working 
copy on the filing
system with a table in the database linking to its path, as well as a 
key for the DVD and

the image location on the DVD or CD.
But then I don't much like 'Blobs' on a relational database anyway.

Marten van der Honing wrote:

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.zsom...@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 
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.zsom...@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: 
 

try it.

Zsombor

On Wed, Dec 17, 2008 at 19:39, Marten van der Honing 


wrote:


Hello,

I am puzzled on generating an pdf from the following xml: version="1.0" encoding="UTF-8"?> 

  
 2
 Image1
 image/gif
 

R0lGODlhMAAzALMAAMe8UuTZWggCDq2lQzAAYCQASJSPNBUAK/zQ4VRUEiQiDv
j
e
nLyYtXx4JU8/TgAAACH5BAkAAA8ALAAwADMAAAT/8ElJqr0z63072VRxCCR5
FBioEeLhjm6BVhlxKGVenpb62LqgQEb7uRyM5KBhaDgVON5nUyA5BkqD1pmIzh4i
BGLBLG+fihNqdXCIGcym3NnoSgUMsXa/PduJGWEIDHyFTQkJLhUCb4aGdWmAEgd5
CAOOe3UJQyiMY46XfJBqUzJiAJhbXQI8badaoZijgAR4enuxhzhDFiSVoZfBsKqR
M1VuCADAxCYdI2ILy8LCDVBSLLaWwFwmXz82vwPB07F1rGs2yMoGl5DnRRSUY+L0
9faH72DIDPRNUPka5GmzR1CcAUTvbIgJQI8brykZ5EUrSNGfAiIKoPVDKGWDgnAU
/wcoq4fmRMYFEy9xhBcozwJlI0eKpAdT5EFrBTSKfAIwIMiaMWeKG+lPQMZkRFcd
YDlBIoCaM4GKBKpL4zqOazY4jfp0KkypNhu4eTmV51KIEV12lQr069OuXrveZMV0
ktq3ePPq3bu26FkQTvkKHvz0ZiS0Te8SXow3gNm6DwLnDfCWMmPLqKrRRSzh4xjK
oPmGxoy58dy/WhU/DaCFwYLSjWMDsOw3q88xs3OjUmDg82jdoYGfhixxtEpbL1fn
/j3aL2TPr5cv2TXmNXPg0pUSdxmg++wlmwSM7T4atPfQtTlHznP+u+Yb45crZz7A
Durb1slPZzWCO/n/AHa3H+4PIHgWIADviYBcgAwypJ16xf2HIE42nJRfgwK+tx0C
AV7ixSJjXdhgfWncl5Zv+iXYy3gYeqciYK6JyNqH34iH4ogPcmALgyTms0hvMkr4
YkAsdqgZLcfcCGCP3kxQC3stHkkDiEqSN2FPEhTgRosCfvgBlUECkOOJQf43gJcU
1FKklUfaZheHXGoIzyIGSjimkye1aMA/BNYARJFikiCJkze4duBBOzTpJDYfRben
oHUBIYQOiqj3TS1CdLSCDSNMGoOiHEhqgqahyvCCCKgSAdmmpqZqaZoWyCBrCj74
WYGqtS7qQQ+5hsrrBhEAADs=
  


I assumed it should be done like in the xsl file:

   
   
   


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-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org


  

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


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





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


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additiona

RE: generate pdf from xml with embedded image?

2008-12-17 Thread Marten van der Honing
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.zsom...@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 
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.zsom...@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: 
>  src="{/my_path_to/my_image.jpg"/> 
>
> try it.
>
> Zsombor
>
> On Wed, Dec 17, 2008 at 19:39, Marten van der Honing 
> 
> wrote:
>> Hello,
>>
>> I am puzzled on generating an pdf from the following xml: > version="1.0" encoding="UTF-8"?> 
>>   
>>  2
>>  Image1
>>  image/gif
>>  
>>
>> R0lGODlhMAAzALMAAMe8UuTZWggCDq2lQzAAYCQASJSPNBUAK/zQ4VRUEiQiDv
>> j
>> e
>> nLyYtXx4JU8/TgAAACH5BAkAAA8ALAAwADMAAAT/8ElJqr0z63072VRxCCR5
>> FBioEeLhjm6BVhlxKGVenpb62LqgQEb7uRyM5KBhaDgVON5nUyA5BkqD1pmIzh4i
>> BGLBLG+fihNqdXCIGcym3NnoSgUMsXa/PduJGWEIDHyFTQkJLhUCb4aGdWmAEgd5
>> CAOOe3UJQyiMY46XfJBqUzJiAJhbXQI8badaoZijgAR4enuxhzhDFiSVoZfBsKqR
>> M1VuCADAxCYdI2ILy8LCDVBSLLaWwFwmXz82vwPB07F1rGs2yMoGl5DnRRSUY+L0
>> 9faH72DIDPRNUPka5GmzR1CcAUTvbIgJQI8brykZ5EUrSNGfAiIKoPVDKGWDgnAU
>> /wcoq4fmRMYFEy9xhBcozwJlI0eKpAdT5EFrBTSKfAIwIMiaMWeKG+lPQMZkRFcd
>> YDlBIoCaM4GKBKpL4zqOazY4jfp0KkypNhu4eTmV51KIEV12lQr069OuXrveZMV0
>> ktq3ePPq3bu26FkQTvkKHvz0ZiS0Te8SXow3gNm6DwLnDfCWMmPLqKrRRSzh4xjK
>> oPmGxoy58dy/WhU/DaCFwYLSjWMDsOw3q88xs3OjUmDg82jdoYGfhixxtEpbL1fn
>> /j3aL2TPr5cv2TXmNXPg0pUSdxmg++wlmwSM7T4atPfQtTlHznP+u+Yb45crZz7A
>> Durb1slPZzWCO/n/AHa3H+4PIHgWIADviYBcgAwypJ16xf2HIE42nJRfgwK+tx0C
>> AV7ixSJjXdhgfWncl5Zv+iXYy3gYeqciYK6JyNqH34iH4ogPcmALgyTms0hvMkr4
>> YkAsdqgZLcfcCGCP3kxQC3stHkkDiEqSN2FPEhTgRosCfvgBlUECkOOJQf43gJcU
>> 1FKklUfaZheHXGoIzyIGSjimkye1aMA/BNYARJFikiCJkze4duBBOzTpJDYfRben
>> oHUBIYQOiqj3TS1CdLSCDSNMGoOiHEhqgqahyvCCCKgSAdmmpqZqaZoWyCBrCj74
>> WYGqtS7qQQ+5hsrrBhEAADs=
>>   
>> 
>>
>> I assumed it should be done like in the xsl file:
>> 
>>
>>
>>
>> 
>>
>> 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-unsubscr...@cocoon.apache.org
>> For additional commands, e-mail: users-h...@cocoon.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>

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


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



Re: generate pdf from xml with embedded image?

2008-12-17 Thread Varga Zsombor
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
 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.zsom...@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:
> 
>  src="{/my_path_to/my_image.jpg"/> 
>
> try it.
>
> Zsombor
>
> On Wed, Dec 17, 2008 at 19:39, Marten van der Honing 
> wrote:
>> Hello,
>>
>> I am puzzled on generating an pdf from the following xml: > version="1.0" encoding="UTF-8"?> 
>>   
>>  2
>>  Image1
>>  image/gif
>>  
>>
>> R0lGODlhMAAzALMAAMe8UuTZWggCDq2lQzAAYCQASJSPNBUAK/zQ4VRUEiQiDvj
>> e
>> nLyYtXx4JU8/TgAAACH5BAkAAA8ALAAwADMAAAT/8ElJqr0z63072VRxCCR5
>> FBioEeLhjm6BVhlxKGVenpb62LqgQEb7uRyM5KBhaDgVON5nUyA5BkqD1pmIzh4i
>> BGLBLG+fihNqdXCIGcym3NnoSgUMsXa/PduJGWEIDHyFTQkJLhUCb4aGdWmAEgd5
>> CAOOe3UJQyiMY46XfJBqUzJiAJhbXQI8badaoZijgAR4enuxhzhDFiSVoZfBsKqR
>> M1VuCADAxCYdI2ILy8LCDVBSLLaWwFwmXz82vwPB07F1rGs2yMoGl5DnRRSUY+L0
>> 9faH72DIDPRNUPka5GmzR1CcAUTvbIgJQI8brykZ5EUrSNGfAiIKoPVDKGWDgnAU
>> /wcoq4fmRMYFEy9xhBcozwJlI0eKpAdT5EFrBTSKfAIwIMiaMWeKG+lPQMZkRFcd
>> YDlBIoCaM4GKBKpL4zqOazY4jfp0KkypNhu4eTmV51KIEV12lQr069OuXrveZMV0
>> ktq3ePPq3bu26FkQTvkKHvz0ZiS0Te8SXow3gNm6DwLnDfCWMmPLqKrRRSzh4xjK
>> oPmGxoy58dy/WhU/DaCFwYLSjWMDsOw3q88xs3OjUmDg82jdoYGfhixxtEpbL1fn
>> /j3aL2TPr5cv2TXmNXPg0pUSdxmg++wlmwSM7T4atPfQtTlHznP+u+Yb45crZz7A
>> Durb1slPZzWCO/n/AHa3H+4PIHgWIADviYBcgAwypJ16xf2HIE42nJRfgwK+tx0C
>> AV7ixSJjXdhgfWncl5Zv+iXYy3gYeqciYK6JyNqH34iH4ogPcmALgyTms0hvMkr4
>> YkAsdqgZLcfcCGCP3kxQC3stHkkDiEqSN2FPEhTgRosCfvgBlUECkOOJQf43gJcU
>> 1FKklUfaZheHXGoIzyIGSjimkye1aMA/BNYARJFikiCJkze4duBBOzTpJDYfRben
>> oHUBIYQOiqj3TS1CdLSCDSNMGoOiHEhqgqahyvCCCKgSAdmmpqZqaZoWyCBrCj74
>> WYGqtS7qQQ+5hsrrBhEAADs=
>>   
>> 
>>
>> I assumed it should be done like in the xsl file:
>> 
>>
>>
>>
>> 
>>
>> 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-unsubscr...@cocoon.apache.org
>> For additional commands, e-mail: users-h...@cocoon.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>

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



RE: generate pdf from xml with embedded image?

2008-12-17 Thread Marten van der Honing
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.zsom...@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:

 

try it.

Zsombor

On Wed, Dec 17, 2008 at 19:39, Marten van der Honing 
wrote:
> Hello,
>
> I am puzzled on generating an pdf from the following xml:  version="1.0" encoding="UTF-8"?> 
>   
>  2
>  Image1
>  image/gif
>  
>
> R0lGODlhMAAzALMAAMe8UuTZWggCDq2lQzAAYCQASJSPNBUAK/zQ4VRUEiQiDvj
> e
> nLyYtXx4JU8/TgAAACH5BAkAAA8ALAAwADMAAAT/8ElJqr0z63072VRxCCR5
> FBioEeLhjm6BVhlxKGVenpb62LqgQEb7uRyM5KBhaDgVON5nUyA5BkqD1pmIzh4i
> BGLBLG+fihNqdXCIGcym3NnoSgUMsXa/PduJGWEIDHyFTQkJLhUCb4aGdWmAEgd5
> CAOOe3UJQyiMY46XfJBqUzJiAJhbXQI8badaoZijgAR4enuxhzhDFiSVoZfBsKqR
> M1VuCADAxCYdI2ILy8LCDVBSLLaWwFwmXz82vwPB07F1rGs2yMoGl5DnRRSUY+L0
> 9faH72DIDPRNUPka5GmzR1CcAUTvbIgJQI8brykZ5EUrSNGfAiIKoPVDKGWDgnAU
> /wcoq4fmRMYFEy9xhBcozwJlI0eKpAdT5EFrBTSKfAIwIMiaMWeKG+lPQMZkRFcd
> YDlBIoCaM4GKBKpL4zqOazY4jfp0KkypNhu4eTmV51KIEV12lQr069OuXrveZMV0
> ktq3ePPq3bu26FkQTvkKHvz0ZiS0Te8SXow3gNm6DwLnDfCWMmPLqKrRRSzh4xjK
> oPmGxoy58dy/WhU/DaCFwYLSjWMDsOw3q88xs3OjUmDg82jdoYGfhixxtEpbL1fn
> /j3aL2TPr5cv2TXmNXPg0pUSdxmg++wlmwSM7T4atPfQtTlHznP+u+Yb45crZz7A
> Durb1slPZzWCO/n/AHa3H+4PIHgWIADviYBcgAwypJ16xf2HIE42nJRfgwK+tx0C
> AV7ixSJjXdhgfWncl5Zv+iXYy3gYeqciYK6JyNqH34iH4ogPcmALgyTms0hvMkr4
> YkAsdqgZLcfcCGCP3kxQC3stHkkDiEqSN2FPEhTgRosCfvgBlUECkOOJQf43gJcU
> 1FKklUfaZheHXGoIzyIGSjimkye1aMA/BNYARJFikiCJkze4duBBOzTpJDYfRben
> oHUBIYQOiqj3TS1CdLSCDSNMGoOiHEhqgqahyvCCCKgSAdmmpqZqaZoWyCBrCj74
> WYGqtS7qQQ+5hsrrBhEAADs=
>   
> 
>
> I assumed it should be done like in the xsl file:
> 
>
>
>
> 
>
> 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-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>

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


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



Re: generate pdf from xml with embedded image?

2008-12-17 Thread Varga Zsombor
Hello

i used to display images in my pdf files in this way:




try it.

Zsombor

On Wed, Dec 17, 2008 at 19:39, Marten van der Honing
 wrote:
> Hello,
>
> I am puzzled on generating an pdf from the following xml:
> 
> 
>   
>  2
>  Image1
>  image/gif
>  
>
> R0lGODlhMAAzALMAAMe8UuTZWggCDq2lQzAAYCQASJSPNBUAK/zQ4VRUEiQiDvje
> nLyYtXx4JU8/TgAAACH5BAkAAA8ALAAwADMAAAT/8ElJqr0z63072VRxCCR5
> FBioEeLhjm6BVhlxKGVenpb62LqgQEb7uRyM5KBhaDgVON5nUyA5BkqD1pmIzh4i
> BGLBLG+fihNqdXCIGcym3NnoSgUMsXa/PduJGWEIDHyFTQkJLhUCb4aGdWmAEgd5
> CAOOe3UJQyiMY46XfJBqUzJiAJhbXQI8badaoZijgAR4enuxhzhDFiSVoZfBsKqR
> M1VuCADAxCYdI2ILy8LCDVBSLLaWwFwmXz82vwPB07F1rGs2yMoGl5DnRRSUY+L0
> 9faH72DIDPRNUPka5GmzR1CcAUTvbIgJQI8brykZ5EUrSNGfAiIKoPVDKGWDgnAU
> /wcoq4fmRMYFEy9xhBcozwJlI0eKpAdT5EFrBTSKfAIwIMiaMWeKG+lPQMZkRFcd
> YDlBIoCaM4GKBKpL4zqOazY4jfp0KkypNhu4eTmV51KIEV12lQr069OuXrveZMV0
> ktq3ePPq3bu26FkQTvkKHvz0ZiS0Te8SXow3gNm6DwLnDfCWMmPLqKrRRSzh4xjK
> oPmGxoy58dy/WhU/DaCFwYLSjWMDsOw3q88xs3OjUmDg82jdoYGfhixxtEpbL1fn
> /j3aL2TPr5cv2TXmNXPg0pUSdxmg++wlmwSM7T4atPfQtTlHznP+u+Yb45crZz7A
> Durb1slPZzWCO/n/AHa3H+4PIHgWIADviYBcgAwypJ16xf2HIE42nJRfgwK+tx0C
> AV7ixSJjXdhgfWncl5Zv+iXYy3gYeqciYK6JyNqH34iH4ogPcmALgyTms0hvMkr4
> YkAsdqgZLcfcCGCP3kxQC3stHkkDiEqSN2FPEhTgRosCfvgBlUECkOOJQf43gJcU
> 1FKklUfaZheHXGoIzyIGSjimkye1aMA/BNYARJFikiCJkze4duBBOzTpJDYfRben
> oHUBIYQOiqj3TS1CdLSCDSNMGoOiHEhqgqahyvCCCKgSAdmmpqZqaZoWyCBrCj74
> WYGqtS7qQQ+5hsrrBhEAADs=
>   
> 
>
> I assumed it should be done like in the xsl file:
> 
>
>
>
> 
>
> 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-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>

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