FOP AWT Window Shuts Down Application

2002-02-19 Thread Jim Urban

I am using the FOP AWT viewer (PreviewDialog) to display and print reports
within my application.  The problem is, whenever I close the FOP viewer, my
application shuts down.  How can I keep this from happening?

Thanks,

Jim Urban
Product Manager
Netsteps Inc.
Suite 505E
1 Pierce Pl.
Itasca, IL  60143
Voice:  (630) 250-3045 x2164
Fax:  (630) 250-3046


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




how does the embbeded font thing work ?

2002-02-19 Thread Nick Winger

hi !


i have an embbeded user font...
in my application i use arial ( own user font) and everythins works...

question 1: from where does acrobat reader get the font ? is it embbeded in
the pdf file or what ?

second:
i have a servlet and when i generate the pdf out of that servlet the pdf is
much more smaller than the one
generated in the application.

one reason could be, that the userconfig.xml is not loaded...( where does
fop look when i just say:
  Options options = new Options();
 options.loadUserconfiguration("userconfig.xml");
) ?

i my application i have the fonts, xmls and userconfig.xml in the same
directory where the application is.

in the servlet i have these files in the root directory of the server, but
somehow fop makes a smaller pdf file and
when i start acrobat reader it says that a font for a substitude font is
missing.
the font arial, bold can not be found...
so where do i have to put the truetype fonts ?


greetings

Nick Winger


(Software-Developer)
==
VANGUARD Software GmbH
Julius Tandler Platz 8
1090 Vienna, AUSTRIA

Phone: +43-1-3195263-20
Fax:   +43-1-3195263-90
http://www.vanguard.at
==



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




Re: driver problem -> finding source file

2002-02-19 Thread Jeremias Maerki

Have a look at the javadocs of org.xml.sax.InputSource. It will tell you
that a String parameter in the constructor is a SystemID which
corresponds more or less to a URL. So if you specify a relative path
it's resolved by applying the base URL. And that's why it worked. I'd
use:

new InputSource(new FileInputStream("d:\\projects\\FOPTest.fo"))

> i have the following java code to generate a pdf file:
> 
>   Options options = new Options();
> options.loadUserconfiguration("userconfig.xml");
> 
>   Driver driver = new Driver( new InputSource( "d:\\projects\\FOPTest.fo" ),
> new FileOutputStream( "d:\\projects\\FOPTest.pdf" ) );
>   driver.setRenderer( Driver.RENDER_PDF );
>   driver.run();
> 
> 
> it's for sure, that the FOPTest.fo file is in the folder projects, but FOP
> says file not found exception.
> 
> when i have the fo-file in the same folder as the executable class ( like
> this:
>   Driver driver = new Driver( new InputSource( "FOPTest.fo" ),new
> FileOutputStream( "FOPTest.pdf" ) ); )
> 
> it works.
> but when i have the source fo file in a different order i get that
> exception.
> 
> anybody know why addressing the fo-file doesn't work ?

Freundliche Grüsse
OUTLINE AG
Jeremias Märki

mailto:[EMAIL PROTECTED]

Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 41 317 20 20 - Fax +41 41 317 20 29
Internet http://www.outline.ch


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




driver problem -> finding source file

2002-02-19 Thread Nick Winger

hi !


i have the following java code to generate a pdf file:

Options options = new Options();
options.loadUserconfiguration("userconfig.xml");

Driver driver = new Driver( new InputSource( "d:\\projects\\FOPTest.fo" ),
new FileOutputStream( "d:\\projects\\FOPTest.pdf" ) );
driver.setRenderer( Driver.RENDER_PDF );
driver.run();


it's for sure, that the FOPTest.fo file is in the folder projects, but FOP
says file not found exception.

when i have the fo-file in the same folder as the executable class ( like
this:
Driver driver = new Driver( new InputSource( "FOPTest.fo" ),new
FileOutputStream( "FOPTest.pdf" ) ); )

it works.
but when i have the source fo file in a different order i get that
exception.

anybody know why addressing the fo-file doesn't work ?


greetings

Nick Winger


(Software-Developer)
==
VANGUARD Software GmbH
Julius Tandler Platz 8
1090 Vienna, AUSTRIA

Phone: +43-1-3195263-20
Fax:   +43-1-3195263-90
http://www.vanguard.at
==



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




cvs commit: xml-fop/src/org/apache/fop/svg PDFTranscoder.java PDFTextElementBridge.java PDFTextPainter.java

2002-02-19 Thread keiron

keiron  02/02/19 05:03:15

  Modified:src/org/apache/fop/svg PDFTranscoder.java
PDFTextElementBridge.java PDFTextPainter.java
  Log:
  fixed compile error
  add extra check for text drawing, seems to have a problem with
  large fonts and may have nulll size
  
  Revision  ChangesPath
  1.15  +2 -6  xml-fop/src/org/apache/fop/svg/PDFTranscoder.java
  
  Index: PDFTranscoder.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/PDFTranscoder.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- PDFTranscoder.java15 Nov 2001 08:12:36 -  1.14
  +++ PDFTranscoder.java19 Feb 2002 13:03:14 -  1.15
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PDFTranscoder.java,v 1.14 2001/11/15 08:12:36 keiron Exp $
  + * $Id: PDFTranscoder.java,v 1.15 2002/02/19 13:03:14 keiron 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.
  @@ -95,9 +95,6 @@
   import org.w3c.dom.svg.SVGDocument;
   import org.w3c.dom.svg.SVGSVGElement;
   
  -//  FIXME : Those import clauses will change with new design
  -import org.apache.batik.gvt.renderer.StaticRendererFactory;
  -
   /**
* This class enables to transcode an input to a pdf document.
*
  @@ -123,7 +120,7 @@
* millimeter conversion factor.
*
* @author mailto:[EMAIL PROTECTED]";>Keiron Liddle
  - * @version $Id: PDFTranscoder.java,v 1.14 2001/11/15 08:12:36 keiron Exp $
  + * @version $Id: PDFTranscoder.java,v 1.15 2002/02/19 13:03:14 keiron Exp $
*/
   public class PDFTranscoder extends XMLAbstractTranscoder {
   
  @@ -177,7 +174,6 @@
   
   // build the GVT tree
   GVTBuilder builder = new GVTBuilder();
  -ImageRendererFactory rendFactory = new StaticRendererFactory();
   BridgeContext ctx = new BridgeContext(userAgent);
   TextPainter textPainter = null;
   textPainter = new StrokingTextPainter();
  
  
  
  1.2   +4 -1  xml-fop/src/org/apache/fop/svg/PDFTextElementBridge.java
  
  Index: PDFTextElementBridge.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/PDFTextElementBridge.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PDFTextElementBridge.java 9 Nov 2001 11:32:42 -   1.1
  +++ PDFTextElementBridge.java 19 Feb 2002 13:03:15 -  1.2
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PDFTextElementBridge.java,v 1.1 2001/11/09 11:32:42 keiron Exp $
  + * $Id: PDFTextElementBridge.java,v 1.2 2002/02/19 13:03:15 keiron 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.
  @@ -66,6 +66,9 @@
   // Font size, in user space units.
   float fs = TextUtilities.convertFontSize(element, ctx, cssDecl, uctx);
   if(((int)fs) != fs) {
  +return false;
  +}
  +if(fs > 36) {
   return false;
   }
   
  
  
  
  1.9   +6 -2  xml-fop/src/org/apache/fop/svg/PDFTextPainter.java
  
  Index: PDFTextPainter.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/PDFTextPainter.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- PDFTextPainter.java   9 Nov 2001 11:32:42 -   1.8
  +++ PDFTextPainter.java   19 Feb 2002 13:03:15 -  1.9
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PDFTextPainter.java,v 1.8 2001/11/09 11:32:42 keiron Exp $
  + * $Id: PDFTextPainter.java,v 1.9 2002/02/19 13:03:15 keiron 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.
  @@ -36,7 +36,7 @@
* Renders the attributed character iterator of a TextNode.
*
* @author mailto:[EMAIL PROTECTED]";>Keiron Liddle
  - * @version $Id: PDFTextPainter.java,v 1.8 2001/11/09 11:32:42 keiron Exp $
  + * @version $Id: PDFTextPainter.java,v 1.9 2002/02/19 13:03:15 keiron Exp $
*/
   public class PDFTextPainter implements TextPainter {
   FontState fontState;
  @@ -74,12 +74,16 @@
   
(Vector)aci.getAttribute(GVTAttributedCharacterIterator.TextAttribute.GVT_FONT_FAMILIES);
   Paint forg = (Paint)aci.getAttribute(TextAttribute.FOREGROUND);
   Float size = (Float)aci.getAttribute(TextAttribute.SIZE);
  +if(size == null) {
  +return;
  +}
   Stroke stroke =
   
(Stroke)aci.getAttribute(GVTAttributedCharacterIterator.TextAttribute.STROKE);
   Float xpos =
  

[GUMP] Build Failure - Fop

2002-02-19 Thread Sam Ruby


This email is autogenerated from the output from:



Buildfile: build.xml

init-avail:

init-filters-xalan2:
 [copy] Copying 1 file to /home/rubys/jakarta/xml-fop/build/src/codegen

init:
 [echo] --- Fop 1.0dev [1999-2002] 

prepare:
 [echo] Preparing the build directories
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/src/org/apache/fop/svg
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/conf
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/hyph
 [copy] Copying 3 files to /home/rubys/jakarta/xml-fop/build/classes/conf

codegen:
 [echo] Resetting codegen directory
 [copy] Copying 31 files to /home/rubys/jakarta/xml-fop/build/src/codegen
 [echo] Generating the java files from xml resources
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/allprops.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties/Constants.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/genconst.xsl
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/foproperties.xml 
to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties/fo_ignore_this.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/properties.xsl
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/foproperties.xml 
to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties/FOPropertyMapping.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/propmap.xsl
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/foproperties.xml 
to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties/foenums_ignore_this.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/enumgen.xsl
[style] Processing /home/rubys/jakarta/xml-fop/build/src/codegen/charlist.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/CodePointMapping.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/code-point-mapping.xsl
[style] Transforming into 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/CourierBold.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/CourierBold.java
[style] Loading stylesheet 
/home/rubys/jakarta/xml-fop/build/src/codegen/font-file.xsl
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/Courier.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/Courier.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/CourierBoldOblique.xml 
to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/CourierBoldOblique.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/CourierOblique.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/CourierOblique.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/Helvetica.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/Helvetica.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/HelveticaBold.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/HelveticaBold.java
[style] Processing 
/home/rubys/jakarta/xml-fop/src/codegen/HelveticaBoldOblique.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/HelveticaBoldOblique.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/HelveticaOblique.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/HelveticaOblique.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/Symbol.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/Symbol.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/TimesBold.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/TimesBold.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/TimesBoldItalic.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/TimesBoldItalic.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/TimesItalic.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/TimesItalic.java
[style] Processing /home/rubys/jakarta/xml-fop/src/codegen/TimesRoman.xml to 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts/TimesRoman.java
[style] Processing /home/rubys/jakarta/xml-fop

RE: [PROPOSAL] linebreak was Re: REDESIGN: where I have been hiding

2002-02-19 Thread Arved Sandstrom

-Original Message-
From: ewitness - Ben Fowler [mailto:[EMAIL PROTECTED]]
Sent: February 18, 2002 9:36 PM
To: [EMAIL PROTECTED]
Subject: RE: [PROPOSAL] linebreak was Re: REDESIGN: where I have been
hiding

>This would be useful in writing addresses exempli gratia:
>
>
>
>   
>   Bilbo Baggins,
>   Bag End,
>   Underhill,
>   Hobbiton,
>   Westfarthing of the Shire.
>   
>
>
>At present, I can get the effect I want with tables.
>
>Ben.
>-end of Original Message-
>
>I guess the reason nobody thought  or  would be
>required is because a U+000A will do the trick.

Thank you. I had assumed that that character would count as white
space, and would be normalised away.

I will try it.

Ben.

-

My answer was so terse that maybe it sounded snippy, which was not my
intention.

I also can't say that FOP is up to spec with whitespace handling. I'm
thinking that it's not, but I'll have to check myself. So my comments are
related to the spec only.

In any case, a linefeed (LF) must be honoured, and result in a linebreak.
_If_ the conditions are right. What that means is, the initial value for
"linefeed-treatment" is "treat-as-space", which _does_ do a conversion of
U+000A to U+0020 (space). So you would want to specify
"linefeed-treatment='preserve'" on an ancestor flow object (possibly
fo:root) and allow it to propagate to the FOs of interest, as it is
inheritable. The "whitespace-*" properties do not affect the linefeed, and
suppress-at-line-break can also be left as it is.

But essentially the LF is there to accomplish what you want to do. The
initial setting of "linefeed-treatment" acts to give us LaTeX-like
behaviour, but unlike LaTeX we can switch to something different in this
regard, rather than use new markup.

Regards,
AHS


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




DO NOT REPLY [Bug 6539] - Poor error recovery from invalid FO; wrong exit status

2002-02-19 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6539

Poor error recovery from invalid FO; wrong exit status





--- Additional Comments From [EMAIL PROTECTED]  2002-02-19 10:56 ---
Created an attachment (id=1204)
ZIP of test case

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




DO NOT REPLY [Bug 6539] New: - Poor error recovery from invalid FO; wrong exit status

2002-02-19 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6539

Poor error recovery from invalid FO; wrong exit status

   Summary: Poor error recovery from invalid FO; wrong exit status
   Product: Fop
   Version: 0.20.3
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: Minor
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Run the 'pdf1' target of the Ant build script in the attached example.
Or run XSL and FOP manually. Tested with docbook-xsl 1.48 and Apache
FOP 0.20.3rc. Log file included as log1.txt.

The FO here is incorrect (stylesheet error): there is a  as
a direct child of . FOP does not recover from this condition
with a helpful error message, it just throws an NPE which does not
make it easy to figure out what is wrong.

Furthermore the Java process exits with code 0 despite the fact that a
fatal exception was thrown and no readable PDF was generated. It
should exit with code 1. That would e.g. cause the Ant task  to
throw a build exception rather than report success.

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




Re: Page sequence

2002-02-19 Thread fred redf

Hi Gilles

Just put a break-after="page" in the last block
intended to be inside each page sequence.
Salut.
Fred.


--- Gilles Beaugeais <[EMAIL PROTECTED]> a écrit :
> hello
> 
> I am using fop 0.20.3.
> 
> I have to generate 3 TOCs (table of contents, list 
> of figures, list of tables) and a blank page at the
> end 
> of global 3 TOCs if the 3 TOCs total page count is
> odd.
> 
> The problem is that I have to change header
> depending 
> on the TOC.
> 
> I have defined 3
> 'fo:repeatable-page-master-alternatives' in 
> a 'fo:page-sequence-master' but I don't know how to
> skip 
> from a 'fo:repeatable-page-master-alternatives' to
> another in 
> 'fo:flow'.
> The  instruction don't
> make 
> changing the current
> 'fo:repeatable-page-master-alternatives'
> 
> Can someone help ?
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
>  

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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




DO NOT REPLY [Bug 6537] - Table is missing in the generated PDF

2002-02-19 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6537

Table is missing in the generated PDF





--- Additional Comments From [EMAIL PROTECTED]  2002-02-19 10:14 
---
Created an attachment (id=1203)
Output file created by my Fop version

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




DO NOT REPLY [Bug 6537] - Table is missing in the generated PDF

2002-02-19 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6537

Table is missing in the generated PDF





--- Additional Comments From [EMAIL PROTECTED]  2002-02-19 10:14 
---
Created an attachment (id=1202)
Input file causing the problem.

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




DO NOT REPLY [Bug 6537] New: - Table is missing in the generated PDF

2002-02-19 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6537

Table is missing in the generated PDF

   Summary: Table is missing in the generated PDF
   Product: Fop
   Version: 0.20.3
  Platform: PC
OS/Version: Other
Status: NEW
  Severity: Major
  Priority: Other
 Component: pdf renderer
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Hi,

I have a FO document that I convert with fop 0.20.3 (CVS version from
2001-02-19) into a PDF file. The input document contains a table
definition, which should fine, according to
  http://xml.apache.org/fop/limitations.html
because it contains column width specifications and block-level FO's
in the cells. (See attached file tables_master.fo.)

However, the generated PDF file doesn't display any table.


Thanks,

Jochen

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




Page sequence

2002-02-19 Thread Gilles Beaugeais

hello

I am using fop 0.20.3.

I have to generate 3 TOCs (table of contents, list 
of figures, list of tables) and a blank page at the end 
of global 3 TOCs if the 3 TOCs total page count is odd.

The problem is that I have to change header depending 
on the TOC.

I have defined 3 'fo:repeatable-page-master-alternatives' in 
a 'fo:page-sequence-master' but I don't know how to skip 
from a 'fo:repeatable-page-master-alternatives' to another in 
'fo:flow'.
The  instruction don't make 
changing the current 'fo:repeatable-page-master-alternatives'

Can someone help ?


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




AW: tabel cell content bigger than table cell width

2002-02-19 Thread Nick Winger

hi !

i'm using fop version 20.1.

here is my fo:table code:








 







  






ERSATZTEILLISTE für Tracktor 500







TRACKTOR 400 - Steyr


Maschine




92342789.783


Baugruppe




















  

 

Pos

 
 
  Teilenummer   


Menge


  Beschreibung

 


  





   
 
Pos 
 
   
   Teilenummer
   
   
   Menge
   
   
   Beschreibung
   


  


greetings
nick

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag
von [EMAIL PROTECTED]
Gesendet: Montag, 18. Februar 2002 23:12
An: [EMAIL PROTECTED]
Betreff: Re: tabel cell content bigger than table cell width


Hi Nick,
Normally the text wraps by default. Are you using the latest
"maintenance version" (0.20.3)? What are your column widths? Could you
send your whole fo:table code?

-Karen

Nick Winger wrote:
>
> Hi !
>
> i have a table cell inside a table-row (inside a table) and the text in
that
> table cell
> is exceeds the width of the table-cell. Now it doesn't stop writting the
> text,
> so it appears on the next table-cell. Of course this doesn't look good.
> How can i make the text in the table-cell to break and write it in the
next
> line
> of the table-cell ?
> i've tried (as you can see ) wrap-option="wrap", but that didn't work...
> please help...
> thanks
>
>  padding-before="15pt" padding-start="2pt" padding-end="3pt"
> padding-after="3pt">"
>  font-weight="bold">"
> Some text that is larger than the table cell
> "
> "
>
> greetings
>
> Nick Winger
>
> (Software-Developer)
> ==
> VANGUARD Software GmbH
> Julius Tandler Platz 8
> 1090 Vienna, AUSTRIA
>
> Phone: +43-1-3195263-20
> Fax:   +43-1-3195263-90
> http://www.vanguard.at
> ==
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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


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




Re: [Understanding] FO Tree [3]

2002-02-19 Thread Keiron Liddle

On 2002.02.16 03:13 Peter B. West wrote:
> ** What other classes (if any) extend FONode?  Where will they be 
> discussed?

These classes will be displayed in the diagram. That should provide enough 
information to tell people where to get more information, ie. in the 
classes.


> ** Apart from end(), what methods are common to FObjs?

the handleAttributes and setUserAgent would be common to FONode. Other 
than that I would say it is yet to be finalised.

> ** How is the FO Tree represented?  How is it traversed?

The FO Tree is simple a heirarchy of java objects that represent the fo 
elements from xml. The traversal is done by the layout or structure 
process only in the flow elements.

> ** This is a big topic (Properties).  Do you have plans to discuss it in 
> more detail?

This is an entirely separate topic. It is mentioned here only in terms of 
how it relates to the FO Tree.

>> By using element mappings it is possible to read other XML and either
>> - set information on the area tree
>> - create pseudo FO Objects that create areas in the area tree
>> - create FO Objects
> 
> ** Mapping elements to classes?

I'm not sure what the question is.

> The layout-master-set is specified in a subtree isolated from the 
> content specification of the pages (see page sequences, below).
> 
> ** Where are references to these factories maintained?

The objects in the FO Tree that represent these elements are themselves 
the factory. The root element keeps these objects as a factory for the 
page sequences.

> Declarations
> 
> 
> From the spec (6.4.3)
> 
> The fo:declarations formatting object is used to group global 
> declarations for a stylesheet.
> 
> Only fo:color-profile is defined within fo:declarations.
> 
> ** "...handled by ... parent element."  fo:root?

Yes the root looks after the declarations and the declarations maintains a 
list of colour profiles.

> Page Sequences
> --
> 
> The page masters define the layout of the page containers into which the 
> substance of the document will be poured.  This substance is defined in 
> fo:page-sequences.  They contain an optional fo:title, zero or more 
> fo:static-content elements, and a single fo:flow.  They are children of 
> fo:root, and are encountered in the document tree after the 
> fo:layout-master-set has been read.
> 
> ** The fo:page-sequence elements determine the layout-master that will 
> be used for layout of their children.  How is the association between 
> page master, page-sequence (FO Tree) and area tree maintained?

Why does this matter. This will be done by the class that looks after the 
area tree whatever that is.

> Flows
> -
> 
> Flows provide the content which is poured into page containers, 
> specifically the regions.  fo:static-flows are content, associated with 
> a particular region, which repeats on each page containing such a 
> region; i.e. it does *not* flow over a page boundary.  fo:flows are the 
> primary content of a page-sequence.  They overflow individual page 
> containers (region-body containers, practically speaking) to continue in 
> the same region of the next page.
> 
> ** Which classes/methods determine how the elements of a flow are 
> processed and converted into areas in the area tree?

This is for the "Layout Managers" topic.

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