Big picture bug (infinite loop) in 0.19 release

2001-07-22 Thread Sacha Labourey

Hello,

While building a pdf with FOP, I have a large picture to integrate in my
document. As its size is bigger than 1 page, FOP 0.19 enters an infinite
loop.

As the PDF output is not the only output format I am using, I do not want to
reduce the size of this image as it would break other outputs (source
documents are in docbook format). I've seen many previous posts on the ML
speaking of patch for large objects (mainly table) but this does not seem
to have corrected the big picture bug.

Any idea on how to cleanly solve this?

Thank you. Cheers,



Sacha



Docbook tags:
...
figure id = adv.config.dtd
titleblabla/title
mediaobject
imageobject
imagedata fileref = 
images/my_large_picture.jpg/
/imageobject
/mediaobject
/figure
...


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Can't build fop: Hangs after Starting Ant...

2001-07-22 Thread Karen Lease

Hi Gregor,

If you are still stuck, I have a few more ideas of things to try. 
./build.sh -version
Ant should print out its version number
(I get: Ant version 1.3 compiled on March 2 2001)

If you still get nothing, try running ant from the command line directly
(from the same directory where you have your build.sh) :
java -classpath lib/ant.jar org.apache.tools.ant.Main -version

and see if you get anything.
If the second works and the first doesn't, there's something amiss with
your build.sh file. Perhaps you could attach it to your next mail. I
tend to think the problem is in your build.sh and not your build.xml.

If you get ant to print its version number, then at least it is starting
up. In that case, try using the -verbose
switch which should print out lots of stuff, starting with the version,
the build file name, the java version, the OS 

Good luck,
Karen

Gregor N. Purdy wrote:
 
 All --
 
 On 11 Jul 2001 11:12:50 -0400, Gregor N. Purdy wrote:
  Its been some time since I've been able to build fop from CVS. I just
  completed a fresh checkout of xml-fop and when I run ./build.sh, the
  thing just hangs after printing Starting Ant

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Starting off

2001-07-22 Thread Darren Munt

There should be (I hope) one in the binary download.

I grabbed Fop-0.19.0-CVS-bin.tar.gz the other day. I couldn't find the .bat
or .sh files mentioned in Running FOP. The only scripts in the archive are
the .bat and .sh versions of runtests and makedoc. 

For a Java Dummy like me (and a PC user to boot), the biggest problem was
working out how to invoke FOP from the command line. The most critical
aspect of this was getting the ClassPath right. I modified the one in
runtests.bat, which seems to do the trick.

If you've got a sample script available, that would be great.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Can't build fop: Hangs after Starting Ant...

2001-07-22 Thread Peter B. West

Oops!  Ok, I'll read the subject line next time.  Well, we've
established that your ant environment is broken.  Sorry I can't be much
help from here.

Peter

Gregor N. Purdy wrote:

  It was hung, so the time is the time I let it stay hung until
  Ctrl+C.
 
 
  On 22 Jul 2001 09:39:54 +1000, Peter B. West wrote:
 
 Gregor,
 
 I don't know ant all that well, but here is what happens when I do it:
 
 /tmp  9:35$ ant
 Buildfile: build.xml
 
 testCRLF:
 
 BUILD SUCCESSFUL
 
 Total time: 1 second
 /tmp  9:35$
 
 I don't know whether there are properties you can have set which
 suppress the normal output of ant, but I suspect you should be seeing
 the same sort of output.
 
 Is that real time real?
 
 Change the value of cr from remove to add and see if the file is
 modified.
 
 Peter
 
 Gregor N. Purdy wrote:
 
 
 On 20 Jul 2001 12:56:29 +1000, Peter B. West wrote:
 
 
 If you haven't written one already, you might try the attached
 build.xml.  Drop it in /tmp, copy some text file over as
 /tmp/YourTextFile (or edit the includes value in build.xml, and run
 ant.  The text file will be modified in place.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 
 
 --
 
 I've attached a typescript file of an attempt.
 
 
 Script started on Fri Jul 20 09:21:06 2001
 [gregor@sarek ant-test]$ cat build.xml
 ?xml version=1.0?
 
 project default=testCRLF basedir=.
   taskdef name=fixcrlf
classname=org.apache.tools.ant.taskdefs.FixCRLF/
   target name=testCRLF
 fixcrlf srcdir=.
  
   includes=YourTextFile
  
   tab=remove
  cr=remove
  
   eof=remove
  
   /
   /target
 
 /project
 
 [gregor@sarek ant-test]$ cat YourTextFile
 ?xml version=1.0?
 
 project default=testCRLF basedir=.
   taskdef name=fixcrlf
classname=org.apache.tools.ant.taskdefs.FixCRLF/
   target name=testCRLF
 fixcrlf srcdir=.
  
   includes=YourTextFile
  
   tab=remove
  cr=remove
  
   eof=remove
  
   /
   /target
 
 /project
 
 [gregor@sarek ant-test]$ time ant
 
 
 real37m19.108s
 user0m0.270s
 sys 0m0.120s
 [gregor@sarek ant-test]$ ls
 build.xml  typescript  YourTextFile
 [gregor@sarek ant-test]$ exit
 exit
 
 Script done on Fri Jul 20 09:58:45 2001
 
 typescript
 
 Content-Type:
 
 text/plain
 Content-Encoding:
 
 7bit
 
 
 
 
 --
 Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
 Lord, to whom shall we go?
 
 
 
  --
 
 
  Regards,
 
  -- Gregor
   _
  / \
 Gregor N. Purdy  [EMAIL PROTECTED]
 Focus Research, Inc.http://www.focusresearch.com/
 8080 Beckett Center Drive #203   513-860-3570 vox
 West Chester, OH 45069   513-860-3579 fax
  \_/
 
 
 
 


-- 
Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
Lord, to whom shall we go?


-- 
Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
Lord, to whom shall we go?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




stopping stdout messages

2001-07-22 Thread Etienne Deleflie

Hello,

We are using FOP in our software, and I was wondering if there is an
easy way of stopping the non-error standard out messages like :

using renderer org.apache.fop.render.pdf.PDFRenderer
using element mapping org.apache.fop.fo.StandardElementMapping
using element mapping org.apache.fop.svg.SVGElementMapping
using property list mapping
org.apache.fop.fo.StandardPropertyListMapping
using property list mapping org.apache.fop.svg.SVGPropertyListMapping
building formatting object tree
setting up fonts
formatting FOs into areas
 [1]
rendering areas to PDF
writing out PDF
total memory: 41586680


etienne


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




cvs commit: xml-fop/src/org/apache/fop/fo/flow RetrieveMarker.java

2001-07-22 Thread arved

arved   01/07/22 18:58:56

  Modified:src/org/apache/fop/fo/flow RetrieveMarker.java
  Log:
  AHS: continued work on fo:marker support
  
  Revision  ChangesPath
  1.3   +54 -19xml-fop/src/org/apache/fop/fo/flow/RetrieveMarker.java
  
  Index: RetrieveMarker.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/RetrieveMarker.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RetrieveMarker.java   2001/07/16 10:43:51 1.2
  +++ RetrieveMarker.java   2001/07/23 01:58:56 1.3
  @@ -1,4 +1,4 @@
  -/*-- $Id: RetrieveMarker.java,v 1.2 2001/07/16 10:43:51 arved Exp $-- */
  +/*-- $Id: RetrieveMarker.java,v 1.3 2001/07/23 01:58:56 arved Exp $-- */
   /*
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
  @@ -48,44 +48,72 @@
// 'retrieve-boundary'. Initially we will always check
// the containing page
Page containingPage = area.getPage();
  - Marker bestMarker = searchPage(containingPage);
  + Marker bestMarker = searchPage(containingPage, true);

// if marker not yet found, and 'retrieve-boundary' permits,
// search forward by Page
  - /* insert code for searching forward by Page, if allowed */
  + if ((null == bestMarker)  (retrieveBoundary != 
RetrieveBoundary.PAGE)) {
  + // System.out.println(Null bestMarker and searching...);
  + Page currentPage = containingPage;
  + boolean isFirstCall = true;
  + while (bestMarker == null) {
  + Page previousPage =
  + locatePreviousPage(currentPage, 
retrieveBoundary, isFirstCall);
  + isFirstCall = false;
  + // System.out.println(Previous page = ' + 
previousPage + ');
  + bestMarker = searchPage(previousPage, false);
  + currentPage = previousPage;
  + }
  + }

Status status = new Status(Status.AREA_FULL_NONE);
if (null != bestMarker) {
  - // System.out.println(Laying out marker in area ' + area + 
');
  + // System.out.println(Laying out marker ' + bestMarker + ' 
in area ' + area + ');
  + // the 'markers' referred to in this method are internal; they 
have
  + // nothing to do with fo:marker
  + bestMarker.resetMarker();
status = bestMarker.layoutMarker(area);
}

return status;
}

  - private Marker searchPage(Page page) throws FOPException {
  + private Marker searchPage(Page page, boolean isContainingPage)
  + throws FOPException {
Vector pageMarkers = page.getMarkers();
  - if (pageMarkers.isEmpty())
  + if (pageMarkers.isEmpty()) {
  + // System.out.println(No markers on page);
return null;
  - 
  + }
  + 
  + // if no longer the containing page (fo:retrieve-marker, or the page
  + // being processed), grab the last qualifying marker on this one
  + if (!isContainingPage) {
  + for (int c = pageMarkers.size(); c  0; c--) {
  + Marker currentMarker = 
(Marker)pageMarkers.elementAt(c-1);
  + if 
(currentMarker.getMarkerClassName().equals(retrieveClassName)) {
  + return currentMarker;
  + }
  + }   
  + }
  + 
// search forward if 'first-starting-within-page' or
// 'first-including-carryover'
  - Marker fallback = null;
if (retrievePosition == RetrievePosition.FIC) {
for (int c = 0; c  pageMarkers.size(); c++) {
Marker currentMarker = 
(Marker)pageMarkers.elementAt(c);
  - if 
(currentMarker.getMarkerClassName().equals(retrieveClassName))
  + if 
(currentMarker.getMarkerClassName().equals(retrieveClassName)) {
return currentMarker;
  + }
}

} else if (retrievePosition == RetrievePosition.FSWP) {
for (int c = 0; c  pageMarkers.size(); c++) {
Marker 

cvs commit: xml-fop/src/org/apache/fop/fo/pagination PageSequence.java

2001-07-22 Thread arved

arved   01/07/22 18:59:38

  Modified:src/org/apache/fop/fo/pagination PageSequence.java
  Log:
  AHS: continued work on fo:marker support
  
  Revision  ChangesPath
  1.33  +5 -2  xml-fop/src/org/apache/fop/fo/pagination/PageSequence.java
  
  Index: PageSequence.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/PageSequence.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- PageSequence.java 2001/07/16 10:45:08 1.32
  +++ PageSequence.java 2001/07/23 01:59:38 1.33
  @@ -1,4 +1,4 @@
  -/*-- $Id: PageSequence.java,v 1.32 2001/07/16 10:45:08 arved Exp $ --
  +/*-- $Id: PageSequence.java,v 1.33 2001/07/23 01:59:38 arved Exp $ --
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
  @@ -264,7 +264,9 @@
   
   }
   
  - // because of markers, do after fo:flow
  + // because of markers, do after fo:flow (likely also
  + // justifiable because of spec)
  + currentPage.setPageSequence(this);
   formatStaticContent(areaTree);
   
   MessageHandler.log(]);
  @@ -627,6 +629,7 @@
String formattedPageNumber =

pageNumberGenerator.makeFormattedPageNumber(this.currentPageNumber);
currentPage.setFormattedNumber(formattedPageNumber);
  + currentPage.setPageSequence(this);
formatStaticContent(areaTree);
MessageHandler.log([forced- + firstAvailPageNumber + ]);
areaTree.addPage(currentPage);
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




cvs commit: xml-fop/src/org/apache/fop/layout Page.java

2001-07-22 Thread arved

arved   01/07/22 19:00:37

  Modified:src/org/apache/fop/layout Page.java
  Log:
  AHS: continued work on fo:marker support
  
  Revision  ChangesPath
  1.14  +16 -1 xml-fop/src/org/apache/fop/layout/Page.java
  
  Index: Page.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/layout/Page.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- Page.java 2001/07/16 10:45:43 1.13
  +++ Page.java 2001/07/23 02:00:37 1.14
  @@ -1,4 +1,4 @@
  -/* $Id: Page.java,v 1.13 2001/07/16 10:45:43 arved Exp $
  +/* $Id: Page.java,v 1.14 2001/07/23 02:00:37 arved Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
  @@ -11,6 +11,7 @@
   import org.apache.fop.fo.flow.*;
   import org.apache.fop.fo.*;
   import org.apache.fop.apps.*;
  +import org.apache.fop.fo.pagination.PageSequence;
   
   // Java
   import java.util.Vector;
  @@ -29,6 +30,8 @@

   private AreaTree areaTree;
   
  + private PageSequence pageSequence;
  + 
   protected int pageNumber = 0;
protected String formattedPageNumber;

  @@ -47,6 +50,18 @@
markers = new Vector();
   }
   
  + public void setPageSequence(PageSequence pageSequence) {
  + this.pageSequence = pageSequence;
  + }
  + 
  + public PageSequence getPageSequence() {
  + return pageSequence;
  + }
  + 
  + public AreaTree getAreaTree() {
  + return areaTree;
  + }
  + 
   public void setNumber(int number) {
this.pageNumber = number;
   }
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Problem with line-feed

2001-07-22 Thread madhav pulipaka


I have a problem using fop0.17.0.
My XML tag is as follows:

row6 PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH
PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH

PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH

PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH


PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH



PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH




PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH
/row6

xsl is as follows:


fo:block font-size=9pt linefeed-treatment=preserve
white-space-collapse=false space-treatment=preserve wrap-option=wrap
xsl:value-of select=ROWSET/check1/row6/
/fo:block

where row6 is an element tag os check1 tag, and check1 is an element tag of
ROWSET tag.

In the PDF file i am getiing data as:

PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH
PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH
PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH
PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH
PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH
PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH

instead of getting

PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH

PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH

PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH


PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH



PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH




PRODUCTION METHOD OF 1320JULY2000 IN ENGLISH

i mean it is trimming all empty lines. Is there any way to get rid of this
problem.

Thanks and Regards,
Madhav Pulipaka



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: stopping stdout messages

2001-07-22 Thread Jeremias Maerki

 We are using FOP in our software, and I was wondering if there is an
 easy way of stopping the non-error standard out messages like :

Have a look at the org.apache.fop.messaging package. You will have to
implement a class that implements MessageListener (See
DefaultMessageListener for example), register it with the MessageHandler
class (addListener) and set the output method to events
(setOutputMethod()).

MessageHandler.setOutputMethod(MessageHandler.EVENT);
MessageHandler.addListener(new MyMessageListener());

That's how I did it.

Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
Internet http://www.outline.ch


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: back

2001-07-22 Thread Jeremias Maerki

 5) there has been some discussion on Apache's general list to 
 switch from stylebook to docbook or something else. afaik there 
 has been a lot of voting for docbook but nobody has a working 
 solution to replace stylebook. We should monitor this discussion 
 and change as soon as possible.

Maybe have a look into the Avalon project. They have just started using
docbook.

Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
Internet http://www.outline.ch


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]