Re: java.awt.image

2010-04-14 Thread pedro
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 fo:external-graphic scaling=uniform

RE: java.awt.image

2010-04-14 Thread Hu, Zemin
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.

RE: java.awt.image

2010-04-14 Thread pedro
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.

RE: java.awt.image

2010-04-14 Thread Hu, Zemin
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

Re: java.awt.image

2010-04-14 Thread Jeremias Maerki
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:

fo:table margin-left/padding-before not working with RTF

2010-04-14 Thread Glen Mazza
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