RE: PDFTranscoder Batik library in FOP 1.0

2003-12-29 Thread Petar
Well, it looks like Batik 1.5 label in CVS was set on 2003.07.11 so if the
Batik JAR in FOP 1.0 is the latest build from 2003.10.11 then we are already
using something newer than Batik 1.5.

I don't know if it would be appropriate but it would be nice to have a
corresponding label in Batik CVS for JARs checked in to FOP.  This way we would
know what source code it corresponds to.  The way it is now I don't know how to
find the source code for Batik JAR in FOP.  Is it is from 2003.07.11 in the
morning, or evening, or...

I see a new label in Batik CVS as batik-1_5_1rc2.  I might try to pull that
code and see if it works with FOP 1.0.

Petar

 -Original Message-
 From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, December 28, 2003 11:13 AM
 To: [EMAIL PROTECTED]
 Subject: Re: PDFTranscoder  Batik library in FOP 1.0
 
 Current batik.jar is from Oct 11 2003 and is a snapshot from 
 CVS if I read the commit message right.
 
 http://cvs.apache.org/viewcvs.cgi/xml-fop/lib/batik.jar
 
 Whether it works with Batik 1.5 I can't tell. But I hope so. 
 If not, that API should finally get nailed down.
 
 On 28.12.2003 19:11:21 Petar wrote:
  Looking through the old posts I noticed that it seems that 
 there is a 
  special version of Batik library being checked in with FOP. 
  Is there 
  any way to find out what version of Batik source code does 
 this Batik 
  JAR in FOP 1.0 correspond to?  Is this just a snapshot of Batik at 
  some point (1.5 for example) or does it contain special FOP-related 
  changes?  Will PDFTranscoder work with Batik 1.5?
  
  I am trying to track down some behaviors and I need to take 
 a look at 
  corresponding Batik source code.
 
 
 
 Jeremias Maerki
 


PDFTranscoder Batik library in FOP 1.0

2003-12-28 Thread Petar
Looking through the old posts I noticed that it seems that there is a special
version of Batik library being checked in with FOP.  Is there any way to find
out what version of Batik source code does this Batik JAR in FOP 1.0 correspond
to?  Is this just a snapshot of Batik at some point (1.5 for example) or does
it contain special FOP-related changes?  Will PDFTranscoder work with Batik
1.5?

I am trying to track down some behaviors and I need to take a look at
corresponding Batik source code.

Thanks,
Petar




PDFTranscoder and font-stretch attribute

2003-11-13 Thread Petar
Hello,

I was trying to use font-stretch attribute in my SVG which I wanted to
convert to PDF using PDFTranscoder.  I ran into some problems.

I first added the proper font element to my configuration file.  However, the
transcoder didn't use it as expected.  It ignored my stretch attribute.  It
turns out, FOP does not support this attribute for font lookups.  It only uses
family, weight, and style.  These seem to be consistent with CSS1 but not with
CSS2.  CSS2 has added font-stretch attribute and font-variant.

Is there a plan to support these additional attributes?  Is seems that for
PDFTranscoder the changes will be needed in:
fop.apps.Document
fop.render.pdf.FontSetup
fop.svg.PDFTextPainter

Of course, other renderes besides PDFTranscoder would need to be changed as
well but it could be possible to keep backwards compatibility.

Is this something that is in plans?  If not, would you accept potential
contributions?

Thanks,
Petar






RE: [PATCH] Fix DPI for PDF Transcoder.

2003-11-05 Thread OBRADOVIC,PETAR (HP-Vancouver,ex1)
I am sorry if I am missing something obvious but I am not able to build the
latest code after this change.  It seems that batik.jar which is checked
in xml-fop CVS does not contain this class
(SVGAbstractTranscoderUserAgent).  I looked in xml-batik but I didn't have
any luck finding this class there either.

I am Ok for now by switching back to version 1.7 of PDFTranscoder.java. 

Petar


-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 05, 2003 9:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [PATCH] Fix DPI for PDF Transcoder.

--- Thomas DeWeese [EMAIL PROTECTED] wrote:
  BTW, an embarrassing Java 101 question:  Why
 wasn't it
  necessary to manually import the
  SVGAbstractTranscoderUserAgent class in the PDFTranscoder.java file?
 
Because it is an innerclass of a baseclass.

OK...I see it now, it's defined in
SVGAbstractTranscoder, which PDFTranscoder descends from.

Glen


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


PDFTranscoder configuration and CVS branches

2003-10-20 Thread OBRADOVIC,PETAR (HP-Vancouver,ex1)
I have downloaded the FOP's main branch and I have built it successfully.
After playing with the PDFTranscoder  (only, no FOP) for several days I
wanted to take the next step and try to add some custom fonts.  I traced
through the code and I think I need to provide a configuration class which
implements Avalon's Configuration interface and at the same time can parse
FOP's configuration file (for font metrics).

I was not able to find such class.  I noticed that there is
src/java/org/apache/fop/configuration package in Alt-Design and
src/org/apache/fop/configuration in fop-0_20_5 but I could not find anything
in the main trunk.  Previously mentioned classes do not implement
Configuration interface but could at least be a start for one.  In addition,
I was not able to find any configuration related classes in the trunk.

How can I configure the latest PDFTranscoder code?  Am I looking in wrong
places?

Thank you very much,
Petar Obradovic



PDFTranscoder configuration and CVS branches

2003-10-20 Thread OBRADOVIC,PETAR (HP-Vancouver,ex1)
My apology for posting the question below to the dev list.  It was meant to
go to the user list.

Petar

-Original Message-
From: OBRADOVIC,PETAR (HP-Vancouver,ex1) [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 7:29 PM
To: FOP ([EMAIL PROTECTED])
Subject: PDFTranscoder configuration and CVS branches


I have downloaded the FOP's main branch and I have built it successfully.
After playing with the PDFTranscoder  (only, no FOP) for several days I
wanted to take the next step and try to add some custom fonts.  I traced
through the code and I think I need to provide a configuration class which
implements Avalon's Configuration interface and at the same time can parse
FOP's configuration file (for font metrics).

I was not able to find such class.  I noticed that there is
src/java/org/apache/fop/configuration package in Alt-Design and
src/org/apache/fop/configuration in fop-0_20_5 but I could not find anything
in the main trunk.  Previously mentioned classes do not implement
Configuration interface but could at least be a start for one.  In addition,
I was not able to find any configuration related classes in the trunk.

How can I configure the latest PDFTranscoder code?  Am I looking in wrong
places?

Thank you very much,
Petar Obradovic