Thomas, Thank you for response.
I am not sure the version of Batik. The modified date for the directories under xml-batik is 7/24/2003. But fop version is 0.20.5. The major issue is FOP should not hang if the embedded svg references an unfound image. Actually the generated pdf file is fine. ( We have a gui and a batch reporting application to generate pdf file. User may mistakely reference to some wrong file. But once fop.sh hangs, user can not continue to use GUI or run batch job). As for the text position, SVG 1.1 spec does not mention the X,Y coordinates are the base line position. If you choose x/y as base line position, it is very difficult to position the text field, because the font size change may cause the starting position change and thus may cause overlap. Thanks. Jay ---- On Mon, 13 Oct 2003, Thomas DeWeese ([EMAIL PROTECTED]) wrote: > Hi Jay, > > I added Batik-users to the CC list as it seemed many of your > questions are really SVG/Batik questions. > > Jay Chiu wrote: > > > I have tried to embed a svg into a fo file to generate pdf file. > > The svg contains a reference to an image that can not be found. > > I got fop hanging problem. I hope Batik team to coordinate with > > FOP team to solve this issue for me. > > > > Attached please find the test svg file, fo file and generated > > pdf file. > > > > Here are the descriptions of the issues: > > (1) SVG side: > > (a) If I open the testimage.svg in Squiggle GUI, the GUI shows > > the SVG error null with the stack: > > java.lang.NullPointerException > > What version? With current CVS and squiggle I get: > > file:[...]/textimage.svg:7 > An I/O error occurred while processing the URI > 'file:[...]/unfound.jpg' specified on the element <image> > > > (b) A text element with x=0, y=0 is not displayed from (0,0) > > position. It can not be found on the image. Is this right > > behaviors? > > Actually if you look _very_ closely you can see a little bit > of the 'p' at the top of the image. 0,0 establishes the baseline > for the text, for most languages the text sits 'on top' of this line. > So in this case most of your text is off the top of the page. > If you move that line down a little to say: 0,10. You can see all > of it. So yes this is the right behavior. > > You can also tell batik what section of the infinite canvas to > render by setting the 'viewBox' attribute on the SVG element. > > > (2) FOP side > > FOP successfully generated the pdf file(as generated), but it > > hangs in cleanup. The output of Fop.bat is: > > C:\apps>fop-0.20.5\fop.bat textimage.fo textimage.pdf > > [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser > > [INFO] FOP 0.20.5 > > [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser > > [INFO] building formatting object tree > > [INFO] setting up fonts > > [INFO] [1] > > [INFO] Parsing of document complete, stopping renderer > > > > Thanks a lot. > > > > Jay > > > > ________________________________________________ > > Get your own "800" number > > Voicemail, fax, email, and a lot more > > http://www.ureach.com/reg/tag > > > > > ________________________________________________ Get your own "800" number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]