RE: pdf security

2001-08-20 Thread Tore Engvig



On Sun, 19 Aug 2001, Ralph Bruno wrote:

 Thanks for these suggestions,. I think I've narrowed down the problem to
 font-embedding.

[SNIP]

 Has anyone else successfully converted a FOP pdf to rtf containing embedded
 fonts? Could the problem be in the metrics creation? Or is it possible to
 use the fonts without embedding them?

It's possible to use fonts without embedding them, but unfortunately it
wouldn't help you.

When using multibyte fonts, the glyphs in the document are indexes to the
glyph index in the fontfile. It's possible to use unicode instead of
glyphindexes, but that would require a ToUnicode cmap in the
pdf fontdescriptor. This has been on my todo list for quite some time now,
guess I have to do it... It's not just creating rtf files that won't work,
cut'n'paste from acrobat reader to e.g. word won't work either. More
important: searching your pdf document won't work until ToUnicode cmaps
are implemented.


Tore


 
 Thanks

 Ralph Bruno

  -Original Message-
  Sent: 28 July 2001 01:06
  To: [EMAIL PROTECTED]
  Subject: Re: pdf security
 
  Adobe technical support does exactly what all other
  big-company support
  folks do as a first line of defense - blame someone else. In
  fact, FOP
  contains precisely zero source code to put an Encrypt key in the PDF
  document trailer dictionary, and hence it is not possible for
  documents
  produced by FOP, out of the box, to have security.
 
  If you produce a document with FOP, and look at the document
  security, not
  only will it tell you that you can print and copy text to
  your heart's
  content, but also that there is no security method.
 
  When you say Acrobat 5, I'm guessing you mean Acrobat
  Exchange. Well, that
  is the only part of this whole equation that can set
  security, and so Adobe
  support lied to you. OK, let's be charitable - they didn't
  know any better.
  Given my experience with customer/technical support for big
  companies that
  is a very plausible explanation.
 
  I'm a bit irritable because I'm just coming off a 12-hour day
  wrestling with
  idiosyncracies of a J2EE server which shall go unnamed, and
  has involved a
  certain support system for 6 weeks to no avail, so I'm
  venting a bit at
  Adobe's expense. They actually deserve the flak to some
  degree, anyway.
  Seriously, though, did you inspect the FOP-produced doc using
  _Reader_? As
  soon as FOP produced it?
 
  Regards,
  Arved Sandstrom
 
  Fairly Senior Software Type
  e-plicity (http://www.e-plicity.com)
  Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia
 
 
 
  At 04:42 PM 7/27/01 +0100, Ralph Bruno wrote:
  I'm using FOP 0.19 and Acrobat 5, and whenever I try to export my
  FOP-generated pdf to rtf, all I get are seemingly blank
  pages, but it is in
  fact white text on a white background (In case you're
  wondering, my original
  pdf is black, red and grey text on white).
  
  I contacted Adobe technical support and they've informed me
  that it's a
  result of the security settings in my pdf - it's been set
  for non-copying of
  text. Obviously the only place it could have been set is in
  the FOP code.
  How do I change it to allow copying?

 -
 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: Ideas about PDFGraphics2D font handling for True Type to Type 1

2001-08-20 Thread Keiron Liddle

Randall,

Maybe we need to have something similar to this class in batik:
org.apache.batik.gvt.font.FontFamilyResolver

Going a bit further we could make it an option to be able to use any font
that java can load (ie. reading the font metrics).



On Sun, 19 Aug 2001 23:09:12 Randall Parker wrote:
 
 Here's the problem in a nutshell: Java's Font class knows about the True
 Type fonts that it loaded from jre\lib
 \fonts and it also seems to know about TrueType fonts that are in the
 operating system's directory of fonts (on
 my NT4 box they are in winnt\fonts). But those font names are not going
 match the Type 1 font names that
 FOP's FontInfo.java and FontSetup.java know about. It appears that
 FontSetup.java does provide a mechanism
 for mapping TT fonts to Type 1 PDF core fonts. What I'm arguing here is
 that more calls to
 FontInfo.addFontProperties need to be added to FontSetup in order to
 support mapping of more TT fonts to
 Type 1 fonts.
 
 Elsewhere I've been told that the TrueType fonts Courier New and Times
 New Roman are supposed to have the
 same font metrics as the Type 1 fonts Courier and Times Roman. This same
 person also claimed that Arial
 has the same font metrics as Helvetica. If this is really true (anyone
 know a good way to find out?) then it
 makes sense to me for FontInfo to map those TrueType fonts to their
 corresponding Type 1 metric
 equivalalents.
 
 So True Type fonts available in Java should be mapped to Type 1 fonts in
 PDF as follows:
Arial  -- Helvetica
   Times New Roman  --  Times-Roman
   Courier New--  Courier
  and when they have bold and italic they should be mapped appropriately
 as well.

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




Re: Fonts and reporting classes

2001-08-20 Thread Tore Engvig



On Fri, 17 Aug 2001, Spectron Caribe, Inc. wrote:

 Ok, thanks for the info. One more thing and I'll leave you guys alone. :)

 I think that java.awt.Font has almost all the information needed to create a
 /FontDescriptor. Would it be posible to create an XML file using a
 java.awt.Font class? For example.

 createXMLFont(java.awt.Font f).

 I think it would be useful. If the font found in the Java environment
 (Arial, Times, ...) is found in the system it will use it, if not it will
 use one of the standard fonts.

It has almost all you need, but not all you need. E.g. it's not possible
to determine what kind of font it is (postscript, truetype, etc)

Also, it would be of limited use.

* Using awt fonts would require a peer (as far as I know).
* You can only use one of the predefined encodings (winansi, macroman).
  You can't use other unicode characters as that would require knowledge
  of the glyph indexes in the font.
* You can't be sure that the fonts available to java is available as a
  system font. In unix environments you can almost be sure that a java
  font is not available as a system font.


Tore


 Faw

 - Original Message -
 From: Jeremias Maerki [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, August 17, 2001 2:31 AM
 Subject: Re: Fonts and reporting classes


 On Thu, 16 Aug 2001 15:28:58 -0400 Spectron Caribe, Inc. wrote:
  1. I know that in PDF files you can add a /FontDescriptor for a TrueType
  font without actually embedding the font. What this does is if the font is
  found in the system it uses it, if not it uses another font. Is there any
  way I could do that with FOP?

 Try removing the embed-file attribute from the font-metrics in the
 userconfig.xml.

 Jeremias Märki

 mailto:[EMAIL PROTECTED]

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


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



 -
 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: Ideas about PDFGraphics2D font handling for True Type to Type1

2001-08-20 Thread Tore Engvig


I'm not sure that you always can assume that java fonts are the same as
your system fonts, and I don't think you should map Arial to Helvetica. If
I remember correctly, Helvetica is a nice font, but Arial looks more
like... ugly. Also Arial exists in dozens of different versions, that goes
for other fonts to.

I guess that the simplest solution to your problem is to create
fontmetrics for your java fonts (those found in jre/lib) and add those to
fop with the same name as their java name. You don't have to embed them
in your document (just don't use embed file in your userconfig.xml).

As for sansserif and sans-serif, I don't think it's controversial to add a
mapping for both sansserif and sans-serif in FontSetup


Tore




On Sun, 19 Aug 2001, Randall Parker wrote:


 Here's the problem in a nutshell: Java's Font class knows about the True Type fonts 
that it loaded from jre\lib
 \fonts and it also seems to know about TrueType fonts that are in the operating 
system's directory of fonts (on
 my NT4 box they are in winnt\fonts). But those font names are not going match the 
Type 1 font names that
 FOP's FontInfo.java and FontSetup.java know about. It appears that FontSetup.java 
does provide a mechanism
 for mapping TT fonts to Type 1 PDF core fonts. What I'm arguing here is that more 
calls to
 FontInfo.addFontProperties need to be added to FontSetup in order to support mapping 
of more TT fonts to
 Type 1 fonts.

 Elsewhere I've been told that the TrueType fonts Courier New and Times New Roman are 
supposed to have the
 same font metrics as the Type 1 fonts Courier and Times Roman. This same person also 
claimed that Arial
 has the same font metrics as Helvetica. If this is really true (anyone know a good 
way to find out?) then it
 makes sense to me for FontInfo to map those TrueType fonts to their corresponding 
Type 1 metric
 equivalalents.

 So True Type fonts available in Java should be mapped to Type 1 fonts in PDF as 
follows:
Arial  -- Helvetica
   Times New Roman  --  Times-Roman
   Courier New--  Courier
  and when they have bold and italic they should be mapped appropriately as well.

 I came across this relevant quote in an article by Thomas Phinney about TrueType and 
PostScript Type 1.


 Article excerpts:

 According to Dov Isaacs,then Adobe 's Manager
 of Quality Assurance,Printing Systems Division,
 regardless of whether you are on a Mac or a PC run-
 ning Windows ...or above,you can mix TrueType
 and Type .with the caveat that you should never
 have both TrueType and Type .fonts with the same
 exact names on the same system.Indeed,having any
 two fonts with identical menu names or PostScript
 font names can confuse the operating system or your
 applications,with unpredictable results.

 ...

 When dealing with fonts on the computer 's side,
 one needs to be careful about deliberately substitut-
 ing Arial for Helvetica and Times New Roman for
 Times,or vice versa.Although the basic spacing of
 the substituted fonts is identical,their kerning pairs
 are not.is can cause text to reflow if one switches
 between two different-but-almost-the-same fonts on
 the computer doing the typesetting,if the program
 supports kerning pairs (graphics and DTP programs,
 and some better word processors).In situations in
 which exact line breaks are not critical,or applica-
 tions in question do not use kerning,problems are
 unlikely.



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




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




[GUMP] Build Failure - Fop

2001-08-20 Thread Sam Ruby


This email is autogenerated from the output from:
http://jakarta.apache.org/builds/gump/2001-08-20/xml-fop.html


Build results exceed maximum length.Please see URL above for details.

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




cvs commit: xml-fop/lib avalon-framework-4.0.jar

2001-08-20 Thread keiron

keiron  01/08/20 04:33:44

  Modified:.build.xml build.sh build.bat
  Added:   lib  avalon-framework-4.0.jar
  Log:
  adjusted classpath libs for logging
  
  Revision  ChangesPath
  1.42  +4 -3  xml-fop/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/xml-fop/build.xml,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- build.xml 2001/08/14 09:45:14 1.41
  +++ build.xml 2001/08/20 11:33:44 1.42
  @@ -136,6 +136,7 @@
  include name=lib/xalanj1compat.jar/
  include name=lib/batik.jar/
  include name=lib/logkit-1.0b4.jar/
  +   include name=lib/avalon-framework-4.0.jar/
  include name=lib/jimi*/
   /fileset
   
  @@ -278,7 +279,7 @@
   taskdef name=runTest classname=org.apache.fop.tools.anttasks.RunTest/
   
   property name=main.class value=org.apache.fop.apps.Fop/
  -property name=runtime.classpath value=lib/xerces-1.2.3.jar 
lib/xalan-2.0.0.jar lib/xalanj1compat.jar lib/batik.jar lib/jimi-1.0.jar 
lib/logkit-1.0b4.jar/
  +property name=runtime.classpath value=lib/xerces-1.2.3.jar 
lib/xalan-2.0.0.jar lib/xalanj1compat.jar lib/batik.jar lib/jimi-1.0.jar 
lib/logkit-1.0b4.jar lib/avalon-framework-4.0.jar/
  
   filter filtersfile=${build.src}/codegen/filter/
   
  @@ -576,9 +577,9 @@
 target name=test depends=package
   echo message=Testing build in jar file ${build.dir}/${name}.jar against 
reference/
   runTest testSuite=basictests.xml basedir=test/ 
reference=test/reference/fop.jar
  - refVersion=FOP 0.19.0-CVS/
  + refVersion=FOP 0.20.1/
   runTest testSuite=bugtests.xml basedir=test/ 
reference=test/reference/fop.jar
  - refVersion=FOP 0.19.0-CVS/
  + refVersion=FOP 0.20.1/
   !--
   runTest testSuite=testsuite.xml basedir=TestSuite/NIST/ 
reference=test/reference/fop.jar
refVersion=FOP 0.19.0-CVS/
  
  
  
  1.15  +3 -1  xml-fop/build.sh
  
  Index: build.sh
  ===
  RCS file: /home/cvs/xml-fop/build.sh,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- build.sh  2001/08/14 09:45:14 1.14
  +++ build.sh  2001/08/20 11:33:44 1.15
  @@ -13,7 +13,9 @@
 exit 1
   fi
   LIBDIR=lib
  
-LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip:$LIBDIR/ant.jar:$LIBDIR/batik.jar:$LIBDIR/buildtools.jar:$LIBDIR/xerces-1.2.3.jar:$LIBDIR/xalan-2.0.0.jar:$LIBDIR/xalanj1compat.jar:$LIBDIR/bsf.jar:$LIBDIR/jimi-1.0.jar:$LIBDIR/logkit-1.0b4.jar
  
+LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip:$LIBDIR/ant.jar:$LIBDIR/batik.jar:$LIBDIR/buildtools.jar:$LIBDIR/xerces-1.2.3.jar:$LIBDIR/xalan-2.0.0.jar:$LIBDIR/xalanj1compat.jar:$LIBDIR/bsf.jar
  
+LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/jimi-1.0.jar:$LIBDIR/logkit-1.0b4.jar:$LIBDIR/avalon-framework-4.0.jar
  +
   ANT_HOME=$LIBDIR
   
   echo
  
  
  
  1.13  +3 -1  xml-fop/build.bat
  
  Index: build.bat
  ===
  RCS file: /home/cvs/xml-fop/build.bat,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- build.bat 2001/08/12 17:05:13 1.12
  +++ build.bat 2001/08/20 11:33:44 1.13
  @@ -6,7 +6,9 @@
   if %JAVA_HOME% ==  goto error
   
   set LIBDIR=lib
  -set 
LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\classes.zip;%LIBDIR%\ant.jar;%LIBDIR%\batik.jar;%LIBDIR%\buildtools.jar;%LIBDIR%\xerces-1.2.3.jar;%LIBDIR%\xalan-2.0.0.jar;%LIBDIR%\xalanj1compat.jar;%LIBDIR%\bsf.jar;%LIBDIR%\jimi-1.0.jar

  +set 
LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\classes.zip;%LIBDIR%\ant.jar;%LIBDIR%\batik.jar;%LIBDIR%\buildtools.jar;%LIBDIR%\xerces-1.2.3.jar;%LIBDIR%\xalan-2.0.0.jar;%LIBDIR%\xalanj1compat.jar;%LIBDIR%\bsf.jar

  +set 
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar;%LIBDIR\logkit-1.0b4.jar;%LIBDIR%\avalon-framework-4.0.jar

  +
   set ANT_HOME=%LIBDIR%
   
   echo Building with classpath %LOCALCLASSPATH%
  
  
  
  1.1  xml-fop/lib/avalon-framework-4.0.jar
  
Binary file
  
  

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




[DO NOT REPLY: Bug 3143] [0.20.1] Driver's ContentHandler is broken

2001-08-20 Thread bugzilla

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

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

*** shadow/3143 Thu Aug 16 01:29:13 2001
--- shadow/3143.tmp.21542   Mon Aug 20 04:42:49 2001
***
*** 2,9 
  | [0.20.1] Driver's ContentHandler is broken |
  ++
  |Bug #: 3143Product: Fop |
! |   Status: NEW Version: all |
! |   Resolution:Platform: PC  |
  | Severity: Critical OS/Version: Windows NT/2K   |
  | Priority: Other Component: general |
  ++
--- 2,9 
  | [0.20.1] Driver's ContentHandler is broken |
  ++
  |Bug #: 3143Product: Fop |
! |   Status: RESOLVEDVersion: all |
! |   Resolution: FIXED  Platform: PC  |
  | Severity: Critical OS/Version: Windows NT/2K   |
  | Priority: Other Component: general |
  ++
***
*** 25,28 
  parser.setContentHandler(getContentHandler());
  
  Javadoc needs to be updated to warn that setOutputStream and setRenderer must be
! called prior invoking getContentHandler().
--- 25,31 
  parser.setContentHandler(getContentHandler());
  
  Javadoc needs to be updated to warn that setOutputStream and setRenderer must be
! called prior invoking getContentHandler().
! 
! --- Additional Comments From [EMAIL PROTECTED]  2001-08-20 04:42 ---
! the getContentHandler has been changed as suggested.

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




Bookmarks

2001-08-20 Thread Chetan Vig

The bookmarks functionality seems not be working anymore with FOP 0.20.1

Please let me know if there is someother way of invoking it.

Thanks,

-Chetan


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




Bookmarks

2001-08-20 Thread Chetan Vig

Hi,

I noticed that the PropertyMapping files have been deleted in the new
Release (I have FOP 0.20.1 dated 08/20/01 03:00 am version). As a result
the bookmarks feature of the PDF is missing.

I would appreciate if you somebody could take a look at
that.


Cheers,

Chetan Vig


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




RE: Bookmarks

2001-08-20 Thread COFFMAN Steven

I just used the latest CVS FOP and was able to use internal and external
links with no problem.
The attribute changed from id to ref-id for the destination some time
ago, maybe that is what you are noticing?

basic-link color=blue internal-destination=whatever

-Steve
-Original Message-
From: Chetan Vig [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 11:13 AM
To: fop
Subject: Bookmarks


Hi,

I noticed that the PropertyMapping files have been deleted in the new
Release (I have FOP 0.20.1 dated 08/20/01 03:00 am version). As a result
the bookmarks feature of the PDF is missing.

I would appreciate if you somebody could take a look at
that.


Cheers,

Chetan Vig


-
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: Ideas about PDFGraphics2D font handling for True Type to Type 1

2001-08-20 Thread Randall Parker

On Mon, 20 Aug 2001 10:31:35 +0200 (CEST), Tore Engvig wrote:

I'm not sure that you always can assume that java fonts are the same as
your system fonts, and I don't think you should map Arial to Helvetica. If
I remember correctly, Helvetica is a nice font, but Arial looks more
like... ugly. 

I am not generating visible documents with Arial. I'm generating PDF. So what Arial 
looks like does not matter as long as it has the same font metrics as Helvetica.

Also Arial exists in dozens of different versions, that goes
for other fonts to.

But the problem is that I need a TrueType font that I can instantiate. I can't 
instantiate a font that doesn't exist. Then I can call 
PDFDocumentGraphics2D.setFont(Font) with it. 

Windows machines have TrueType fonts. They rarely have Type 1 fonts. I want to use 
these ubiquitous fonts since I can count on being able to instantiate them. 

I guess that the simplest solution to your problem is to create
fontmetrics for your java fonts (those found in jre/lib) and add those to
fop with the same name as their java name.

How does that help? I want to specify the 3 font families that are built into Acrobat 
Reader (Helvetica, Times Roman, Courier). But in order to do that one has to be able 
to call 
PDFDocumentGraphics2D (or PDFGraphics2D) with setFont calls to specify them. Well, 
those are Type 1 fonts. I don't believe that Java can load Type 1 fonts from 
jre\lib\fonts on Win32 and 
it probably can't load Type 1 fonts from jre/lib/fonts on Linux or Unix either. But it 
can load TT fonts from jre/lib/fonts. 

Some TT fonts have the same font metrics as those 3 Type 1 fonts. So, since I need a 
way to tell the PDF document generation classes to use fonts that match those Type 1 
font metrics 
the TrueType fonts that are roughly equivalent to them and which have the same font 
metrics seem like the ones to use. 

 You don't have to embed them
in your document (just don't use embed file in your userconfig.xml).

I am not creating a document using XSL FO. I'm calling the PDFDocumentGraphics2D. 

(I'm going to be using XSL FO eventually though I don't see that that affects the 
problem anyhow)

As for sansserif and sans-serif, I don't think it's controversial to add a
mapping for both sansserif and sans-serif in FontSetup



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




cvs commit: xml-fop/docs/examples runtests.bat runtests.sh

2001-08-20 Thread gears

gears   01/08/20 09:16:46

  Modified:docs/examples runtests.bat runtests.sh
  Log:
  Added Avalon and Logkit to path to allow execution.
  
  Revision  ChangesPath
  1.11  +28 -28xml-fop/docs/examples/runtests.bat
  
  Index: runtests.bat
  ===
  RCS file: /home/cvs/xml-fop/docs/examples/runtests.bat,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- runtests.bat  2001/08/12 17:05:13 1.10
  +++ runtests.bat  2001/08/20 16:16:46 1.11
  @@ -1,28 +1,28 @@
  -@echo off
  -
  -echo Fop Test 
  -echo 
  -
  -if %JAVA_HOME% ==  goto error
  -
  -
  -set LIBDIR=..\..\lib
  -set 
LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\classes.zip;%LIBDIR%\ant.jar;%LIBDIR%\batik.jar;%LIBDIR%\buildtools.jar;%LIBDIR%\xerces-1.2.3.jar;%LIBDIR%\xalan-2.0.0.jar;%LIBDIR%\xalanj1compat.jar;%LIBDIR%\bsf.jar;%LIBDIR%\jimi-1.0.jar;%LIBDIR%\..\build\fop.jar

  -set ANT_HOME=%LIBDIR%
  -
  -echo Starting Tests ...
  -
  -%JAVA_HOME%\bin\java.exe -Dant.home=%ANT_HOME% -classpath 
%LOCALCLASSPATH%;%CLASSPATH% org.apache.tools.ant.Main %1 %2 %3 %4 %5
  -
  -goto end
  -
  -:error
  -
  -echo ERROR: JAVA_HOME not found in your environment.
  -echo Please, set the JAVA_HOME variable in your environment to match the
  -echo location of the Java Virtual Machine you want to use.
  -
  -:end
  -
  -rem set LOCALCLASSPATH=
  -
  +@echo off
  +
  +echo Fop Test 
  +echo 
  +
  +if %JAVA_HOME% ==  goto error
  +
  +
  +set LIBDIR=..\..\lib
  +set 
LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\classes.zip;%LIBDIR%\ant.jar;%LIBDIR%\batik.jar;%LIBDIR%\buildtools.jar;%LIBDIR%\xerces-1.2.3.jar;%LIBDIR%\xalan-2.0.0.jar;%LIBDIR%\xalanj1compat.jar;%LIBDIR%\bsf.jar;%LIBDIR%\avalon-framework-4.0.jar;%LIBDIR%\logkit-1.0b4.jar;%LIBDIR%\jimi-1.0.jar;%LIBDIR%\..\build\fop.jar
  +set ANT_HOME=%LIBDIR%
  +
  +echo Starting Tests ...
  +
  +%JAVA_HOME%\bin\java.exe -Dant.home=%ANT_HOME% -classpath 
%LOCALCLASSPATH%;%CLASSPATH% org.apache.tools.ant.Main %1 %2 %3 %4 %5
  +
  +goto end
  +
  +:error
  +
  +echo ERROR: JAVA_HOME not found in your environment.
  +echo Please, set the JAVA_HOME variable in your environment to match the
  +echo location of the Java Virtual Machine you want to use.
  +
  +:end
  +
  +rem set LOCALCLASSPATH=
  +
  
  
  
  1.8   +1 -1  xml-fop/docs/examples/runtests.sh
  
  Index: runtests.sh
  ===
  RCS file: /home/cvs/xml-fop/docs/examples/runtests.sh,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- runtests.sh   2001/05/18 09:55:42 1.7
  +++ runtests.sh   2001/08/20 16:16:46 1.8
  @@ -13,7 +13,7 @@
 exit 1
   fi
   LIBDIR=../../lib
  
-LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip:$LIBDIR/ant.jar:$LIBDIR/batik.jar:$LIBDIR/buildtools.jar:$LIBDIR/xerces-1.2.3.jar:$LIBDIR/xalan-2.0.0.jar:$LIBDIR/xalanj1compat.jar:$LIBDIR/bsf.jar:$LIBDIR/jimi-1.0.jar:$LIBDIR/../build/fop.jar
  
+LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip:$LIBDIR/ant.jar:$LIBDIR/batik.jar:$LIBDIR/buildtools.jar:$LIBDIR/xerces-1.2.3.jar:$LIBDIR/xalan-2.0.0.jar:$LIBDIR/xalanj1compat.jar:$LIBDIR/bsf.jar:$LIBDIR/avalon-framework-4.0.jar:$LIBDIR/logkit-1.0b4.jar:$LIBDIR/jimi-1.0.jar:$LIBDIR/../build/fop.jar
   ANT_HOME=$LIBDIR
   
   echo Building with classpath $CLASSPATH:$LOCALCLASSPATH
  
  
  

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




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

2001-08-20 Thread gears

gears   01/08/20 09:19:58

  Modified:docs/xml-docs xml2pdf.xsl
  Log:
  Fixes the id attribute to be ref-id to allow bookmarks to build.
  Leaves a weird xsl error that omits the fo:block in one place though.
  
  Revision  ChangesPath
  1.9   +2 -2  xml-fop/docs/xml-docs/xml2pdf.xsl
  
  Index: xml2pdf.xsl
  ===
  RCS file: /home/cvs/xml-fop/docs/xml-docs/xml2pdf.xsl,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- xml2pdf.xsl   2001/02/23 06:00:23 1.8
  +++ xml2pdf.xsl   2001/08/20 16:19:58 1.9
  @@ -118,7 +118,7 @@
   color=white
   text-align=center
   
  - xsl:attribute name=id
  + xsl:attribute name=ref-id
xsl:value-of select=translate(.,' ),-.(','')/
/xsl:attribute
xsl:value-of select=@title/
  @@ -191,7 +191,7 @@
   color=white
   text-align=center
   
  - xsl:attribute name=id
  + xsl:attribute name=ref-id
xsl:value-of select=translate(.,' ),-.(','')/
/xsl:attribute
xsl:value-of select=@title/
  
  
  

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




Re: Bookmarks

2001-08-20 Thread Chetan Vig

Actually, I was talking about the PDF Bookmarks (which uses the fox:outline
tag) the one on the left hand-side of the PDF, and not about the internal and
external links.

It uses the following extension in the fo:root
xmlns:fox=http://xml.apache.org/fop/extensions;

-Chetan


COFFMAN Steven wrote:

 I just used the latest CVS FOP and was able to use internal and external
 links with no problem.
 The attribute changed from id to ref-id for the destination some time
 ago, maybe that is what you are noticing?

 basic-link color=blue internal-destination=whatever

 -Steve
 -Original Message-
 From: Chetan Vig [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 20, 2001 11:13 AM
 To: fop
 Subject: Bookmarks

 Hi,

 I noticed that the PropertyMapping files have been deleted in the new
 Release (I have FOP 0.20.1 dated 08/20/01 03:00 am version). As a result
 the bookmarks feature of the PDF is missing.

 I would appreciate if you somebody could take a look at
 that.

 Cheers,

 Chetan Vig

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




Cocoon 2 FOP: Sharing SAX events

2001-08-20 Thread COFFMAN Steven

Whups. John's recent Cocoon 2 patch did not update to FOP 0.20 API, but was
just adding PCL and PS as valid outputs and refactoring for the old FOP API.

Peter West is doing some good work on serializing the parse events, and
generally opening up FOP to be less like a black box. His code is still
experimental, and not part of CVS yet however. I'm not sure what Cocoon's
release schedule is, but FOP 0.20 has a number of major improvements that
we'd like to get into Cocoon 2.0 final (like less than infinte memory
required for large documents).

BTW, John (as a Cocooner) is not subscribed to fop-dev, so please Cc him if
there's anything you want him to know. 
-Steve
-Original Message-
From: John Morrison [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 4:48 PM
To: COFFMAN Steven
Subject: RE: cocoon 2


Hi Steven,

Sorry, I don't believe that my patch fixes it, all it really does (and dims
did most of the refactoring) is add pcl and postscript to the available
serializers.  What we would like to do however is hook our SAX events
straight into FOPs.  How easy do you think it would be?

J.

PS, if you want a quicker response my work email is
[EMAIL PROTECTED]  I'm online continiously all day (GMT) from
8.20am till 4(ish)

 -Original Message-
 From: COFFMAN Steven [mailto:[EMAIL PROTECTED]]
 Sent: Monday, 20 August 2001 4:11 pm
 To: 'John Morrison'
 Subject: cocoon 2


 Hi John,
   The FOP team was going to submit a Cocoon 2 patch for our FOP 0.20
 release, but before we did so, your patch changed things. Does your patch
 work with the new version of FOP (which breaks the old API)? If so, cool,
 otherwise we'll try to get a patch out quick.
 -Steve


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




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

2001-08-20 Thread gears

gears   01/08/20 14:11:02

  Modified:.fop.bat fop.sh
   docs/xml-docs makedoc.bat makedoc.sh
   docs/xml-docs/fop extensions.xml
  Log:
  Fixes script classpaths to use avalon and logkit.
  Fixes last xml-doc bug that prevented generating the PDF.
  
  Revision  ChangesPath
  1.4   +1 -1  xml-fop/fop.bat
  
  Index: fop.bat
  ===
  RCS file: /home/cvs/xml-fop/fop.bat,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- fop.bat   2001/08/12 17:05:13 1.3
  +++ fop.bat   2001/08/20 21:11:02 1.4
  @@ -1 +1 @@
  -java -cp 
build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\jimi-1.0.jar 
org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6 %7 %8
  +java -cp 
build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\avalon-framework-4.0.jar;lib\logkit-1.0b4.jar;lib\jimi-1.0.jar
 org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6 %7 %8
  
  
  
  1.3   +3 -1  xml-fop/fop.sh
  
  Index: fop.sh
  ===
  RCS file: /home/cvs/xml-fop/fop.sh,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- fop.sh2001/05/17 07:43:56 1.2
  +++ fop.sh2001/08/20 21:11:02 1.3
  @@ -1,3 +1,5 @@
   #!/bin/sh
  -java -cp 
build/fop.jar:lib/batik.jar:lib/xalan-2.0.0.jar:lib/xerces-1.2.3.jar:lib/jimi-1.0.jar 
org.apache.fop.apps.Fop $@
  +LIBDIR=./lib
  
+LOCALCLASSPATH=$LIBDIR/../build/fop.jar:$LIBDIR/batik.jar:$LIBDIR/xalan-2.0.0.jar:$LIBDIR/xerces-1.2.3.jar:$LIBDIR/avalon-framework-4.0.jar:$LIBDIR/logkit-1.0b4.jar:$LIBDIR/jimi-1.0.jar
 
  +java -cp $CLASSPATH:$LOCALCLASSPATH org.apache.fop.apps.Fop $@
   
  
  
  
  1.13  +1 -1  xml-fop/docs/xml-docs/makedoc.bat
  
  Index: makedoc.bat
  ===
  RCS file: /home/cvs/xml-fop/docs/xml-docs/makedoc.bat,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- makedoc.bat   2001/05/18 09:55:51 1.12
  +++ makedoc.bat   2001/08/20 21:11:02 1.13
  @@ -8,7 +8,7 @@
   if %JAVA_HOME% ==  goto error
   
   set LIBDIR=..\..\lib
  -set 
LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\classes.zip;%LIBDIR%\ant.jar;%LIBDIR%\batik.jar;%LIBDIR%\buildtools.jar;%LIBDIR%\xerces-1.2.3.jar;%LIBDIR%\xalan-1.2.2.jar;%LIBDIR%\bsf.jar;%LIBDIR%\jimi-1.0.jar;%LIBDIR%\stylebook.jar;%LIBDIR%\..\build\fop.jar
  +set 
LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\classes.zip;%LIBDIR%\ant.jar;%LIBDIR%\batik.jar;%LIBDIR%\buildtools.jar;%LIBDIR%\xerces-1.2.3.jar;%LIBDIR%\xalan-1.2.2.jar;%LIBDIR%\bsf.jar;%LIBDIR%\avalon-framework-4.0.jar;%LIBDIR%\logkit-1.0b4.jar;%LIBDIR%\jimi-1.0.jar;%LIBDIR%\stylebook.jar;%LIBDIR%\..\build\fop.jar
   set ANT_HOME=%LIBDIR%
   
   
  
  
  
  1.14  +1 -1  xml-fop/docs/xml-docs/makedoc.sh
  
  Index: makedoc.sh
  ===
  RCS file: /home/cvs/xml-fop/docs/xml-docs/makedoc.sh,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- makedoc.sh2001/05/18 09:55:52 1.13
  +++ makedoc.sh2001/08/20 21:11:02 1.14
  @@ -16,7 +16,7 @@
   fi
   
   LIBDIR=../../lib
  
-LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip:$LIBDIR/ant.jar:$LIBDIR/batik.jar:$LIBDIR/buildtools.jar:$LIBDIR/xerces-1.2.3.jar:$LIBDIR/xalan-1.2.2.jar:$LIBDIR/bsf.jar:$LIBDIR/jimi-1.0.jar:$LIBDIR/stylebook.jar:$LIBDIR/../build/fop.jar
  
+LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip:$LIBDIR/ant.jar:$LIBDIR/batik.jar:$LIBDIR/buildtools.jar:$LIBDIR/xerces-1.2.3.jar:$LIBDIR/xalan-1.2.2.jar:$LIBDIR/bsf.jar:$LIBDIR/avalon-framework-4.0.jar:$LIBDIR/logkit-1.0b4.jar:$LIBDIR/jimi-1.0.jar:$LIBDIR/stylebook.jar:$LIBDIR/../build/fop.jar
   ANT_HOME=$LIBDIR
   
   echo Building with classpath $LOCALCLASSPATH:$CLASSPATH
  
  
  
  1.5   +2 -0  xml-fop/docs/xml-docs/fop/extensions.xml
  
  Index: extensions.xml
  ===
  RCS file: /home/cvs/xml-fop/docs/xml-docs/fop/extensions.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- extensions.xml2001/08/10 13:57:32 1.4
  +++ extensions.xml2001/08/20 21:11:02 1.5
  @@ -12,7 +12,9 @@
   xml markup.
   /p
 s3 title=SVG
  +p
   Please see the jump href=svg.htmlSVG page/jump for more details.
  +/p
 /s3
 s3 title=Bookmarks
pTo use this standard Fop extension, you need to add a namespace entry for
  
  
  

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




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

2001-08-20 Thread keiron

keiron  01/08/20 23:18:56

  Modified:src/org/apache/fop/apps CommandLineOptions.java
CommandLineStarter.java Driver.java
FOInputHandler.java Starter.java
TraxInputHandler.java XSLTInputHandler.java
   src/org/apache/fop/render PrintRenderer.java Renderer.java
   src/org/apache/fop/render/awt AWTRenderer.java
   src/org/apache/fop/render/mif MIFRenderer.java
   src/org/apache/fop/render/pcl PCLRenderer.java
   src/org/apache/fop/render/pdf PDFRenderer.java
   src/org/apache/fop/render/ps PSRenderer.java
   src/org/apache/fop/render/txt TXTRenderer.java
   src/org/apache/fop/render/xml XMLRenderer.java
   src/org/apache/fop/tools TestConverter.java
   src/org/apache/fop/tools/anttasks Fop.java
  Added:   src/org/apache/fop/render AbstractRenderer.java
  Log:
  changed to new logging for renderers
  
  Revision  ChangesPath
  1.12  +1 -2  xml-fop/src/org/apache/fop/apps/CommandLineOptions.java
  
  Index: CommandLineOptions.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/apps/CommandLineOptions.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- CommandLineOptions.java   2001/08/20 11:19:22 1.11
  +++ CommandLineOptions.java   2001/08/21 06:18:54 1.12
  @@ -1,5 +1,5 @@
   /*
  - * $Id: CommandLineOptions.java,v 1.11 2001/08/20 11:19:22 keiron Exp $
  + * $Id: CommandLineOptions.java,v 1.12 2001/08/21 06:18:54 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.
  @@ -13,7 +13,6 @@
   import java.io.FileNotFoundException;
   
   // FOP
  -import org.apache.fop.messaging.MessageHandler;
   import org.apache.fop.configuration.Configuration;
   import org.apache.fop.apps.FOPException;
   
  
  
  
  1.11  +1 -2  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.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- CommandLineStarter.java   2001/08/20 11:19:22 1.10
  +++ CommandLineStarter.java   2001/08/21 06:18:54 1.11
  @@ -1,5 +1,5 @@
   /*
  - * $Id: CommandLineStarter.java,v 1.10 2001/08/20 11:19:22 keiron Exp $
  + * $Id: CommandLineStarter.java,v 1.11 2001/08/21 06:18:54 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.
  @@ -21,7 +21,6 @@
   
   
   // FOP
  -import org.apache.fop.messaging.MessageHandler;
   import org.apache.fop.configuration.Configuration;
   
   /**
  
  
  
  1.33  +21 -16xml-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.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- Driver.java   2001/08/20 11:19:22 1.32
  +++ Driver.java   2001/08/21 06:18:54 1.33
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Driver.java,v 1.32 2001/08/20 11:19:22 keiron Exp $
  + * $Id: Driver.java,v 1.33 2001/08/21 06:18:54 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.
  @@ -207,6 +207,23 @@
   _treeBuilder.setLogger(log);
   }
   
  +private Logger getLogger() {
  +if(log == null) {
  +Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
  +PatternFormatter formatter = new PatternFormatter(
  +   [%{priority}]: %{message}\n%{throwable} );
  +
  +LogTarget target = null;
  +target = new StreamTarget(System.out, formatter);
  +
  +hierarchy.setDefaultLogTarget(target);
  +log = hierarchy.getLoggerFor(fop);
  +log.setPriority(Priority.INFO);
  +log.error(Logger not set);
  +}
  +return log;
  +}
  +
   /**
* Resets the Driver so it can be reused. Property and element
* mappings are reset to defaults.
  @@ -327,6 +344,7 @@
* @param renderer the renderer instance to use
*/
   public void setRenderer(Renderer renderer) {
  +renderer.setLogger(getLogger());
   _renderer = renderer;
   }
   
  @@ -420,22 +438,8 @@
* events but isn't a SAX Parser itself.
*/
   public