FO-RTF conversion with latest fop build and stxx

2005-08-11 Thread Stanislav
Hi! I manage to download and build latest fop. After that i create RTF from fo file from command line. That was all very good and i was very happy :-) Because i use fop inside stxx and struts i tried to integrate latest fop into struts and generate rtf and i failed :-( Does anyone use stxx and

Re: FO-RTF conversion with latest fop build and stxx

2005-08-11 Thread Jeremias Maerki
If you tell us what exactly the problems are I'm more than glad to help. There's no reason that FOP shouldn't work with struts. I don't know stxx, but if that piece is properly designed, FOP should be easily integrated. You need to make sure you've got all the necessary dependencies in your

FO to RTF with Revision 231325

2005-08-11 Thread Tony Morris
I am attempting to generate a RTF document from a simple FO document. I am generating the FO from a XHTML source using the Antenna House XSL. The FO document is at http://pastebin.com/334402 The error produced from the Ant task is: [fop] 11/08/2005 18:46:24

re: FO to RTF with Revision 231325

2005-08-11 Thread Stanislav
Hi! When you download fop (latest official build) in examples/fo/basic you have numerous .fo document that you can transform into RTF (or other document type), just to check if your fop is working. Stanislav I am attempting to generate a RTF document from a simple FO document. I am

Inline figure

2005-08-11 Thread Jukka Ignatius
Hello! Is there a way to define vertical align for a inline figure in FOP? As I checked from the compliance page, all the Area Alignment Properties seem to be partially or not at all supported. As you probably all know, by default fo:external-graphic aligns as follows (sorry the terrible ascii

Re: FO-RTF conversion with latest fop build and stxx

2005-08-11 Thread Jeremias Maerki
I've just looked up this message. The problem is that this person doesn't seem to know that FOP 0.20.5 doesn't support RTF output (and the CachedFOPTransformer doesn't, either) and the API has changed quite radically between 0.20.5 and the current trunk code. So I am right, and he is wrong. :-)

Re: FO-RTF conversion with latest fop build and stxx

2005-08-11 Thread Stanislav
:- I realised that after i visit some web pages and, of course, fop mailing list archive :-) Stanislav I've just looked up this message. The problem is that this person doesn't seem to know that FOP 0.20.5 doesn't support RTF output (and the CachedFOPTransformer doesn't, either) and the

Re: FO-RTF conversion with latest fop build and stxx

2005-08-11 Thread Manuel Mall
Stanislav, in ASF BugZilla (http://issues.apache.org/bugzilla/show_bug.cgi?id=35939) you'll find a backwards compatible Driver.java class for the trunk code. That should (theoretically) allow you to replace the 0.20.5 fop.jar with the trunk fop.jar without changes to the calling application.

Re: FO to RTF with Revision 231325

2005-08-11 Thread Jeremias Maerki
On 11.08.2005 10:51:23 Tony Morris wrote: I am attempting to generate a RTF document from a simple FO document. I am generating the FO from a XHTML source using the Antenna House XSL. The FO document is at http://pastebin.com/334402 The error produced from the Ant task is: [fop]

Re: FO to RTF with Revision 231325

2005-08-11 Thread Jeremias Maerki
On 11.08.2005 11:20:31 Tony Morris wrote: Having looked at some of those examples, it certainly begs the question, 'do you guys use a simple text editor for all that?'. Oh, yes, we do! :-) At least, the hard-core XSL-FO users do. I guess I'll get started with the W3C document so that I know

Re: FO-RTF conversion with latest fop build and stxx

2005-08-11 Thread Stanislav
Hi, I need fop trunk code only because it's support rtf conversion and i think that this Driver.java does not suppport RTF conversion (i didn't find RTF render). Is this correct? Stanislav Stanislav, in ASF BugZilla (http://issues.apache.org/bugzilla/show_bug.cgi?id=35939) you'll find a

Re: FO-RTF conversion with latest fop build and stxx

2005-08-11 Thread Manuel Mall
Stanislav, true but easily fixed - define a RENDER_RTF constant at the top of the file and add the appropriate case to the switch statement in setRenderer() case RENDER_RTF: _fop = new Fop(Fop.RENDER_RTF); break; Of course you still have to tell your

Re: FO to RTF with Revision 231325

2005-08-11 Thread Jeremias Maerki
Ok, I only looked at it through OpenOffice 1.1.4 where it looks more or less ok. Word indeed has a problem with it. If you set the page-width and page-height to absolute values, the whole thing gets better. Still, I just realized that the region-before content is not being rendered in the page

Re: Inline figure

2005-08-11 Thread Jeremias Maerki
I'm afraid you're out of luck with FOP 0.20.5. See here: http://marc.theaimsgroup.com/?l=fop-userm=105406458432749w=2 If you're adventurous, you can try the current development code directly from the Subversion repository. It's implemented there. No guarantees about other problems occuring if you

RE: Inline figure

2005-08-11 Thread Jukka Ignatius
Thanks for the quick answer! This is actually what I thought. Adventorous as I am, I would like to test out the trunk code. But since we use FOP in quite critical solution, we would not want to update/test the trunk code. Everybody's busy here as well... :( So at the moment we're eagerly

Re: Inline figure

2005-08-11 Thread Jeremias Maerki
On 11.08.2005 12:15:33 Jukka Ignatius wrote: So at the moment we're eagerly waiting for the 1.0DR1 to come out. Is the Current Status of FOP -page up to date at the moment? (However, we think that at the current rate of progress we can start releasing again in the second half of 2005.) Since

font problem

2005-08-11 Thread Jan Pernica
hi everybody We want to use jdk 1.5 and tomcat 5.5.x. But FOP 0.20.5 doesn't load font information. With JDK 1.4.2 and tomcat 5.0.28 it works fine. Do you have any recomendation how to use fop on JDK 1.5? Thank you Jan -

fo:table into fo:list-item-body isn't align correctly

2005-08-11 Thread Willy Reinhardt
Hi, My document has a list. If the content of the list-item-body is a text or an image the pdf result is correct but if the content is a table the border of table isn't indented after the label so the table is align to the border of page. I add below the fo:list-item content, for me it seems

Re: fo:page-number-citation fault

2005-08-11 Thread Frank Lorenz
The fix involved deferring space adjustment until after the actual page number is known. You wont get line breaks adjusted this way. Your only option seems to be two stage processing, which may alos allow you to get rid of duplicated page numbers. Note that for proper space adjustment you'll

Re: Keeping fo:block with the page's end

2005-08-11 Thread Frank Lorenz
Hi there! Your suggestions all work great for e.g. AntennaHouse. But FOP does not do the job. I think it depends on the strange fo:block-container behavior and on the not properly working display-align attribute. I think i have to vertical align the last block manually . Regards Frank

Re: fo:page-number-citation fault

2005-08-11 Thread J.Pietschmann
Frank Lorenz wrote: I tried to change FOP as you advised. Uh? I'm confused. Two stage processing works roughly as follows: 1. Generate the FO as before. Instead of rendering PDF, create the XML area tree (the -at option) 2. Use XSLT to extract the real page numbers from the XML. This is the

Re: font problem

2005-08-11 Thread Jan Pernica
Thank you for reply. With JDK 1.4 and Tomcat 5.5.9 it works fine. I will check the security. In the archive I have found that there some problems with JDK 1.5 Thank you J.Pietschmann wrote: Jan Pernica wrote: We want to use jdk 1.5 and tomcat 5.5.x. But FOP 0.20.5 doesn't load font