> -----Ursprüngliche Nachricht-----
> Von: Heiko Barthel [mailto:[EMAIL PROTECTED]]
> Gesendet am: Donnerstag, 12. Juli 2001 18:33
> Betreff: is there something like "internal-graphic" ?
>
> I use FOP currently with external graphics, but I want to add directly
> binary data of an element like:
>
> <bmp>
>  BDGADUGADUGFSZFDSSJDGSGDS&&DS&DSDTSDGSICXSGDS&D(&S
> </bmp>
>
> Does anybody know a way to include this directly in the FO or do I have to
> create a file with the data of <bmp> and use <fo:external-graphic> ?

Well, I ran into a similar problem
when imbedding Batik generated SVG with FOP 0.18.

Batik's default handling of raster images is:
<image width="112" height="60" x="20" y="20"
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAA8CAYAAAC+ej
5cAAACeElEQVR42u2cgW7D
IAxES9cPb7+cKZqiViyADTaB9J1UqUsMrbicOQPr7QaWRmAIehCjEy3wch6B27X9
+uf7NL7WVoY7JMykHn1bCDRV45F6JKTolQeBFwEEDkmnXmYHApd3rxC4jME5xoNB
9SJnU5mUsHZiUeBU6VHflop/krmsVZEokDICQCCAQAgEEAjGg0L+tELfpgyBwKGE
lWLYTlqMvKM2HKUYjH0j1npFRt4fKdRVcSUiamqTLYYj2W6l9JqTWvsyiRDoQmqv
itM+8iRCoIn6LOfArU/54ShcaLfKPAyMPC2jwGEpsiWd1pWICz3NqUoehFw6feOH
gW1V3za4z2edgNfr75Viv37Ux2d8en/7+32fOXB4baiNK9+HwKY5znrJS9vf+ztC
oIt5aV0L1QMTI7LwFkTIi3ONmUGB/wY4p7Te3YIWF1oHBB66y1yMdw3I/wdOMLi9
OxAQ6GhOevr0UTAmRq3CnQh7NTEHTqtIv3QOgc2DNwfRmhS6f+FQuV+KSePSWO2g
hMZ2H23rC8Yt9dmosuKuJE86WPE7VNhSH6bxEnOTL3M8TUy8XXq/MSWtdsbz3IO9
QZBCPUgMHXFR3k+aCqVLanubEpm+tejDYTAv5EY1xbtFoa+PfyiU1ErmIqm0x5CU
0qaVWz33UNMipsZ6wdm/vZeJCUakRcHnfDU8FRhQoZX68vMrKzGK+WY28rzrwKNU
GjtVfJKpyZULXg+N/PNGKDBcS4nWx+hzKzmyh2XUdpKVqTmZxNqxC4vUrDuXw35g
V61onVL1D8ZIAltUOGEZkVvzbPm1Qn7kYCLkjlH4liWjCVx4LhyXFgEAq+AXJ4X6
j6rc7F0AAAAASUVORK5CYILz" />

FOP 0.18 wouldn't support this voluntarily,
so I had to hack (as far as I remember) FopImageFactory and AbstractFopImage
in package org.apache.fop.image.
It did work for instream SVG.
It should have worked for <fo:external-graphic> as well, but I didn't verify
this.

FOP 0.19 uses Batik to render SVG.
So you could try to fool FOP with something like:

<fo:instream-foreign-object>
  <svg width="80" height="80">
    <image width="80" height="80" x="0" y="0"
xlink:href="data:image/png;base64,..." />
  </svg>
</fo:instream-foreign-object>

(I haven't testet this either.)

Jens Thieler

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

Reply via email to