Fitting data of a table into A4 size

2003-12-10 Thread Ngo Thanh Hien
Dear FOP experts: I'm now building an application that generate report in PDF format. I'm using FOP. A requirement of report format is all report data must fit into a PDF page (A4 for example) in both vertical and horizontal sides. This is my solutions: We calulate maximum

gain memory

2003-12-10 Thread Philippe PITHON
Hello! I would like to improve the code below 2 questions: - java says to me that input.getParser() input.getInputSource() are deprecated what is necessary to use in the place ? - to gain memory, are my files well closed? --- XSLTInputHandler input = new

Re: Running junit tests fails

2003-12-10 Thread Chris Bowditch
Simon Pepping wrote: When I try to run the junit tests on the code checked out from CVS HEAD, I get a failure because ant cannot create task or type of type: junit. I do not know anything about junit. I had hoped this target would run out of the box. snip/ BUILD FAILED

Re: Running junit tests fails

2003-12-10 Thread Stan Pinte
BUILD FAILED file:/fsd/source/xml-fop/build.xml:659: Could not create task or type of type: junit. Ant could not find the task or a class this task relies upon. junit is version 3.8.1. I get the same thing, but I also dont know how to solve it. Looking in the build.xml doesnt reveal any

Re: Running junit tests fails

2003-12-10 Thread Chris Bowditch
Stan Pinte wrote: You may want to add the jar containing the junit task in the JUNIT_HOME/lib directory. Whats the name of the jar containing the junit ant task definition then? Ive added the junit.jar, there is also a test.jar and a src.jar in my junit directory (no lib sub dir though!) The

Re: Running junit tests fails

2003-12-10 Thread Stan Pinte
On Wed, 10 Dec 2003 11:44:08 +, Chris Bowditch [EMAIL PROTECTED] wrote: Stan Pinte wrote: You may want to add the jar containing the junit task in the JUNIT_HOME/lib directory. Whats the name of the jar containing the junit ant task definition then? Ive added the junit.jar, there is also a

Re: Running junit tests fails

2003-12-10 Thread Jeremias Maerki
junit.jar is sufficient. The jar should be placed in %ANT_HOME%/lib. Use JUnit 3.8.1 or later to be sure. The JUnit task is included in Ant's optional.jar but only works if junit.jar is present in %ANT_HOME%/lib. Actually, I don't understand why the JUnit suport is recognized but the test cases

Problem with .fo file

2003-12-10 Thread frederic . kieffer
Hello people, I'm having trouble with a .fo file. I'm able to convert it to PDF when using the command line, but when I try to print it (using awt) thanks to embedded code, I have this error : [INFO,Default] [PrintDocument][setupFopAndRender] loading and printing XSL-FO document

Re: Running junit tests fails

2003-12-10 Thread Stan Pinte
On Wed, 10 Dec 2003 14:28:23 +0100, Jeremias Maerki [EMAIL PROTECTED] wrote: junit.jar is sufficient. The jar should be placed in %ANT_HOME%/lib. sorry for my mistake... Use JUnit 3.8.1 or later to be sure. The JUnit task is included in Ant's optional.jar but only works if junit.jar is present

Re: gain memory

2003-12-10 Thread Glen Mazza
Please use the JAXP standard instead of the XSLTInputHandler wrapper. Look at the ExampleXML2PDF.java in: http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/ Glen --- Philippe PITHON [EMAIL PROTECTED] wrote: Hello ! I would like to improve the code below

problem with positioning of fo:block-container

2003-12-10 Thread Bachork Michal
Hello! I'm using fop 0.25 for quite complex design and output to pdf. i had some problems which i managed to solve, but one remains : in some files, fop has problem with element fo:block-container and positioning it on X axis. I mean - i have several fo:block-container elements with the

problem with positioning of fo:block-container

2003-12-10 Thread Jeff_Mitchell
Return Receipt Your problem with positioning of fo:block-container document :

Minimising FOP Runtimes

2003-12-10 Thread Manuel Reyes
I have been working on creating a three tier system that per client requests gets data from a database, pumps this into a PDF via FOP XSL/XML processing, then sends the resulting PDF back to the client for display. This project is reaching its end and creating a 3 or 4 page document usually takes

Re: Running junit tests fails

2003-12-10 Thread Simon Pepping
On Wed, Dec 10, 2003 at 02:28:23PM +0100, Jeremias Maerki wrote: junit.jar is sufficient. The jar should be placed in %ANT_HOME%/lib. Use JUnit 3.8.1 or later to be sure. The JUnit task is included in Ant's optional.jar but only works if junit.jar is present in %ANT_HOME%/lib. Actually, I

Re: Running junit tests fails

2003-12-10 Thread Jeremias Maerki
Looks like it. Please download the latest Ant release and install it following Ant's installation instructions. Then use ant.bat/ant.sh to build FOP and not build.bat. Ant can be found at http://ant.apache.org. I've heard that best practice is not to bundle Ant with a project but to make an Ant

Re: Minimising FOP Runtimes

2003-12-10 Thread J.Pietschmann
Manuel Reyes wrote: I have been working on creating a three tier system that per client requests gets data from a database, pumps this into a PDF via FOP XSL/XML processing, then sends the resulting PDF back to the client for display. This project is reaching its end and creating a 3 or 4 page

Re: problem with positioning of fo:block-container

2003-12-10 Thread J.Pietschmann
Bachork Michal wrote: in some files, fop has problem with element fo:block-container and positioning it on X axis. I mean - i have several fo:block-container elements with the same value in left attribute and different values in top attribute. One or more (smaller part of all) are rendered rather

Re: Problem with .fo file

2003-12-10 Thread J.Pietschmann
[EMAIL PROTECTED] wrote: I'm able to convert it to PDF when using the command line, but when I try to print it (using awt) thanks to embedded code, I have this error : ... [INFO,Default] Using org.apache.crimson.parser.XMLReaderImpl as SAX2 Parser ... [ERROR,Default]

Re: Minimising FOP Runtimes

2003-12-10 Thread John Austin
On Wed, 2003-12-10 at 18:42, J.Pietschmann wrote: Manuel Reyes wrote: I have been working on creating a three tier system that per client requests gets data from a database, pumps this into a PDF via FOP XSL/XML processing, then sends the resulting PDF back to the client for display.