cvs commit: xml-fop/src/org/apache/fop/svg PDFAElementBridge.java PDFImageElementBridge.java PDFTextElementBridge.java PDFTranscoder.java SVGElement.java SVGUserAgent.java

2002-03-21 Thread keiron

keiron  02/03/21 01:28:44

  Modified:src/org/apache/fop/svg PDFAElementBridge.java
PDFImageElementBridge.java
PDFTextElementBridge.java PDFTranscoder.java
SVGElement.java SVGUserAgent.java
  Log:
  updated to changes in batik api
  
  Revision  ChangesPath
  1.4   +1 -2  xml-fop/src/org/apache/fop/svg/PDFAElementBridge.java
  
  Index: PDFAElementBridge.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/PDFAElementBridge.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PDFAElementBridge.java14 Aug 2001 14:50:30 -  1.3
  +++ PDFAElementBridge.java21 Mar 2002 09:28:43 -  1.4
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PDFAElementBridge.java,v 1.3 2001/08/14 14:50:30 keiron Exp $
  + * $Id: PDFAElementBridge.java,v 1.4 2002/03/21 09:28:43 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.
  @@ -12,7 +12,6 @@
   
   import org.apache.batik.bridge.*;
   
  -import org.apache.batik.css.HiddenChildElementSupport;
   import org.apache.batik.gvt.CompositeGraphicsNode;
   import org.apache.batik.gvt.GraphicsNode;
   
  
  
  
  1.2   +1 -2  xml-fop/src/org/apache/fop/svg/PDFImageElementBridge.java
  
  Index: PDFImageElementBridge.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/PDFImageElementBridge.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PDFImageElementBridge.java12 Oct 2001 06:40:13 -  1.1
  +++ PDFImageElementBridge.java21 Mar 2002 09:28:43 -  1.2
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PDFImageElementBridge.java,v 1.1 2001/10/12 06:40:13 keiron Exp $
  + * $Id: PDFImageElementBridge.java,v 1.2 2002/03/21 09:28:43 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.
  @@ -12,7 +12,6 @@
   
   import org.apache.batik.bridge.*;
   
  -import org.apache.batik.css.HiddenChildElementSupport;
   import org.apache.batik.gvt.CompositeGraphicsNode;
   import org.apache.batik.gvt.GraphicsNode;
   
  
  
  
  1.3   +2 -7  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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PDFTextElementBridge.java 19 Feb 2002 13:03:15 -  1.2
  +++ PDFTextElementBridge.java 21 Mar 2002 09:28:43 -  1.3
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PDFTextElementBridge.java,v 1.2 2002/02/19 13:03:15 keiron Exp $
  + * $Id: PDFTextElementBridge.java,v 1.3 2002/03/21 09:28:43 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.
  @@ -10,7 +10,6 @@
   import org.apache.batik.gvt.TextNode;
   import org.apache.batik.bridge.*;
   
  -import org.apache.batik.css.CSSOMReadOnlyStyleDeclaration;
   import org.apache.batik.gvt.CompositeGraphicsNode;
   import org.apache.batik.gvt.GraphicsNode;
   
  @@ -59,12 +58,8 @@
* applied to the text.
*/
   private boolean isSimple(BridgeContext ctx, Element element, GraphicsNode node) 
{
  -CSSOMReadOnlyStyleDeclaration cssDecl
  -= CSSUtilities.getComputedStyle(element);
  -UnitProcessor.Context uctx = UnitProcessor.createContext(ctx, element);
  -
   // Font size, in user space units.
  -float fs = TextUtilities.convertFontSize(element, ctx, cssDecl, uctx);
  +float fs = TextUtilities.convertFontSize(element).floatValue();
   if(((int)fs) != fs) {
   return false;
   }
  
  
  
  1.17  +3 -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.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- PDFTranscoder.java11 Mar 2002 12:57:18 -  1.16
  +++ PDFTranscoder.java21 Mar 2002 09:28:43 -  1.17
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PDFTranscoder.java,v 1.16 2002/03/11 12:57:18 keiron Exp $
  + * $Id: PDFTranscoder.java,v 1.17 2002/03/21 09:28:43 keiron Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and 

cvs commit: xml-fop/src/org/apache/fop/apps CommandLineStarter.java Driver.java

2002-03-21 Thread keiron

keiron  02/03/21 01:31:02

  Modified:src/org/apache/fop/apps CommandLineStarter.java Driver.java
  Log:
  initialise driver rather then doing too much in constructor
  
  Revision  ChangesPath
  1.13  +2 -1  xml-fop/src/org/apache/fop/apps/CommandLineStarter.java
  
  Index: CommandLineStarter.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/apps/CommandLineStarter.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- CommandLineStarter.java   4 Mar 2002 08:22:27 -   1.12
  +++ CommandLineStarter.java   21 Mar 2002 09:31:02 -  1.13
  @@ -1,5 +1,5 @@
   /*
  - * $Id: CommandLineStarter.java,v 1.12 2002/03/04 08:22:27 keiron Exp $
  + * $Id: CommandLineStarter.java,v 1.13 2002/03/21 09:31:02 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.
  @@ -58,6 +58,7 @@
   Driver driver = new Driver();
   driver.setLogger(log);
   driver.setBufferFile(commandLineOptions.getBufferFile());
  +driver.initialize();
   
   if (errorDump) {
   driver.setErrorDump(true);
  
  
  
  1.45  +11 -5 xml-fop/src/org/apache/fop/apps/Driver.java
  
  Index: Driver.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/apps/Driver.java,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- Driver.java   18 Mar 2002 12:30:46 -  1.44
  +++ Driver.java   21 Mar 2002 09:31:02 -  1.45
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Driver.java,v 1.44 2002/03/18 12:30:46 keiron Exp $
  + * $Id: Driver.java,v 1.45 2002/03/21 09:31:02 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.
  @@ -192,9 +192,6 @@
*/
   public Driver() {
   _stream = null;
  -_treeBuilder = new FOTreeBuilder();
  -_treeBuilder.setUserAgent(getUserAgent());
  -setupDefaultMappings();
   }
   
   public Driver(InputSource source, OutputStream stream) {
  @@ -203,6 +200,13 @@
   _stream = stream;
   }
   
  +public void initialize() {
  +_stream = null;
  +_treeBuilder = new FOTreeBuilder(); 
  +_treeBuilder.setUserAgent(getUserAgent());
  +setupDefaultMappings();
  +}
  +
   public void setUserAgent(FOUserAgent agent) {
   userAgent = agent;
   }
  @@ -210,7 +214,9 @@
   private FOUserAgent getUserAgent() {
   if(userAgent == null) {
   userAgent = new FOUserAgent();
  -userAgent.setLogger(log);
  +userAgent.setLogger(getLogger());
  +String base = 
org.apache.fop.configuration.Configuration.getStringValue(baseDir);
  +userAgent.setBaseURL(base);
   }
   return userAgent;
   }
  
  
  

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




cvs commit: xml-fop/src/org/apache/fop/tools AreaTreeBuilder.java

2002-03-21 Thread keiron

keiron  02/03/21 01:34:20

  Modified:src/org/apache/fop/area Area.java Block.java LineArea.java
   src/org/apache/fop/area/inline InlineArea.java
   src/org/apache/fop/render/pdf PDFRenderer.java
   src/org/apache/fop/render/xml XMLRenderer.java
   src/org/apache/fop/tools AreaTreeBuilder.java
  Added:   src/org/apache/fop/area LineTrait.java Trait.java
  Removed: src/org/apache/fop/area LineProperty.java Property.java
  Log:
  changed property to trait for areas
  added ipd to area
  
  Revision  ChangesPath
  1.5   +10 -1 xml-fop/src/org/apache/fop/area/Area.java
  
  Index: Area.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/area/Area.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Area.java 9 Nov 2001 22:02:34 -   1.4
  +++ Area.java 21 Mar 2002 09:34:19 -  1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Area.java,v 1.4 2001/11/09 22:02:34 klease Exp $
  + * $Id: Area.java,v 1.5 2002/03/21 09:34:19 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.
  @@ -46,6 +46,7 @@
   
   private int areaClass=CLASS_NORMAL;
   private FObj genFObj;
  +private int ipd;
   
   protected Area parent =null; // Doesn't need to be saved in serialization
   
  @@ -55,6 +56,14 @@
   
   public void setAreaClass(int areaClass) {
this.areaClass = areaClass;
  +}
  +
  +public void setIPD(int i) {
  +ipd = i;
  +}
  +
  +public int getIPD() {
  +return ipd;
   }
   
   /**
  
  
  
  1.5   +9 -8  xml-fop/src/org/apache/fop/area/Block.java
  
  Index: Block.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/area/Block.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Block.java8 Jan 2002 09:52:16 -   1.4
  +++ Block.java21 Mar 2002 09:34:19 -  1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Block.java,v 1.4 2002/01/08 09:52:16 keiron Exp $
  + * $Id: Block.java,v 1.5 2002/03/21 09:34:19 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.
  @@ -59,16 +59,17 @@
   }
   
   // store properties in array list, need better solution
  -ArrayList props = null;
  +ArrayList traits = null;
   
  -public void addProperty(Property prop) {
  -if (props == null) {
  -props = new ArrayList();
  +public void addTrait(Trait prop) {
  +if (traits == null) {
  +traits = new ArrayList();
   }
  -props.add(prop);
  +traits.add(prop);
   }
   
  -public List getPropertyList() {
  -return props;
  +public List getTraitList() {
  +return traits;
   }
   }
  +
  
  
  
  1.3   +3 -3  xml-fop/src/org/apache/fop/area/LineArea.java
  
  Index: LineArea.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/area/LineArea.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LineArea.java 26 Oct 2001 09:26:59 -  1.2
  +++ LineArea.java 21 Mar 2002 09:34:19 -  1.3
  @@ -1,5 +1,5 @@
   /*
  - * $Id: LineArea.java,v 1.2 2001/10/26 09:26:59 keiron Exp $
  + * $Id: LineArea.java,v 1.3 2002/03/21 09:34:19 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.
  @@ -50,14 +50,14 @@
   // store properties in array list, need better solution
   ArrayList props = null;
   
  -public void addProperty(Property prop) {
  +public void addTrait(Trait prop) {
   if (props == null) {
   props = new ArrayList();
   }
   props.add(prop);
   }
   
  -public List getPropertyList() {
  +public List getTraitList() {
   return props;
   }
   }
  
  
  
  1.1  xml-fop/src/org/apache/fop/area/LineTrait.java
  
  Index: LineTrait.java
  ===
  /*
   * $Id: LineTrait.java,v 1.1 2002/03/21 09:34:19 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.
   */
  
  package org.apache.fop.area;
  
  public class LineTrait extends Trait {
  int[] range;
  }
  
  
  
  
  1.1  

cvs commit: xml-fop/src/org/apache/fop/render/pdf PDFXMLHandler.java

2002-03-21 Thread keiron

keiron  02/03/21 01:37:15

  Modified:src/org/apache/fop/fo FOText.java FOUserAgent.java
FObjMixed.java
   src/org/apache/fop/fo/flow Block.java
InstreamForeignObject.java
   src/org/apache/fop/image ImageLoader.java
   src/org/apache/fop/image/analyser SVGReader.java
XMLReader.java
   src/org/apache/fop/layoutmgr AbstractLayoutManager.java
BlockLayoutManager.java LayoutManager.java
LineLayoutManager.java PageLayoutManager.java
TextLayoutManager.java
   src/org/apache/fop/render RendererContext.java
   src/org/apache/fop/render/pdf PDFXMLHandler.java
  Added:   src/org/apache/fop/fo TextInfo.java
  Log:
  a simple impl of getting ipd and line height
  some adjustments to user agent
  
  Revision  ChangesPath
  1.31  +1 -17 xml-fop/src/org/apache/fop/fo/FOText.java
  
  Index: FOText.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FOText.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- FOText.java   8 Mar 2002 15:41:47 -   1.30
  +++ FOText.java   21 Mar 2002 09:37:14 -  1.31
  @@ -1,5 +1,5 @@
   /*
  - * $Id: FOText.java,v 1.30 2002/03/08 15:41:47 keiron Exp $
  + * $Id: FOText.java,v 1.31 2002/03/21 09:37: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.
  @@ -35,22 +35,6 @@
   protected int start;
   protected int length;
   TextInfo textInfo;
  -
  -public static class TextInfo {
  -public FontState fs;
  -public float red;
  -public float green;
  -public float blue;
  -public int wrapOption;
  -public int whiteSpaceCollapse;
  -public int verticalAlign;
  -
  -// Textdecoration
  -public boolean underlined = false;
  -public boolean overlined = false;
  -public boolean lineThrough = false;
  -}
  -
   TextState ts;
   
   public FOText(char[] chars, int s, int e, TextInfo ti) {
  
  
  
  1.7   +16 -4 xml-fop/src/org/apache/fop/fo/FOUserAgent.java
  
  Index: FOUserAgent.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FOUserAgent.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- FOUserAgent.java  22 Feb 2002 09:18:47 -  1.6
  +++ FOUserAgent.java  21 Mar 2002 09:37:14 -  1.7
  @@ -1,5 +1,5 @@
   /*
  - * $Id: FOUserAgent.java,v 1.6 2002/02/22 09:18:47 keiron Exp $
  + * $Id: FOUserAgent.java,v 1.7 2002/03/21 09:37: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.
  @@ -44,14 +44,25 @@
   return log;
   }
   
  -public void setBaseDirectory(String b) {
  +public void setBaseURL(String b) {
   base = b;
   }
   
  -public String getBaseDirectory() {
  +public String getBaseURL() {
   return base;
   }
   
  +public float getPixelToMM() {
  +return 0.3528f;
  +}
  +
  +/**
  + * If to create hot links to footnotes and before floats.
  + */
  +public boolean linkToFootnotes() {
  +return true;
  +}
  +
   /**
* Set the default xml handler for the given mime type.
*/
  @@ -92,10 +103,11 @@
   handler.handleXML(ctx, doc, namespace);
   } catch (Throwable t) {
   // could not handle document
  -ctx.getLogger().error(Could not render XML, t);
  +log.error(Could not render XML, t);
   }
   } else {
   // no handler found for document
  +log.debug(No handler defined for XML:  + namespace);
   }
   }
   }
  
  
  
  1.19  +4 -8  xml-fop/src/org/apache/fop/fo/FObjMixed.java
  
  Index: FObjMixed.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FObjMixed.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- FObjMixed.java21 Nov 2001 22:13:36 -  1.18
  +++ FObjMixed.java21 Mar 2002 09:37:14 -  1.19
  @@ -1,5 +1,5 @@
   /*
  - * $Id: FObjMixed.java,v 1.18 2001/11/21 22:13:36 klease Exp $
  + * $Id: FObjMixed.java,v 1.19 2002/03/21 09:37:14 keiron Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution 

cvs commit: xml-fop/contrib/plan/src/org/apache/fop/plan ActionInfo.java EventList.java GroupInfo.java Main.java PlanElement.java PlanElementMapping.java PlanHints.java PlanObj.java PlanRenderer.java SimplePlanDrawer.java

2002-03-21 Thread keiron

keiron  02/03/21 02:02:14

  Modified:contrib/plan/src/org/apache/fop/plan ActionInfo.java
EventList.java GroupInfo.java Main.java
PlanElement.java PlanElementMapping.java
PlanHints.java PlanObj.java PlanRenderer.java
SimplePlanDrawer.java
  Log:
  cleaned up imports
  
  Revision  ChangesPath
  1.2   +2 -20 xml-fop/contrib/plan/src/org/apache/fop/plan/ActionInfo.java
  
  Index: ActionInfo.java
  ===
  RCS file: /home/cvs/xml-fop/contrib/plan/src/org/apache/fop/plan/ActionInfo.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ActionInfo.java   5 Mar 2002 10:58:46 -   1.1
  +++ ActionInfo.java   21 Mar 2002 10:02:13 -  1.2
  @@ -1,4 +1,4 @@
  -/* $Id: ActionInfo.java,v 1.1 2002/03/05 10:58:46 keiron Exp $
  +/* $Id: ActionInfo.java,v 1.2 2002/03/21 10:02:13 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.
  @@ -6,25 +6,7 @@
   
   package org.apache.fop.plan;
   
  -import java.util.*;
  -import java.text.*;
  -import java.awt.*;
  -import java.awt.geom.AffineTransform;
  -import java.awt.geom.Rectangle2D;
  -import java.awt.font.FontRenderContext;
  -
  -import org.apache.fop.fo.*;
  -import org.apache.fop.fo.properties.*;
  -import org.apache.fop.layout.*;
  -import org.apache.fop.apps.*;
  -import org.apache.fop.datatypes.*;
  -import org.apache.fop.layout.inline.*;
  -import org.apache.fop.svg.*;
  -import org.w3c.dom.*;
  -import org.w3c.dom.svg.*;
  -import org.w3c.dom.css.*;
  -
  -import org.apache.batik.dom.svg.SVGDOMImplementation;
  +import java.util.Date;
   
   public class ActionInfo {
   Date startDate;
  
  
  
  1.2   +2 -20 xml-fop/contrib/plan/src/org/apache/fop/plan/EventList.java
  
  Index: EventList.java
  ===
  RCS file: /home/cvs/xml-fop/contrib/plan/src/org/apache/fop/plan/EventList.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- EventList.java5 Mar 2002 10:58:46 -   1.1
  +++ EventList.java21 Mar 2002 10:02:13 -  1.2
  @@ -1,4 +1,4 @@
  -/* $Id: EventList.java,v 1.1 2002/03/05 10:58:46 keiron Exp $
  +/* $Id: EventList.java,v 1.2 2002/03/21 10:02:13 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.
  @@ -6,25 +6,7 @@
   
   package org.apache.fop.plan;
   
  -import java.util.*;
  -import java.text.*;
  -import java.awt.*;
  -import java.awt.geom.AffineTransform;
  -import java.awt.geom.Rectangle2D;
  -import java.awt.font.FontRenderContext;
  -
  -import org.apache.fop.fo.*;
  -import org.apache.fop.fo.properties.*;
  -import org.apache.fop.layout.*;
  -import org.apache.fop.apps.*;
  -import org.apache.fop.datatypes.*;
  -import org.apache.fop.layout.inline.*;
  -import org.apache.fop.svg.*;
  -import org.w3c.dom.*;
  -import org.w3c.dom.svg.*;
  -import org.w3c.dom.css.*;
  -
  -import org.apache.batik.dom.svg.SVGDOMImplementation;
  +import java.util.ArrayList;
   
   public class EventList {
   ArrayList data = new ArrayList();
  
  
  
  1.2   +2 -20 xml-fop/contrib/plan/src/org/apache/fop/plan/GroupInfo.java
  
  Index: GroupInfo.java
  ===
  RCS file: /home/cvs/xml-fop/contrib/plan/src/org/apache/fop/plan/GroupInfo.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- GroupInfo.java5 Mar 2002 10:58:46 -   1.1
  +++ GroupInfo.java21 Mar 2002 10:02:13 -  1.2
  @@ -1,4 +1,4 @@
  -/* $Id: GroupInfo.java,v 1.1 2002/03/05 10:58:46 keiron Exp $
  +/* $Id: GroupInfo.java,v 1.2 2002/03/21 10:02:13 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.
  @@ -6,25 +6,7 @@
   
   package org.apache.fop.plan;
   
  -import java.util.*;
  -import java.text.*;
  -import java.awt.*;
  -import java.awt.geom.AffineTransform;
  -import java.awt.geom.Rectangle2D;
  -import java.awt.font.FontRenderContext;
  -
  -import org.apache.fop.fo.*;
  -import org.apache.fop.fo.properties.*;
  -import org.apache.fop.layout.*;
  -import org.apache.fop.apps.*;
  -import org.apache.fop.datatypes.*;
  -import org.apache.fop.layout.inline.*;
  -import org.apache.fop.svg.*;
  -import org.w3c.dom.*;
  -import org.w3c.dom.svg.*;
  -import org.w3c.dom.css.*;
  -
  -import org.apache.batik.dom.svg.SVGDOMImplementation;
  +import java.util.ArrayList;
   
   public class 

cvs commit: xml-fop/docs/xml-docs fop.xml

2002-03-21 Thread keiron

keiron  02/03/21 02:05:45

  Modified:docs/xml-docs fop.xml
  Log:
  fixed spelling of output
  
  Revision  ChangesPath
  1.14  +1 -1  xml-fop/docs/xml-docs/fop.xml
  
  Index: fop.xml
  ===
  RCS file: /home/cvs/xml-fop/docs/xml-docs/fop.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- fop.xml   17 Mar 2002 17:43:55 -  1.13
  +++ fop.xml   21 Mar 2002 10:05:44 -  1.14
  @@ -9,7 +9,7 @@
separator/
page id=running label=Running FOP source=fop/running.xml/
page id=embedding label=Embedding source=fop/embedding.xml/
  - page id=output label=Ouput Formats source=fop/output.xml/
  + page id=output label=Output Formats source=fop/output.xml/
page id=implemented label=Features source=fop/implemented.xml/
page id=todo label=TODO source=fop/todo.xml/
page id=limitations label=Limitations source=fop/limitations.xml/
  
  
  

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




cvs commit: xml-fop/lib batik.jar readme

2002-03-21 Thread keiron

keiron  02/03/21 02:07:44

  Modified:lib  batik.jar readme
  Log:
  updated batik for api changes
  
  Revision  ChangesPath
  1.7   +6881 -8874xml-fop/lib/batik.jar
  
Binary file
  
  
  1.8   +1 -1  xml-fop/lib/readme
  
  Index: readme
  ===
  RCS file: /home/cvs/xml-fop/lib/readme,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- readme18 Feb 2002 08:59:12 -  1.7
  +++ readme21 Mar 2002 10:07:43 -  1.8
  @@ -7,7 +7,7 @@
   the test scripts. see build.xml in root for more information
   
   batik.jar
  -cvs 29/10/2001
  +cvs 21/03/2002
   created from all-jar build target
   the svg library from Batik at xml.apache.org
   
  
  
  

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




pb FOP 0.20 and servlet

2002-03-21 Thread Jean-François Selber

somebody can help me?
I used FOP 0.20.1 and I want to call a servlet to add an image in my pdf
document

FOP code:
fo:block
fo:external-graphic
src=url:http://titane.oxymel.com:8080/statsfeftt/StatsDepartement?typeStats
=graph13mois height=3.41cm width=23.81cm/
/fo:block

bug:
Error while creating area : Invalid Image URL - error on relative URL : no
protocol: null/statsfeftt/StatsDepartement?typeStats=graph13mois

there is no problem when I do:
fo:block
fo:external-graphic
src=url:http://titane.oxymel.com:8080/statsfeftt/images/chrono2.jpg;
height=3.41cm width=23.81cm/
/fo:block
but it is not what I want to do :-)

Thanks a lot
Jean-Francois Selber






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




SV: Corrupt PDF files?

2002-03-21 Thread Klosa Uwe


smime.p7m
Description: application/pkcs7-mime


DO NOT REPLY [Bug 7323] New: - Content overflow in fo:table-cell if content too long

2002-03-21 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7323.
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=7323

Content overflow in fo:table-cell if content too long

   Summary: Content overflow in fo:table-cell if content too long
   Product: Fop
   Version: 0.20.3
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: page-master/layout
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


If a fo:table-cell contains a single word (consisting only of characters) that does 
not fit into 
the cell's block area (i.e., it is too long), that word is outputted anyway, 
overlapping with any 
content on the right side to the cell.

I prepared an example .fo file which demonstrates he 
problem:

?xml version=1.0 encoding=iso-8859-1?
fo:root 
xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
fo:simple-
page-master widows=3 orphans=3 margin-right=20mm margin-left=20mm margin-
bottom=20mm margin-top=20mm page-width=210mm page-height=297mm 
master-name=a4
  
fo:region-before extent=10mm/
  fo:region-body margin-bottom=10mm margin-
top=10mm/
  fo:region-after extent=10mm/
/fo:simple-page-master
  /fo:layout-
master-set
  fo:page-sequence master-reference=a4
fo:flow flow-name=xsl-region-
body
  fo:table
fo:table-column column-width=30mm/
fo:table-column column-
width=140mm/
fo:table-header border-bottom-width=1pt border-bottom-
style=solid
  fo:table-row
fo:table-cell border-end-style=solid border-end-
width=1pt
  fo:block font-size=10pt font-weight=bold margin-left=2pt margin-
right=2ptDatum/fo:block
/fo:table-cell
fo:table-cell border-end-
style=solid
  fo:block font-size=10pt font-weight=bold margin-left=2pt margin-
right=2ptMassnahme/fo:block
/fo:table-cell
  /fo:table-row
/fo:table-
header
fo:table-body
  fo:table-row
fo:table-cell border-end-style=solid
  
fo:block font-size=10pt text-align=start font-weight=normal 
padding-before=10pt 
margin-left=2pt margin-right=2pt21.03.2002 13:59:37/fo:block
/fo:table-cell

fo:table-cell inline-progression-dimension=95mm block-progression-dimension=95mm 
width=95mm border-end-style=solid

  !-- CRITICAL LINE START --
  fo:block font-
size=10pt text-align=start font-weight=normal padding-before=10pt margin-
left=2pt margin-
right=2ptDiesisteinTestobeinüberlangeswortüberdenrandhinausgeschriebenwirdodernichtmalschauenwennjagibtseinproblem:)/fo:block
 
 !-- CRITICAL LINE END --
/fo:table-cell
  /fo:table-row
/fo:table-body
  
/fo:table
/fo:flow
  /fo:page-sequence
/fo:root

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




Re: development status

2002-03-21 Thread Arnd Beißner

Peter B. West wrote:
 Convergence problems like your page 99 scenario occur in other contexts; 
 notably the last page problem. The last page in a sequence is allowed 
 a different page-master, but the only way to discover the last page is 
 to lay it out. Oops, last page. Lay it out again, using the 
 last-page-master. Oops, we now have something left over, so it's not 
 the last page any more. These cases will have to be catalogued as 
 discovered, and circuit-breaker heuristics provided for them.

Yes, and the only way around the performance and memory issues this raises
is to write FOP in a way where any forward-reference related handling is
only executed if forward-references really occur.

Then, if someone has large documents and doesn't care about forward references,
the solution is either to:
1. manually remove the forward references in the document
2. remove the forward references using an XSLT stylesheet if the users want
 to toggle between a fast and a slow version.
3. implement a FOP option that ignores forward references and replaces them
 by a * - or whatever.

Anyhow, in my opinion this is worth doing right. From my experience (which
is from large-volume printing, between 5.000 and 50.000 docs per job),
if someone wants forward references in a doc (even if it's only page x of y
in a contract or invoice) he or she usually really wants it and doesn't care
about performance or memory. If, for example, I am printing an invoice and
absolute need to have page counts (like page 1 of 2) for legal reasons,
then - if this gives me performance problems - I can still try to help the
formatter by introducing fixed page breaks or other things that at least
avoid formatting cycles after the second.

Arnd Beissner
--
Arnd Beißner IT-Engineering
Bahnhofstr. 3, 71063 Sindelfingen, Germany
Email: [EMAIL PROTECTED]
Phone: +49-7031-463458
Mobile: +49-173-3016917


Re: [Fwd: Numbering lines]

2002-03-21 Thread Patrick Andries

 I would like to be able to reset (optionally) the line number at 
 column or page break.
 I did not find much info on the Layouter... Could someone give me a 
 little pointer (for instance, where page and column break are detected).

Thanks

Patrick Andries



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




cvs commit: xml-fop/src/org/apache/fop/tools/anttasks Fop.java

2002-03-21 Thread chrisg

chrisg  02/03/21 09:18:05

  Modified:docs/examples/embedding Tag: fop-0_20_2-maintain
FopPrintServlet.java FopServlet.java
   src/org/apache/fop/apps Tag: fop-0_20_2-maintain
CommandLineOptions.java
   src/org/apache/fop/datatypes Tag: fop-0_20_2-maintain
ToBeImplementedProperty.java
   src/org/apache/fop/messaging Tag: fop-0_20_2-maintain
MessageHandler.java
   src/org/apache/fop/tools Tag: fop-0_20_2-maintain
TestConverter.java
   src/org/apache/fop/tools/anttasks Tag: fop-0_20_2-maintain
Fop.java
  Log:
  changed MessageHandler and servlet examples to use
  org.apache.avalon.framework.logger.Logger
  
  Submitted by: Michael Gratton [EMAIL PROTECTED]
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.1.2.3   +8 -8  xml-fop/docs/examples/embedding/Attic/FopPrintServlet.java
  
  Index: FopPrintServlet.java
  ===
  RCS file: /home/cvs/xml-fop/docs/examples/embedding/Attic/FopPrintServlet.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- FopPrintServlet.java  1 Mar 2002 12:44:39 -   1.1.2.2
  +++ FopPrintServlet.java  21 Mar 2002 17:18:05 -  1.1.2.3
  @@ -1,5 +1,5 @@
   /*
  - * $Id: FopPrintServlet.java,v 1.1.2.2 2002/03/01 12:44:39 chrisg Exp $
  + * $Id: FopPrintServlet.java,v 1.1.2.3 2002/03/21 17:18:05 chrisg Exp $
* Copyright (C) 2002 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
  @@ -21,10 +21,12 @@
   import org.apache.fop.layout.Page;
   import org.apache.fop.apps.Version;
   import org.apache.fop.apps.XSLTInputHandler;
  +import org.apache.fop.messaging.MessageHandler;
   
   import org.apache.fop.render.awt.AWTRenderer ;
   
  -import org.apache.log.*;
  +import org.apache.avalon.framework.logger.ConsoleLogger;
  +import org.apache.avalon.framework.logger.Logger;
   
   /**
* Example servlet to generate a fop printout from a servlet.
  @@ -40,13 +42,12 @@
* - servlet_2_2.jar
* - fop.jar
* - sax api
  - * - logkit jar
  + * - avalon-framework-x.jar (where x is the version found the FOP lib dir)
*
* Running: you will need in the WEB-INF/lib/ directory:
* - fop.jar
* - batik.jar
  - * - avalon-framework-4.0.jar
  - * - logkit-1.0.jar
  + * - avalon-framework-x.jar (where x is the version found the FOP lib dir)
* - xalan-2.0.0.jar
*/

  @@ -62,9 +63,8 @@
 {
   if (log == null) 
 {
  -Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
  -log = hierarchy.getLoggerFor(fop);
  -log.setPriority(Priority.WARN);
  +  log = new ConsoleLogger(ConsoleLogger.LEVEL_WARN);
  +  MessageHandler.setScreenLogger(log);
 }
   
   try  
  
  
  
  1.4.2.2   +8 -8  xml-fop/docs/examples/embedding/FopServlet.java
  
  Index: FopServlet.java
  ===
  RCS file: /home/cvs/xml-fop/docs/examples/embedding/FopServlet.java,v
  retrieving revision 1.4.2.1
  retrieving revision 1.4.2.2
  diff -u -r1.4.2.1 -r1.4.2.2
  --- FopServlet.java   1 Mar 2002 12:44:39 -   1.4.2.1
  +++ FopServlet.java   21 Mar 2002 17:18:05 -  1.4.2.2
  @@ -1,5 +1,5 @@
   /*
  - * $Id: FopServlet.java,v 1.4.2.1 2002/03/01 12:44:39 chrisg Exp $
  + * $Id: FopServlet.java,v 1.4.2.2 2002/03/21 17:18:05 chrisg 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.
  @@ -16,8 +16,10 @@
   import org.apache.fop.apps.Driver;
   import org.apache.fop.apps.Version;
   import org.apache.fop.apps.XSLTInputHandler;
  +import org.apache.fop.messaging.MessageHandler;
   
  -import org.apache.log.*;
  +import org.apache.avalon.framework.logger.ConsoleLogger;
  +import org.apache.avalon.framework.logger.Logger;
   
   /**
* Example servlet to generate a PDF from a servlet.
  @@ -32,14 +34,13 @@
* - servlet_2_2.jar
* - fop.jar
* - sax api
  - * - logkit jar
  + * - avalon-framework-x.jar (where x is the version found the FOP lib dir)
*
* Running: you will need in the WEB-INF/lib/ directory:
* - fop.jar
* - batik.jar
  - * - avalon-framework-4.0.jar
  - * - logkit-1.0.jar
* - xalan-2.0.0.jar
  + * - avalon-framework-x.jar (where x is the version found the FOP lib dir)
*/
   public class FopServlet extends HttpServlet {
   public static final String FO_REQUEST_PARAM = fo;
  @@ -50,9 +51,8 @@
   public void doGet(HttpServletRequest request,
  

Re: [Fwd: Numbering lines]

2002-03-21 Thread Patrick Andries

OK, thanks I don't need help anymore. I found it and coded it.

Patrick Andries wrote:

 I would like to be able to reset (optionally) the line number at 
 column or page break.
 I did not find much info on the Layouter... Could someone give me a 
 little pointer (for instance, where page and column break are detected).


 Thanks

 Patrick Andries



 -
 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: Logging work: MessageHandler patch

2002-03-21 Thread Christian Geisert

Michael Gratton wrote:
  There was a problem with MessageHandler.error() in that patch. The
  attached patch fixes that and makes MessageHandler.log() a bit more
  readable. It also includes a fix for the outstanding
  ToBeImplementedProperty problem - by using MessageHandler.

I've committed both (the second MessageHandler patch and the one for
the servlet examples, but still need to re-create the war file..)

  Note that the document patch on the previous message is still valid.

Err .. the documentation is done in the main branch only and as
Jeremias has already made some changes I need to have a closer look
if the patch still applies.

  Mike.

Thanks for your contribution,
Christian



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




How format to dot-matrix printers (ESC/P)

2002-03-21 Thread Clóvis Wichoski

Hi FOP team,

I'm using FOP for generating PDF's, but now I need use FOP to generate 
text files (txt) for dot-matrix printers using Epson ESC/P, and I have 
following questions:

1) I need create my own Renderer?
 if yes, what I need to share this with FOP-DEV

2) Can I do this with TXTRenderer?
 if yes, How put chars like CHR(27) CHR(18) in txt?

Best regards

Clóvis Wichoski
Supridatta


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




Re: from FOP list: centered tables

2002-03-21 Thread Roland

At 12:26 PM 3/21/02 -0500, you wrote:
Did you ever get a solution to this?

Yes,
what we did was the following:
A is the table you want to center. The width of A is w-a. The width of the 
page is w-p.
Now make a new table B with 3 columns.
The width of the columns of B are:
1  3 column: (w-p - w-a)/2
2 column: w-a.

Let the 1. and 3. column be empty and put the table A into the second 
column and it will make a centered table.

Cumbersome, but it works...

And we let the stylesheet do all the calculations. Just make the following 
template and call it using xsl:call-template ...
The template will not only center tables but any object:

xsl:template name=makeCenteredPage
   xsl:param name=pageW/   !-- the page width --
   xsl:param name=objW/  !-- the object width --
   xsl:param name=obj/  !-- the object itself, will be called trough a 
xsl:apply template --

   !-- make a Table with one centered column --
   xsl:message
 makeCentered:
 objW = xsl:value-of select=$objW/
 pageW = xsl:value-of select=$pageW/
   /xsl:message
   xsl:comment Centered table /xsl:comment
   fo:table
 fo:table-column column-width={($pageW - $objW) div 2}cm 
background-color=#ff/
 fo:table-column column-width={$objW}cm background-color=#ff/
 fo:table-column column-width={($pageW - $objW) div 2}cm 
background-color=#ff/
 fo:table-body
   fo:table-row
 fo:table-cell number-columns-spanned=1 vertical-align=middle
 background-color=#ff space-before=27pt 
padding-top=2pt
 padding-bottom=2pt padding-left=15pt
 /fo:table-cell
 fo:table-cell vertical-align=middle background-color=#ff
   xsl:apply-templates select=$obj/
 /fo:table-cell
 fo:table-cell number-columns-spanned=1 vertical-align=middle
   background-color=#ff space-before=27pt 
padding-top=2pt
   padding-bottom=2pt padding-left=15pt
 /fo:table-cell
   /fo:table-row
 /fo:table-body
   /fo:table
/xsl:template

Hope it helps you...

Roland


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




RE: How format to dot-matrix printers (ESC/P)

2002-03-21 Thread Art Welch

My first suggestion would be to use Acrobat or something to print the PDFs.

Second (or maybe it should be first) would be to use the AWT based print
renderer to print to the printer. I have not used this, but shouldn't AWT be
able to print to any printer for which it has a suitable driver. Maybe this
works better under M$ Windows. Most of my work these days is with Unix and
until recently on our systems AWT did not work well and when it did I think
that it would only print PostScript. YMMV.

Next if the formatting is not very fancy then I would suggest generating the
text/ESCP using just XSLT (with an extension function for the special
characters). 

The TXTRenderer assumes that the font for output does not change. Last time
I checked ESC/P printers should accept plain ASCII text without the need for
additional control codes (other than CR,LF). This is what the TXTRenderer
produces. The problem is that with the exception of some special cases, the
output produced by the TXTRenderer is UGLY.

As to CHR(18) and CHR(27), I guess that may depend on how the XML parser
interprets legal characters of Unicode and ISO/IEC 10646 (from the XML W3C
Rec). Being below CHR(32) I suspect that they will probably be rejected as
not a valid XML character.

If you want pretty output and can not post process one of the current output
formats then you are probably looking at a new renderer.

Art

-Original Message-
From: Clóvis Wichoski [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 12:59 PM
To: [EMAIL PROTECTED]
Subject: How format to dot-matrix printers (ESC/P)


Hi FOP team,

I'm using FOP for generating PDF's, but now I need use FOP to generate 
text files (txt) for dot-matrix printers using Epson ESC/P, and I have 
following questions:

1) I need create my own Renderer?
 if yes, what I need to share this with FOP-DEV

2) Can I do this with TXTRenderer?
 if yes, How put chars like CHR(27) CHR(18) in txt?

Best regards

Clóvis Wichoski
Supridatta


-
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: How format to dot-matrix printers (ESC/P)

2002-03-21 Thread Clóvis Wichoski


I'm already using PDFs to print, but some dot-matrix printers are too 
slow to print graphics.

the question about chars, it is because I need print in condensed mode 
CHR(18) and 8 lines per inch CHR(27)+CHR(0)

the question about new Renderer it is because we can make a standard for 
print in ESC/P using FO also.

Would be interresting implement this?
Or 
Extend TXTRenderer to make this?

Clóvis
 Original Message 

On 21/03/02, 16:08:40, Art Welch [EMAIL PROTECTED] wrote regarding RE: 
How format to dot-matrix printers (ESC/P):


 My first suggestion would be to use Acrobat or something to print the 
PDFs.

 Second (or maybe it should be first) would be to use the AWT based print
 renderer to print to the printer. I have not used this, but shouldn't AWT 
be
 able to print to any printer for which it has a suitable driver. Maybe 
this
 works better under M$ Windows. Most of my work these days is with Unix 
and
 until recently on our systems AWT did not work well and when it did I 
think
 that it would only print PostScript. YMMV.

 Next if the formatting is not very fancy then I would suggest generating 
the
 text/ESCP using just XSLT (with an extension function for the special
 characters).

 The TXTRenderer assumes that the font for output does not change. Last 
time
 I checked ESC/P printers should accept plain ASCII text without the need 
for
 additional control codes (other than CR,LF). This is what the TXTRenderer
 produces. The problem is that with the exception of some special cases, 
the
 output produced by the TXTRenderer is UGLY.

 As to CHR(18) and CHR(27), I guess that may depend on how the XML parser
 interprets legal characters of Unicode and ISO/IEC 10646 (from the XML 
W3C
 Rec). Being below CHR(32) I suspect that they will probably be rejected 
as
 not a valid XML character.

 If you want pretty output and can not post process one of the current 
output
 formats then you are probably looking at a new renderer.

 Art

 -Original Message-
 From: Clóvis Wichoski [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 21, 2002 12:59 PM
 To: [EMAIL PROTECTED]
 Subject: How format to dot-matrix printers (ESC/P)


 Hi FOP team,

 I'm using FOP for generating PDF's, but now I need use FOP to generate
 text files (txt) for dot-matrix printers using Epson ESC/P, and I have
 following questions:

 1) I need create my own Renderer?
  if yes, what I need to share this with FOP-DEV

 2) Can I do this with TXTRenderer?
  if yes, How put chars like CHR(27) CHR(18) in txt?

 Best regards

 Clóvis Wichoski
 Supridatta


 -
 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]




DO NOT REPLY [Bug 7337] New: - border around external image leaves empty space

2002-03-21 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7337.
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=7337

border around external image leaves empty space

   Summary: border around external image leaves empty space
   Product: Fop
   Version: 0.20.3
  Platform: PC
OS/Version: Other
Status: NEW
  Severity: Normal
  Priority: Other
 Component: images
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The sizes on external images (JPG) seem to be 1 or 2 pixels off.

When I use:

fo:block 
border=1px solid black
fo:external-graphic 
src=url('file:winkelpui_splash.jpg')/
/fo:block

there is an empty space 
between the top-border and the image, and between the bottom border and the image.

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




Re: [Fwd: Numbering lines]

2002-03-21 Thread Patrick Andries

OK, I have hacked (for my own understanding) something that seems to 
work. Now I would like to be able to reset (optionally) the line number 
at column or page break.
I did not find much info on the Layouter... Could someone give me a 
little pointer (for instance, where page and column break are detected).

Patrick Andries

 

Patrick Andries wrote:


 OK, how can I help implementing it ?


 Arved Sandstrom wrote:

 Hi, Patrick

 Yes, this would be useful. All you can do now is if you know the 
 lines ahead
 of time; then you can use XSLT xsl:number if your source XML permits. 
 But
 for what you are talking about, no, XSL formatting does not have a 
 way of
 doing it, although one can certainly imagine an extension that extends
 layout for each LineArea.

 Regards,
 AHS

 -Original Message-
 From: Patrick Andries [mailto:[EMAIL PROTECTED]]
 Sent: March 20, 2002 7:47 PM
 To: [EMAIL PROTECTED]
 Subject: [Fwd: Numbering lines]


 I sent the message to fop-user, no one answered. If this is not possible
 (probable), would the extension be simple (useful in legislative text).


  Message d'origine 
 Objet: Numbering lines

 Is it possible to dynamically number lines in FO ?

 P. Andries


 -
 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: How format to dot-matrix printers (ESC/P)

2002-03-21 Thread Art Welch

If all you need to do is set compressed mode and the TXTrenderer produces
acceptable output for you then you could open the output stream, send the
desired escape sequence then call FOP with the TXTRenderer passing it the
stream.

Another idea if you are using M$ Windows may be to use a different printer
driver. Windows used to have a plain text driver. If they still do (I just
checked on my Win2K workstation and they have Generic/Text Only in the
driver list), maybe Acrobat could print to this.

A Renderer for Epson printers would be interesting, although I suspect that
ESC/P2 would probably be more popular. Targeting Epson's popular color ink
jet printers vs. the dot matrix.

It would probably be better to start with the PCL renderer as a base for an
ESC/P renderer.

Art

-Original Message-
From: Clóvis Wichoski [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 4:00 PM
To: [EMAIL PROTECTED]
Subject: RE: How format to dot-matrix printers (ESC/P)



I'm already using PDFs to print, but some dot-matrix printers are too 
slow to print graphics.

the question about chars, it is because I need print in condensed mode 
CHR(18) and 8 lines per inch CHR(27)+CHR(0)

the question about new Renderer it is because we can make a standard for 
print in ESC/P using FO also.

Would be interresting implement this?
Or 
Extend TXTRenderer to make this?

Clóvis
 Original Message 

On 21/03/02, 16:08:40, Art Welch [EMAIL PROTECTED] wrote regarding RE: 
How format to dot-matrix printers (ESC/P):


 My first suggestion would be to use Acrobat or something to print the 
PDFs.

 Second (or maybe it should be first) would be to use the AWT based print
 renderer to print to the printer. I have not used this, but shouldn't AWT 
be
 able to print to any printer for which it has a suitable driver. Maybe 
this
 works better under M$ Windows. Most of my work these days is with Unix 
and
 until recently on our systems AWT did not work well and when it did I 
think
 that it would only print PostScript. YMMV.

 Next if the formatting is not very fancy then I would suggest generating 
the
 text/ESCP using just XSLT (with an extension function for the special
 characters).

 The TXTRenderer assumes that the font for output does not change. Last 
time
 I checked ESC/P printers should accept plain ASCII text without the need 
for
 additional control codes (other than CR,LF). This is what the TXTRenderer
 produces. The problem is that with the exception of some special cases, 
the
 output produced by the TXTRenderer is UGLY.

 As to CHR(18) and CHR(27), I guess that may depend on how the XML parser
 interprets legal characters of Unicode and ISO/IEC 10646 (from the XML 
W3C
 Rec). Being below CHR(32) I suspect that they will probably be rejected 
as
 not a valid XML character.

 If you want pretty output and can not post process one of the current 
output
 formats then you are probably looking at a new renderer.

 Art

 -Original Message-
 From: Clóvis Wichoski [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 21, 2002 12:59 PM
 To: [EMAIL PROTECTED]
 Subject: How format to dot-matrix printers (ESC/P)


 Hi FOP team,

 I'm using FOP for generating PDF's, but now I need use FOP to generate
 text files (txt) for dot-matrix printers using Epson ESC/P, and I have
 following questions:

 1) I need create my own Renderer?
  if yes, what I need to share this with FOP-DEV

 2) Can I do this with TXTRenderer?
  if yes, How put chars like CHR(27) CHR(18) in txt?

 Best regards

 Clóvis Wichoski
 Supridatta


 -
 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]

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




AW: printing problem with generated pdf

2002-03-21 Thread Joerg Zielsdorf

Hello,
I packed the resulting PDF to this message. Acrobat Reader shows it
properly, but doesn´t print it out correctly. The used printer is a post script
printer from HP (HP LJ8000).

Thanks,
Joerg

-Ursprüngliche Nachricht-
Von: Joerg Zielsdorf [mailto:[EMAIL PROTECTED]] 
Gesendet: Montag, 18. März 2002 17:43
An: [EMAIL PROTECTED]
Betreff: printing problem with generated pdf


Hello,
I have got this problem:
when I generate a pdf via fop 0.20.03rc and want to print it from Acrobat
Reader on a post script printer HP LJ 8000, the characters in bold where
printed not in the right way. I use Win2K and Acrobat Reader 4.0. One thing is that
I use Arial font as in this list described. Whith Times there is no problem.
Does anybody knows something about this? Thanks,

Joerg


-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


something.pdf
Description: Adobe PDF document

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


Re: PS and PDF Rendering Different

2002-03-21 Thread Jeremias Maerki

 I use FOP to generate PDF files from XML data retrieved from a database.
 The PDFs generate just fine.  However, when I tell FOP to render postscript
 the output file is often corrupt.  When I print the ps file on my postscript
 printer the header area on the second and following pages is all messed up.
 That is, text is missing, strange text and shapes appear in their place and
 the size of the header area is not the same as the first page.  If I view
 the ps file using GSView (GhostScript) I get the following message when I
 attempt to open the file:
 
 DSC Error
 %%Pages: doesn't match number of %%Page:
 
 GSView displays the ps file with the same errors I get if I print the ps
 file directly to the printer.  I am using FOP 0.20.2 on Windows (both NT and
 2000) with JDK 1.3 from Sun.  Any ideas what is wrong?

Sure, the PostScript renderer is far from being finished. :-) The
renderer still has problems with some fo constructs, fonts and even DSC
(as you mentioned). If you need good quality right now, you should use
Acrobat Reader on Unix or GhostScript to convert PDF to PS. That's what
I still do. Improving the PostScript renderer is still on my tasklist,
but I've got so much to do that it hasn't come to the top of the list,
yet. Sorry.

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +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: Logging work: MessageHandler patch

2002-03-21 Thread Jeremias Maerki

Christian

 Michael Gratton wrote:
   There was a problem with MessageHandler.error() in that patch. The
   attached patch fixes that and makes MessageHandler.log() a bit more
   readable. It also includes a fix for the outstanding
   ToBeImplementedProperty problem - by using MessageHandler.
 
 I've committed both (the second MessageHandler patch and the one for
 the servlet examples, but still need to re-create the war file..)

I'd suggest we move the embedding example into the contrib directory
(need to create that one for the maintenance branch, I think) and build
that WAR from the build script. That may reduce the size of the
distribution and lets people build their own WAR if they want to change
anything.

If you don't want to do it, you can tell me and I'm going to do that
during the weekend and send you a patch.

   Note that the document patch on the previous message is still valid.
 
 Err .. the documentation is done in the main branch only and as
 Jeremias has already made some changes I need to have a closer look
 if the patch still applies.

Well, I hope I did that documentation stuff right. I imagined that I
have to do the documentation versus the main branch so it gets enabled
under xml.apache.org/fop. Tell me, if I have to change anything else.

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +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]