DO NOT REPLY [Bug 18010] - fo:basic-link bad position in table inside a table

2003-03-15 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=18010.
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=18010

fo:basic-link bad position in table inside a table





--- Additional Comments From [EMAIL PROTECTED]  2003-03-15 08:10 ---
The problem seems to be that the x-offset introduced by columns in the 
container table is correctly applied to the text in the contained table, but 
not to the links.

I've set the severity to Major because of the use of 'blind tables' to control 
pagination or center tables.

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



DO NOT REPLY [Bug 953] - Incorrect hyperlinks area rendering in justified text blocks

2003-03-15 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=953.
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=953

Incorrect hyperlinks area rendering in justified text blocks

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |



--- Additional Comments From [EMAIL PROTECTED]  2003-03-15 08:36 ---
This problem seems to be present in 0.20.5rc2. The justify test case in 
examples/fo/basic/newlinktest.fo looks broken.

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



DO NOT REPLY [Bug 18027] New: - width/offset of fo:basic-link area bad when using justify

2003-03-15 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=18027.
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=18027

width/offset of fo:basic-link area bad when using justify

   Summary: width/offset of fo:basic-link area bad when using
justify
   Product: Fop
   Version: 0.20.5
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: Major
  Priority: Other
 Component: pdf renderer
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


If you put a link inside a justified block, both the position and the width of 
the link are not correctly calculated. The attached file provides some 
examples.

I'm posting this bug, besides reopening bug #953, because bug #953 only talks 
about the position of the link, not about its width. I've reopened bug #953 
anyway, because it refers to a test case (newlinktest.fo) that seems to be 
broken (the justify cases).

In the attached file you may also notice (e.g. numbers 16 and 17) that 
sometimes the width of the link is slightly reduced (it is more clear in 
number 17 which is left aligned). It seems to be related to non-significant 
white space included in the end of the link text (??? I'm not to familiar with 
XSLFO spec, but in XSLT I believe it is non-significant). May be this is a 
clue to the source of the problem...

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



DO NOT REPLY [Bug 18027] - width/offset of fo:basic-link area bad when using justify

2003-03-15 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=18027.
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=18027

width/offset of fo:basic-link area bad when using justify





--- Additional Comments From [EMAIL PROTECTED]  2003-03-15 11:47 ---
Created an attachment (id=5351)
XSLFO file that reproduces the problem in 0.20.5rc2

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



RE: PDF Encryption: Clarification

2003-03-15 Thread Patrick C. Lankswert
Jeremias,

From my understanding of the spec, encryption MUST be the last step.
Encryption will not make the size grow, but it does negate any benefit that
ASCII85 or ASCIIHEX filters provide and THEY do make the file larger.

In a nutshell, I would disable the ASCII85 or ASCIIHEX filters, if
encryption is enabled.

Pat

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 4:13 AM
To: [EMAIL PROTECTED]
Subject: PDF Encryption: Clarification


Do I interpret the PDF specs correctly that if encryption is applied it
doesn't make sense to apply ASCII85 or ASCIIHEX filters, because the
generated PDF will always be binary and the filters only increase the
file size? So, these two filters could be disabled in this case. Right?

Here's the key paragraph from PDF 1.3, page 64:
 Stream data is encrypted after all stream encoding filters have been
applied (and is
 decrypted before the stream decoding filters are applied). Decryption of
strings,
 other than those in the Encryption dictionary, is done after
escape-sequence
 processing and hex decoding as appropriate to the string representation
described
 in Section 4.4, “Strings and text.”

Jeremias Maerki


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


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



cvs commit: xml-fop/src/java/org/apache/fop/util CMYKColorSpace.java

2003-03-15 Thread jeremias
jeremias2003/03/15 08:47:40

  Added:   src/java/org/apache/fop/util CMYKColorSpace.java
  Log:
  ColorSpace descendant representing an uncalibrated CMYK color space. Used to fix 
CMYK JPEG support.
  
  Revision  ChangesPath
  1.1  xml-fop/src/java/org/apache/fop/util/CMYKColorSpace.java
  
  Index: CMYKColorSpace.java
  ===
  /*
   * $Id$
   * 
   *The Apache Software License, Version 1.1
   * 
   * 
   * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
   * 
   * Redistribution and use in source and binary forms, with or without modifica-
   * tion, are permitted provided that the following conditions are met:
   * 
   * 1. Redistributions of source code must retain the above copyright notice,
   *this list of conditions and the following disclaimer.
   * 
   * 2. Redistributions in binary form must reproduce the above copyright notice,
   *this list of conditions and the following disclaimer in the documentation
   *and/or other materials provided with the distribution.
   * 
   * 3. The end-user documentation included with the redistribution, if any, must
   *include the following acknowledgment: This product includes software
   *developed by the Apache Software Foundation (http://www.apache.org/).
   *Alternately, this acknowledgment may appear in the software itself, if
   *and wherever such third-party acknowledgments normally appear.
   * 
   * 4. The names FOP and Apache Software Foundation must not be used to
   *endorse or promote products derived from this software without prior
   *written permission. For written permission, please contact
   *[EMAIL PROTECTED]
   * 
   * 5. Products derived from this software may not be called Apache, nor may
   *Apache appear in their name, without prior written permission of the
   *Apache Software Foundation.
   * 
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
   * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
   * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
   * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
   * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
   * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   * 
   * 
   * This software consists of voluntary contributions made by many individuals
   * on behalf of the Apache Software Foundation and was originally created by
   * James Tauber [EMAIL PROTECTED]. For more information on the Apache
   * Software Foundation, please see http://www.apache.org/.
   */ 
  package org.apache.fop.util;
  
  import java.awt.color.ColorSpace;
  
  /**
   * This class represents an uncalibrated CMYK color space. It is used by
   * the JpegImage class.
   */
  public class CMYKColorSpace extends ColorSpace {
  
  private static CMYKColorSpace instance;
  
  /**
   * @see java.awt.color.ColorSpace#ColorSpace(int, int)
   */
  protected CMYKColorSpace(int type, int numcomponents) {
  super(type, numcomponents);
  }
  
  /**
   * Returns an instance of an uncalibrated CMYK color space.
   * @return CMYKColorSpace the requested color space object
   */
  public static CMYKColorSpace getInstance() {
  if (instance == null) {
  instance = new CMYKColorSpace(TYPE_CMYK, 4);
  }
  return instance;
  }
  
  /**
   * @see java.awt.color.ColorSpace#toRGB(float[])
   */
  public float[] toRGB(float[] colorvalue) {
  throw new UnsupportedOperationException(NYI);
  }
  
  /**
   * @see java.awt.color.ColorSpace#fromRGB(float[])
   */
  public float[] fromRGB(float[] rgbvalue) {
  throw new UnsupportedOperationException(NYI);
  }
  
  /**
   * @see java.awt.color.ColorSpace#toCIEXYZ(float[])
   */
  public float[] toCIEXYZ(float[] colorvalue) {
  throw new UnsupportedOperationException(NYI);
  }
  
  /**
   * @see java.awt.color.ColorSpace#fromCIEXYZ(float[])
   */
  public float[] fromCIEXYZ(float[] colorvalue) {
  throw new UnsupportedOperationException(NYI);
  }
  
  }
  
  
  


cvs commit: xml-fop/src/java/org/apache/fop/image JpegImage.java

2003-03-15 Thread jeremias
jeremias2003/03/15 08:49:16

  Modified:src/java/org/apache/fop/image JpegImage.java
  Log:
  Fix CMYK JPEG images.
  Added some comments.
  
  Revision  ChangesPath
  1.2   +11 -6 xml-fop/src/java/org/apache/fop/image/JpegImage.java
  
  Index: JpegImage.java
  ===
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/image/JpegImage.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JpegImage.java11 Mar 2003 13:05:25 -  1.1
  +++ JpegImage.java15 Mar 2003 16:49:16 -  1.2
  @@ -57,6 +57,7 @@
   
   // FOP
   import org.apache.fop.fo.FOUserAgent;
  +import org.apache.fop.util.CMYKColorSpace;
   
   /**
* FopImage object for JPEG images, Using Java native classes.
  @@ -111,20 +112,21 @@
   this.bitsPerPixel = 8;
   this.isTransparent = false;
   
  +//Check for SOI (Start of image) marker (FFD8)
   if (this.bitmaps.length  (index + 2)
  - uByte(this.bitmaps[index]) == 255
  - uByte(this.bitmaps[index + 1]) == 216) {
  + uByte(this.bitmaps[index]) == 255 /*0xFF*/
  + uByte(this.bitmaps[index + 1]) == 216 /*0xD8*/) {
   index += 2;
   
   while (index  this.bitmaps.length  cont) {
   //check to be sure this is the begining of a header
   if (this.bitmaps.length  (index + 2)
  - uByte(this.bitmaps[index]) == 255) {
  + uByte(this.bitmaps[index]) == 255 /*0xFF*/) {
   
   //192 or 194 are the header bytes that contain
   // the jpeg width height and color depth.
  -if (uByte(this.bitmaps[index + 1]) == 192
  -|| uByte(this.bitmaps[index + 1]) == 194) {
  +if (uByte(this.bitmaps[index + 1]) == 192 /*0xC0*/
  +|| uByte(this.bitmaps[index + 1]) == 194 /*0xC2*/) {
   
   this.height = calcBytes(this.bitmaps[index + 5],
 this.bitmaps[index + 6]);
  @@ -139,8 +141,11 @@
 ColorSpace.CS_LINEAR_RGB);
   } else if (this.bitmaps[index + 9] == 4) {
   // howto create CMYK color space
  +/*
   this.colorSpace = ColorSpace.getInstance(
 ColorSpace.CS_CIEXYZ);
  +*/
  +this.colorSpace = CMYKColorSpace.getInstance();
   } else {
   ua.getLogger().error(Unknown ColorSpace for image: 
  + );
  @@ -155,7 +160,7 @@
   index += calcBytes(this.bitmaps[index + 2],
  this.bitmaps[index + 3]) + 2;
   
  -} else if (uByte(this.bitmaps[index + 1]) == 226
  +} else if (uByte(this.bitmaps[index + 1]) == 226 /*0xE2*/
   this.bitmaps.length  (index + 60)) {
   // Check if ICC profile
   byte[] iccString = new byte[11];
  
  
  

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



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

2003-03-15 Thread jeremias
jeremias2003/03/15 08:49:58

  Modified:src/java/org/apache/fop/layout FontInfo.java
  Log:
  Fix font lookup when font was found through weight-adjust.
  
  Revision  ChangesPath
  1.2   +3 -1  xml-fop/src/java/org/apache/fop/layout/FontInfo.java
  
  Index: FontInfo.java
  ===
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/layout/FontInfo.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FontInfo.java 11 Mar 2003 13:05:14 -  1.1
  +++ FontInfo.java 15 Mar 2003 16:49:58 -  1.2
  @@ -164,7 +164,9 @@
   }
   
   // then use default
  -f = (String)triplets.get(DEFAULT_FONT);
  +if (f == null) {
  +f = (String)triplets.get(DEFAULT_FONT);
  +}
   
   }
   
  
  
  

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



cvs commit: xml-fop/src/java/org/apache/fop/fonts LazyFont.java

2003-03-15 Thread jeremias
jeremias2003/03/15 08:50:56

  Modified:src/java/org/apache/fop/fonts LazyFont.java
  Log:
  Log problems during font loading to System.out for the moment until proper logging 
is in place.
  
  Revision  ChangesPath
  1.2   +1 -0  xml-fop/src/java/org/apache/fop/fonts/LazyFont.java
  
  Index: LazyFont.java
  ===
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fonts/LazyFont.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LazyFont.java 11 Mar 2003 13:05:15 -  1.1
  +++ LazyFont.java 15 Mar 2003 16:50:56 -  1.2
  @@ -96,6 +96,7 @@
   }
   // System.out.println(Metrics  + metricsFileName +  loaded.);
   } catch (Exception ex) {
  +ex.printStackTrace();
   /[EMAIL PROTECTED] Log this exception */
   //log.error(Failed to read font metrics file 
   // + metricsFileName
  
  
  

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



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

2003-03-15 Thread jeremias
jeremias2003/03/15 08:54:26

  Modified:src/java/org/apache/fop/pdf PDFDocument.java
  Log:
  Make PDFDocument as top-level class of the PDF library LogEnabled. (Reason: It 
accesses TTFFile which is LogEnabled, so there must be some way to pass a logger. This 
will be revisited when Avalonization is underway.)
  Proper resolving of LazyFonts.
  Add helper method to apply encryption if it's enabled.
  
  Revision  ChangesPath
  1.3   +37 -10xml-fop/src/java/org/apache/fop/pdf/PDFDocument.java
  
  Index: PDFDocument.java
  ===
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/pdf/PDFDocument.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PDFDocument.java  13 Mar 2003 16:46:05 -  1.2
  +++ PDFDocument.java  15 Mar 2003 16:54:26 -  1.3
  @@ -52,8 +52,10 @@
   
   import org.apache.fop.util.StreamUtilities;
   
  +import org.apache.avalon.framework.logger.AbstractLogEnabled;
   import org.apache.fop.fonts.CIDFont;
   import org.apache.fop.fonts.CustomFont;
  +import org.apache.fop.fonts.Font;
   import org.apache.fop.fonts.FontDescriptor;
   import org.apache.fop.fonts.FontMetrics;
   import org.apache.fop.fonts.FontType;
  @@ -97,7 +99,8 @@
* the object list; enhanced trailer output; cleanups.
*
*/
  -public class PDFDocument {
  +public class PDFDocument extends AbstractLogEnabled {
  +
   private static final Integer LOCATION_PLACEHOLDER = new Integer(0);
   /**
* the version of PDF supported which is 1.4
  @@ -304,6 +307,16 @@
   }
   
   /**
  + * Apply the encryption filter to a PDFStream if encryption is enabled.
  + * @param stream PDFStream to encrypt
  + */
  +public void applyEncryption(PDFStream stream) {
  +if (isEncryptionActive()) {
  +this.encryption.applyFilter(stream);
  +}
  +}
  +
  +/**
* Enables PDF encryption.
* @param params The encryption parameters for the pdf file
*/
  @@ -313,7 +326,7 @@
   /[EMAIL PROTECTED] this cast is ugly. PDFObject should be transformed 
to an interface. */
   addTrailerObject((PDFObject)this.encryption);
   } else {
  -System.out.println(PDF encryption is unavailable. PDF will be 
  +getLogger().warn(PDF encryption is unavailable. PDF will be 
   + generated without encryption.);
   }
   }
  @@ -1308,13 +1321,19 @@
   throw new IllegalArgumentException(Trying to embed unsupported font 
type: 
   + desc.getFontType());
   } 
  -if (!(desc instanceof CustomFont)) {
  +
  +Font tempFont;
  +if (desc instanceof LazyFont) {
  +tempFont = ((LazyFont)desc).getRealFont();
  +} else {
  +tempFont = (Font)desc;
  +}
  +if (!(tempFont instanceof CustomFont)) {
   throw new IllegalArgumentException(
 FontDescriptor must be instance of CustomFont, but is a 
  + desc.getClass().getName());
   }
  -
  -CustomFont font = (CustomFont)desc;
  +CustomFont font = (CustomFont)tempFont;
   
   InputStream in = null;
   try {
  @@ -1323,8 +1342,9 @@
   try {
   in = resolveURI(font.getEmbedFileName());
   } catch (Exception e) {
  -System.out.println(Failed to embed fontfile: 
  -   + font.getEmbedFileName());
  +getLogger().error(Failed to embed fontfile: 
  +   + font.getEmbedFileName() 
  +   + ( + e.getMessage() + ));
   }
   }
   
  @@ -1334,8 +1354,9 @@
   in = new java.io.BufferedInputStream(
   
this.getClass().getResourceAsStream(font.getEmbedResourceName()));
   } catch (Exception e) {
  -System.out.println(Failed to embed fontresource: 
  -   + font.getEmbedResourceName());
  +getLogger().error(Failed to embed fontresource: 
  +   + font.getEmbedResourceName()
  +   + ( + e.getMessage() + ));
   }
   }
   
  @@ -1349,6 +1370,7 @@
   FontFileReader reader = new FontFileReader(in);
   
   TTFSubSetFile subset = new TTFSubSetFile();
  +setupLogger(subset);
   
   byte[] subsetFont = subset.readFont(reader,
mbfont.getTTCName(), 
mbfont.getUsedGlyphs());
  @@ 

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

2003-03-15 Thread jeremias
jeremias2003/03/15 08:58:59

  Modified:src/java/org/apache/fop/render/pdf FontReader.java
  Log:
  Fix parser construction.
  
  Revision  ChangesPath
  1.2   +5 -1  xml-fop/src/java/org/apache/fop/render/pdf/FontReader.java
  
  Index: FontReader.java
  ===
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/render/pdf/FontReader.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FontReader.java   11 Mar 2003 13:05:13 -  1.1
  +++ FontReader.java   15 Mar 2003 16:58:59 -  1.2
  @@ -55,6 +55,8 @@
   import java.util.Map;
   import java.io.IOException;
   
  +import javax.xml.parsers.SAXParserFactory;
  +
   //SAX
   import org.xml.sax.XMLReader;
   import org.xml.sax.SAXException;
  @@ -102,7 +104,9 @@
   XMLReader parser = null;
   
   try {
  -parser = 
javax.xml.parsers.SAXParserFactory.newInstance().newSAXParser().getXMLReader();
  +final SAXParserFactory factory = 
javax.xml.parsers.SAXParserFactory.newInstance();
  +factory.setNamespaceAware(true);
  +parser = factory.newSAXParser().getXMLReader();
   } catch (Exception e) {
   throw new FOPException(e);
   }
  
  
  

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



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

2003-03-15 Thread jeremias
jeremias2003/03/15 09:00:07

  Modified:src/java/org/apache/fop/render/pdf PDFRenderer.java
  Log:
  Fix font triplet registration (weight and style were mixed)
  Provide logger to PDF Document
  
  Revision  ChangesPath
  1.3   +3 -2  xml-fop/src/java/org/apache/fop/render/pdf/PDFRenderer.java
  
  Index: PDFRenderer.java
  ===
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/render/pdf/PDFRenderer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PDFRenderer.java  13 Mar 2003 16:46:05 -  1.2
  +++ PDFRenderer.java  15 Mar 2003 17:00:05 -  1.3
  @@ -259,8 +259,8 @@
   List tripleList = new java.util.ArrayList();
   for (int j = 0; j  triple.length; j++) {
   tripleList.add(new FontTriplet(triple[j].getAttribute(name),
  -   triple[j].getAttribute(style),
  -   triple[j].getAttribute(weight)));
  +   triple[j].getAttribute(weight),
  +   triple[j].getAttribute(style)));
   }
   
   EmbedFontInfo efi;
  @@ -313,6 +313,7 @@
   ostream = stream;
   producer = FOP  + Version.getVersion();
   this.pdfDoc = new PDFDocument(producer);
  +setupLogger(this.pdfDoc);
   this.pdfDoc.setCreator(creator);
   this.pdfDoc.setFilterMap(filterMap);
   this.pdfDoc.outputHeader(stream);
  
  
  

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



cvs commit: xml-fop/src/java/org/apache/fop/svg PDFDocumentGraphics2D.java

2003-03-15 Thread jeremias
jeremias2003/03/15 09:02:49

  Modified:src/java/org/apache/fop/svg PDFDocumentGraphics2D.java
  Log:
  Make sure no NPE's are happening. (Setting a NullLogger for now. Revisiting next 
week.)
  
  Revision  ChangesPath
  1.2   +1 -0  xml-fop/src/java/org/apache/fop/svg/PDFDocumentGraphics2D.java
  
  Index: PDFDocumentGraphics2D.java
  ===
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/svg/PDFDocumentGraphics2D.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PDFDocumentGraphics2D.java11 Mar 2003 13:05:07 -  1.1
  +++ PDFDocumentGraphics2D.java15 Mar 2003 17:02:49 -  1.2
  @@ -108,6 +108,7 @@
   }
   
   this.pdfDoc = new PDFDocument(FOP SVG Renderer);
  +this.pdfDoc.enableLogging(new 
org.apache.avalon.framework.logger.NullLogger());
   
   graphicsState = new PDFState();
   
  
  
  

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



DO NOT REPLY [Bug 18023] - [PATCH] typos on implemented.xml webpage.

2003-03-15 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=18023.
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=18023

[PATCH] typos on implemented.xml webpage.

[EMAIL PROTECTED] changed:

   What|Removed |Added

Summary|typos on implemented.xml|[PATCH] typos on
   |webpage.|implemented.xml webpage.



--- Additional Comments From [EMAIL PROTECTED]  2003-03-15 17:43 ---
tagging as a patch

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



cvs commit: xml-fop/src/documentation/content/xdocs faq.xml

2003-03-15 Thread vmote
vmote   2003/03/15 10:49:56

  Modified:src/documentation/content/xdocs faq.xml
  Log:
  1. Break stumbling blocks section into two pieces:
 (a) runtime problems
 (b) output problems
  2. Add ids for each part, hopefully to get consistent cross-references for them as 
well.
  
  Revision  ChangesPath
  1.11  +57 -54xml-fop/src/documentation/content/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/xml-fop/src/documentation/content/xdocs/faq.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- faq.xml   12 Mar 2003 01:41:22 -  1.10
  +++ faq.xml   15 Mar 2003 18:49:56 -  1.11
  @@ -3,7 +3,7 @@
   
http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-forrest/src/resources/schema/dtd/faq-v11.dtd;
   
   faqs title=FOP FAQ
  -  part
  +  part id=part_general
   titleGeneral questions/title
   faq id=fop_general
 questionWhat is FOP?/question
  @@ -120,33 +120,8 @@
 /answer
   /faq
 /part
  -  part
  -titleCommon stumbling blocks/title
  -faq id=blank_page_between_page_sequences
  -  questionWhy does FOP insert a blank page between my page 
sequences?/question
  -  answer
  -p
  -  This is because spec conformance has been improved.
  -/p
  -p
  -  The link
  -  
href=http://www.w3.org/TR/xsl/slice7.html#force-page-count;force-page-count
  -  property/link controls how a FO processor pads page sequences in
  -  order to get certain page counts or last page numbers. The default is
  -  codeauto/code. With this setting, if the next page sequence
  -  begins with an odd page number because you set the
  -  initial-page-number, and the current page sequence also ends with an
  -  odd page number, the processor inserts a blank page to keep odd and
  -  even page numbers alternating (similar for the case the current page
  -  sequence ends with an even page number and the next page sequence
  -  starts with an even page number.
  -/p
  -p
  -  If you don't want to have this blank page, use
  -  codeforce-page-count=no-force/code.
  -/p
  -  /answer
  -/faq
  +  part id=part_running
  +titleProblems running FOP/title
   faq id=no_page_master
 questionI get the error: [ERROR]: 'master-reference' for
 'fo:page-sequence'matches no 'simple-page-master' or
  @@ -168,25 +143,6 @@
   /p
 /answer
   /faq
  -faq id=png_fails
  -  questionMy PNG images don't work./question
  -  answer
  -p
  -  The Jimi image library, which is by default used for processing
  -  images in PNG and other formats, was removed from the distribution
  -  for licensing reasons. You have to fork
  -href=http://java.sun.com/products/jimi;download/fork
  -  and install it by yourself.
  -/p
  -p
  -  Extract the file JimiProClasses.zip from the archive you've downloaded, 
rename it to jimi-1.0.jar and move it to FOP's lib directory.
  -/p
  -p
  -  An alternative to Jimi is to use Sun's JAI. It is much faster, but
  -  not available for all platforms.
  -/p
  -  /answer
  -/faq
   faq id=NoClassDefFound
 questionI get a NoClassDefFound exception./question
 answer
  @@ -443,6 +399,53 @@
   /p
 /answer
   /faq
  +  /part
  +  part id=part_output
  +titleProblems with FOP output/title
  +faq id=blank_page_between_page_sequences
  +  questionWhy does FOP insert a blank page between my page 
sequences?/question
  +  answer
  +p
  +  This is because spec conformance has been improved.
  +/p
  +p
  +  The link
  +  
href=http://www.w3.org/TR/xsl/slice7.html#force-page-count;force-page-count
  +  property/link controls how a FO processor pads page sequences in
  +  order to get certain page counts or last page numbers. The default is
  +  codeauto/code. With this setting, if the next page sequence
  +  begins with an odd page number because you set the
  +  initial-page-number, and the current page sequence also ends with an
  +  odd page number, the processor inserts a blank page to keep odd and
  +  even page numbers alternating (similar for the case the current page
  +  sequence ends with an even page number and the next page sequence
  +  starts with an even page number.
  +/p
  +p
  +  If you don't want to have this blank page, use
  +  codeforce-page-count=no-force/code.
  +/p
  +  /answer
  +/faq
  +faq id=png_fails
  +  questionMy PNG images don't work./question
  +  answer
  + 

cvs commit: xml-fop/src/documentation/content/xdocs faq.xml

2003-03-15 Thread vmote
vmote   2003/03/15 11:55:50

  Modified:src/documentation/content/xdocs faq.xml
  Log:
  normalize  clean up the general help section a bit.
  
  Revision  ChangesPath
  1.12  +23 -14xml-fop/src/documentation/content/xdocs/faq.xml
  
  Index: faq.xml
  ===
  RCS file: /home/cvs/xml-fop/src/documentation/content/xdocs/faq.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- faq.xml   15 Mar 2003 18:49:56 -  1.11
  +++ faq.xml   15 Mar 2003 19:55:49 -  1.12
  @@ -1661,29 +1661,38 @@
 part id=part_help
   titleGeneral suggestions. How to solve problems./title
   faq id=bugs
  -  questionWhere to post bugs./question
  +  questionI think I have found a bug in FOP. What should I do?/question
 answer
   p
  -  See link href=bugs.htmldocumentation/link. See also
  -  link href=#postquestionswhere to post
  -  questions/link.
  +  See link href=bugs.htmlthe Bugs page/link for information about
  +  bugs already reported and how to report new ones.
   /p
 /answer
   /faq
   faq id=postquestions
  -  questionWhere to post questions./question
  +  questionI have questions that are not addressed in this FAQ. Where
  +  should I post them?/question
 answer
  -p
  -  Decide where to post:
  -/p
   ul
 li
  -You get exceptions. First, check the FAQ whether the exception is
  -mentioned. ClassNotFoundException, NoSuchMethodException and
  -NoSuchFieldException problems are almost always a problem with the
  -local environment, try to get local help first. Check link
  -href=http://nagoya.apache.org;bugzilla/link. If still not found,
  -post to fop-dev.
  +If you have a runtime exception or other runtime problem:
  +ul
  +  li
  +double-check the link href=#part_runningRuntime FAQs/link.
  +  /li
  +  li
  +ClassNotFoundException, NoSuchMethodException and
  +NoSuchFieldException problems are almost always a problem with
  +the local environment. Try to get local help first.
  +  /li
  +  li
  +Check link href=bugs.html#issues_existingReported Issues/link
  +to see if this is a known problem.
  +  /li
  +  liIf none of the above apply, post a question to the fop-dev
  +mailing list.
  +  /li
  +/ul
 /li
 li
   Something doesn't work with FOP but works with another formatter
  
  
  

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



cvs commit: xml-fop/src/documentation/content/xdocs bugs.xml

2003-03-15 Thread vmote
vmote   2003/03/15 11:59:46

  Modified:src/documentation/content/xdocs bugs.xml
  Log:
  make terminology more general to issues instead of just bugs.
  clean up  normalize content a bit.
  
  Revision  ChangesPath
  1.4   +25 -16xml-fop/src/documentation/content/xdocs/bugs.xml
  
  Index: bugs.xml
  ===
  RCS file: /home/cvs/xml-fop/src/documentation/content/xdocs/bugs.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- bugs.xml  19 Nov 2002 07:57:27 -  1.3
  +++ bugs.xml  15 Mar 2003 19:59:46 -  1.4
  @@ -4,40 +4,49 @@
   
   document
 header
  -titleBugs/title
  +titleBugs and Other Trackable Issues/title
 /header
 body
  -section
  -  titleBugs Already Reported/title
  +p
  +  Information on this page applies to enhancement requests and other trackable
  +issues as well as bugs.
  +/p
  +section id=issues_existing
  +  titleReported Issues/title
 pA list of unresolved reported bugs can be found at
   link 
href=http://nagoya.apache.org/bugzilla/buglist.cgi?bug_status=NEWamp;bug_status=ASSIGNEDamp;bug_status=REOPENEDamp;email1=amp;emailtype1=substringamp;emailassigned_to1=1amp;email2=amp;emailtype2=substringamp;emailreporter2=1amp;bugidtype=includeamp;bug_id=amp;changedin=amp;votes=amp;chfieldfrom=amp;chfieldto=Nowamp;chfieldvalue=amp;product=Fopamp;short_desc=amp;short_desc_type=allwordssubstramp;long_desc=amp;long_desc_type=allwordssubstramp;bug_file_loc=amp;bug_file_loc_type=allwordssubstramp;keywords=amp;keywords_type=anywordsamp;field0-0-0=noopamp;type0-0-0=noopamp;value0-0-0=amp;order=bugs.component;FOP
  -Open Bugs (Bugzilla)/link./p
  +Open Bugs (Bugzilla)/link. If you have an interest in an issue already
  +reported, please consider the following:
  +  /p
  +  ul
  +liIf you have insight that may help developers solve an existing problem,
  +please add comments and/or file attachments to the existing issue./li
  +liIf you would like to track the status of the issue, consider adding
  +your email address to the list of CC recipients, so that you will receive
  +an email as changes are made to the issue./li
  +  /ul
   /section
  -section
  -  titleReporting New Bugs/title
  +section id=issues_new
  +  titleUnreported Issues (Reporting New Issues)/title
 pUser reports of bugs and requests for enhancements are extremely
   important parts of FOP development, and we appreciate the time you take to help
   us track these issues down.
   To help us ensure that the bug database is as useful as it should be, please
  -use the following checklist if you are considering reporting a new bug:/p
  +use the following checklist if you are considering reporting a new issue:/p
   ul
 liIs your issue really a request to comply with some aspect of the
   XSL-FO standard?
   If so, please do not enter a bug report.
   The developers already carefully track which standard requirements have been
   implemented.
  -Other enhancement requests are welcome (although they are not technically
  -bugs, they are entered and tracked in the same system -- just be sure to mark
  -the issue as an enhancement)./li
  +Other enhancement requests are welcome, but please be sure to mark
  +the issue as an enhancement./li
 liIs your issue addressed by an link
   href=http://xml.apache.org/fop/faq.html;FAQ/link? If so, please do not
   enter a bug report unless the FAQ did not adequately address your issue./li
  -  liHas this bug already been reported?
  -See section above for a list of bugs that have already been reported.
  -If the bug has already been reported, please do not open a new bug report.
  -Reporting the same bug twice will only slow the development team down.
  -However, if you have insight that may help developers track an existing problem,
  -please add comments and/or file attachments to the existing bug./li
  +  liHas this issue already been reported? If so, please do not
  +report it again, as this will only slow the development team down.
  +See section above for a list of issues that have already been reported./li
 liDo you know how to write a good bug report?
   Please review the
   link href=http://nagoya.apache.org/bugzilla/bugwritinghelp.html;Apache Bug
  
  
  

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



cvs commit: xml-fop/build/classes/conf config.dtd config.xml userconfig.xml xml-lang.xml xml-lang.xsl

2003-03-15 Thread pbwest
pbwest  2003/03/15 19:28:57

  Removed: build/classes/conf Tag: FOP_0-20-0_Alt-Design config.dtd
config.xml userconfig.xml xml-lang.xml xml-lang.xsl
  Log:
  Removed build klidge.

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



Re: Files under build/classes/conf in CVS

2003-03-15 Thread Peter B. West
Jeremias,

I have just cvs rm'd the files in that directory.  It was a cheap and 
nasty kludge to let mw build with a shell script.

Peter

Jeremias Maerki wrote:
Peter,

do you need the files saved under build/classes/conf in CVS? Eclipse
ignores the .cvsignore if it finds file registered in .cvsignore in a
CVS repository. This is a bit annoying because Eclipse automatically adds
tasks to add the files (fop.jar etc.) under build to CVS.
If you don't need them, I'd like to delete the build directory on
cvs.apache.org.
--
Peter B. West  [EMAIL PROTECTED]  http://www.powerup.com.au/~pbwest/
Lord, to whom shall we go?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]