Hi,
we would like to use iText to generate a pdf from a given xml-input and
a given pdf-template with the corresponding XPath-expression. This is
no problem so far and we did this already.
The requirement is to use some binary data embedded within the xml to
render an image into the pdf-template.
Does anybody know if (and how) this can be done using iText. It's
important to notice that we are not generating the pdf from scratch.
The image should be rendered at a given placeholder within the
pdf-template using an XPath-expression.
Any help is highly appreciated.
Best regards & happy holidays,
Lorenz
|
|
0
|
|
|
|
Reply
|
lorkah (1)
|
12/22/2006 3:45:50 PM |
|
Here's a very old example (iTextPE.zip) that does something similar.
Not sure if it still works with the newer versions of iText, but there
it is, FWIW.
http://forum.planetpdf.com/webboard/wbpx.dll/read?94629,3
It expects the images to be outside the XML, in binary form. Assuming
your images are base-64 encoded, you'll need to decode them to binary
first, then the rest should be about the same as the example. The
placeholders for the images are AcroForm fields.
lorkah@googlemail.com wrote:
> Hi,
>
> we would like to use iText to generate a pdf from a given xml-input and
> a given pdf-template with the corresponding XPath-expression. This is
> no problem so far and we did this already.
>
> The requirement is to use some binary data embedded within the xml to
> render an image into the pdf-template.
>
> Does anybody know if (and how) this can be done using iText. It's
> important to notice that we are not generating the pdf from scratch.
> The image should be rendered at a given placeholder within the
> pdf-template using an XPath-expression.
>
> Any help is highly appreciated.
>
> Best regards & happy holidays,
> Lorenz
|
|
0
|
|
|
|
Reply
|
chicks
|
12/22/2006 6:15:46 PM
|
|