Hello, I'm using FOP 0.95-1. In my RTF document I would like to pad an
entire fo:table one inch to the right. If I apply margin-left to the
fo:table tag, it ends up padding not only the table (good) but every cell
within the table's body (bad)--they also get moved off to the right within
their c
Apparently, the InputStream is empty for some reason. That's why there's
no data in the data URL. And the String parameter to createDataURL needs
to be null or a valid MIME type (ex. "image/png").
See also:
http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util
Pedro,
Use tools like xstream to generate XML data file from you java data object
which should not be hard to do and I would guess 90% of people here use this
tool to generate xml data file. If you did this, then the encoded image data
should be in your xml data already. You can directly refere
Hi Hu
excuse me but i'm going crazy.
I create a encode64 bytearrayinputstream that is the image,then i pass my
xml data to xsl but i'm not able to pass the image ($embededLogo ) .I try to
create a xsl-variable but i don't understand how i can pass it to the fop
engine from the java code.
Tha
Pedro,
There is no direct solution. But you can use encoded binary image loading
feature in couple of not complicated steps:
Step 1. Make your image to binary ready stream, then encode it by using base64,
I used commons-codec-1.3.jar, then make it ready for your FOP-XSL to reference;
Step 2. Use
Hi Jeremias
thanks for your answer.
i try
String ur = dataURLUtil.createDataURL(bufferFile.getIn(),"RFC
2397");
and ur is "data:RFC 2397;base64,"
then in my xsl i do that