Hello, thats a good question, I hope that the document is ok. Can I check if the document in memory is a fop-formatted document? Writing the fo-document to harddisk and then using fop everything is ok.
Juergen This is the document from harddisk: <?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master margin-left="2.0cm" margin-top="1.5cm" master-name="page" page-height="29.7cm" page-width="21.0cm"> <fo:region-body> </fo:region-body> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="page"> <fo:flow flow-name="xsl-region-body"> <fo:block> <fo:table table-layout="fixed"> <fo:table-body> <fo:table-row height="4.0cm"> <fo:table-cell background-color="#DDDDDD"> <fo:block hyphenate="true" language="de"> Anton Mueller </fo:block> <fo:block hyphenate="true" language="de"> Waldweg 1 </fo:block> <fo:block hyphenate="true" language="de"> 50259 </fo:block> <fo:block hyphenate="true" language="de"> Pulheim </fo:block> </fo:table-cell> <fo:table-cell> </fo:table-cell> <fo:table-cell background-color="#DDDDDD"> <fo:block hyphenate="true" language="de"> Bert Mueller </fo:block> <fo:block hyphenate="true" language="de"> Rollerweg 1 </fo:block> <fo:block hyphenate="true" language="de"> 71549 </fo:block> <fo:block hyphenate="true" language="de"> Auenwald </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row height="0.5cm"> </fo:table-row> <fo:table-row height="4.0cm"> <fo:table-cell> </fo:table-cell> <fo:table-cell> </fo:table-cell> <fo:table-cell> </fo:table-cell> </fo:table-row> <fo:table-row height="0.5cm"> </fo:table-row> <fo:table-row height="4.0cm"> <fo:table-cell> </fo:table-cell> <fo:table-cell> </fo:table-cell> <fo:table-cell> </fo:table-cell> </fo:table-row> <fo:table-row height="0.5cm"> </fo:table-row> <fo:table-row height="4.0cm"> <fo:table-cell> </fo:table-cell> <fo:table-cell> </fo:table-cell> <fo:table-cell> </fo:table-cell> </fo:table-row> <fo:table-row height="0.5cm"> </fo:table-row> <fo:table-row height="4.0cm"> <fo:table-cell> </fo:table-cell> <fo:table-cell> </fo:table-cell> <fo:table-cell> </fo:table-cell> </fo:table-row> <fo:table-row height="0.5cm"> </fo:table-row> <fo:table-row height="4.0cm"> <fo:table-cell> </fo:table-cell> <fo:table-cell> </fo:table-cell> <fo:table-cell> </fo:table-cell> </fo:table-row> </fo:table-body> <fo:table-column column-width="8.0cm"> </fo:table-column> <fo:table-column column-width="1.0cm"> </fo:table-column> <fo:table-column column-width="8.0cm"> </fo:table-column> </fo:table> </fo:block> </fo:flow> </fo:page-sequence> </fo:root> >>> [EMAIL PROTECTED] 04.06.2002 10.54 Uhr >>> Juergen Lippold wrote: > Hello, > > I'm looking for a way to convert a org.w3c.dom.Document with the FO-Format directly >to a PDF-File. > The following code is running if I use the xxxxx.fo-File written to the harddisk. > Using the document from memory I get an error: > > [INFO]: building formatting object tree > [ERROR]: Unknown formatting object null^null > > Who has an idea where I can search for the solution. > Does someone knows the reason for the error? Probably there is something wrong with your foDocument, are you sure it's non empty and it's really xsl-fo document? -- Oleg Tkachenko Multiconn International, Israel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]