DO NOT REPLY [Bug 11278] - cannot build FOP - .SerializeHyphPattern cannot be found

2002-08-12 Thread bugzilla

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

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

cannot build FOP - .SerializeHyphPattern cannot be found

[EMAIL PROTECTED] changed:

   What|Removed |Added

 AssignedTo|[EMAIL PROTECTED]  |[EMAIL PROTECTED]
 Status|ASSIGNED|NEW



--- Additional Comments From [EMAIL PROTECTED]  2002-08-13 06:06 ---
There are two axes to address:

1. With regard to "build clean" still having problems, since the JDK is 1.4, 
there is a known issue with that platform, documented at 
http://xml.apache.org/fop/relnotes.html. The specific item is currently bullet 
#6 under the heading "FOP 0.20.4", and a solution is suggested there. An 
alternative solution is to build under JDK 1.3. Please confirm whether 
addressing this issue (along with "build clean") makes the build complete 
successfully.

2. With regard to the dependencies in the build file, J.Pietschmann is correct 
that there some issues. I'll be glad to track the problem down if you will 
document the steps that make it fail.

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




DO NOT REPLY [Bug 11278] - cannot build FOP - .SerializeHyphPattern cannot be found

2002-08-12 Thread bugzilla

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

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

cannot build FOP - .SerializeHyphPattern cannot be found

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED

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




Re: Encoding Filters(Formally Re: Hope this helps- RunLengthEncod eFilter)

2002-08-12 Thread Jeremias Maerki

Manuel

Looks like I missed this. At least, I can say that I could profit from
CCITT group 4 because we have a project at work where we have to include
several different monochrome images in a lot of documents. So this may
decrease file size when compared to the FlateEncodeFilter. If it's
dependent on JAI, so be it. That just means we have to make it optional,
somehow. Want to send a patch?


On 13.08.2002 04:49:56 Manuel Mall wrote:
> I did (sort of) integrate the CCITT/TIFF compression based on JAI earlier
> this year. See http://marc.theaimsgroup.com/?l=fop-dev&m=101125782918974&w=2
> 
> But nobody seemed to be interested at the time.

Jeremias Maerki


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




Re: just a thought

2002-08-12 Thread Jeremias Maerki

I agree with Arved. I think it's a small change with a reasonable chance
of improving things a bit.
 
On 13.08.2002 03:09:52 Arved Sandstrom wrote:
> > -Original Message-
> > From: Oleg Tkachenko [mailto:[EMAIL PROTECTED]]
> > Sent: August 12, 2002 8:16 PM
> > To: [EMAIL PROTECTED]
> > Subject: just a thought
> >
> > It's probably not too late to consider some trivial optimization of fo
> > tree in redesign code. In a typical fo document probably about 30% of
> > elements have no children or have only one child (text node usually), so
> > instead of eager
> > protected ArrayList children = new ArrayList();
> > in FObj.java we can consider lazy polymorphic member
> > protected Object children = null;
> > 1) For no chidren case it remains to be null.
> > 2) For 1 child case it is FONode object.
> > 3) For children case it is ArrayList.
> > This means some additional logic must be implmented at addChild() and
> > getChildren() methods.
> >
> > Any thoughts?
> 
> Seems reasonable to me, Oleg. The default constructor for ArrayList creates
> an array of 10 Objects. An inexpensive check for null in addChild() is
> unlikely to cost more, even over many children, especially averaged over an
> entire document.
> 
> Case 2 might be overkill, unless one can make the case that single children
> are frequent enough to make this extra logic worthwhile. Comments?
> 
> Regards,
> Arved


Jeremias Maerki


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




Re: Encoding Filters(Formally Re: Hope this helps- RunLengthEncodeFilter)

2002-08-12 Thread Jeremias Maerki

Hi Stephen

On 13.08.2002 04:40:37 Stephen Wolke wrote:
> Jeremias
> 
> I would love to have some fun, but is this your idea of fun?? ;-)

Sure. :-)

> I will take you up on the offer, report back and tell you whether it was
> found to be fun or not.
>
> Also, I had looked into the CCITT filter briefly and noticed at that time
> the JAI API has this  and many other encoding filters in it. When trying to
> see how much work it would have been to integrate the JAI into the FOP I
> noticed the FopImageFactory has some commented out code that would lead me
> to believe I was not the only one to consider the route of having the JAI
> handle the images.  Now to my question.  Was this just a passing thought or
> is this the direction being forged or does anybody know?  I am just curious.

It was just an idea. Not really needed. I don't know what's the best way
to implement it, but let me tell you this: Don't do it if if it's not
fun for you AND if you don't need it, because there are a lot of other
things that are more important if you like to contribute more to this
project.

> Lastly, to clear my foggy head, my understanding is that the CCITT encoding
> is fax encoding is intended for encoding in black and white only and is some
> how related to the Tag Image File Format (TIFF).  Is that a correct
> understanding?

Yes, AFAIK.

Have fun!

Jeremias Maerki


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




Re: problem when building fop

2002-08-12 Thread ehoo

Timothy,

PLS check org.apache.fop.svg.PDFGraphics2D.java.

Edit it to flow

1289// needed for compiling under jdk1.4
1290public java.awt.image.VolatileImage 1291
createCompatibleVolatileImage(int width, int height) {
1292return null;
1293}

Good luck and sorry about my bad english:)

=== 2002-08-13 12:13:00 £º===

>Hi expert,
>
>when i build fop  i get the following error can any one  help me
>i am using  JDK1.4
>
>thx
>
>
>
>Fop Build System
>
>Building with classpath
>d:\jdk140\lib\tools.jar;d:\jdk140\lib\classes.zip;lib\ant-1.4.1.jar;lib\bati
>k.jar;lib\buildtools.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\xalan
>-2.3.1.jar;lib\bsf.jar;lib\jimi-1.0.jar;lib\avalon-framework-cvs-20020315.ja
>r
>Starting Ant...
>Buildfile: build.xml
>
>init-avail:
>
>init-filters-xalan2:
>
>init:
> [echo] --- Fop 0.20.4 [1999-2002] 
>
>prepare:
> [echo] Preparing the build directories
>
>codegen:
> [echo] Resetting codegen directory
> [echo] Generating the java files from xml resources
>
>prepare-jimi:
>
>prepare-jai:
>
>prepare-trax:
> [echo] JAXP1.1 transforms is present. Installing TRaX support
>
>prepare-src:
>
>compile:
> [echo] Compiling the sources
>[javac] Compiling 311 source files to
>E:\reference\test\fop-0.20.4\build\classes
>[javac] Note: sun.tools.javac.Main has been deprecated.
>[javac]
>E:\reference\test\fop-0.20.4\build\src\org\apache\fop\svg\PDFGraphics2D.java
>:1199: nested class org.apache.fop.svg.PDFGraphics2D.
>PDFGraphicsConfiguration is an abstract class. It can't be instantiated.
>[javac] return new PDFGraphicsConfiguration();
>[javac]^
>[javac]
>E:\reference\test\fop-0.20.4\build\src\org\apache\fop\svg\PDFGraphics2D.java
>:1206: nested class org.apache.fop.svg.PDFGraphics2D.
>PDFGraphicsConfiguration must be declared abstract. It does not define
>java.awt.image.VolatileImage createCompatibleVolatileImage(int, int) from
>class java.awt.GraphicsConfiguration.
>[javac] static class PDFGraphicsConfiguration extends
>GraphicsConfiguration {
>[javac]  ^
>[javac] 2 errors, 1 warning
>
>Total time: 11 seconds
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.381 / Virus Database: 214 - Release Date: 2002/8/2
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]

= = = = = = = = = = = = = = = = = = = =


ÖÂ
Àñ£¡


ehoo
[EMAIL PROTECTED]
2002-08-13



_
Do You Yahoo!?
ÐÂÏʵ½µ×,ÓéÀÖµ½¼Ò - ÑÅ»¢ÍƳöÃâ·ÑÓéÀÖµç×ÓÖܱ¨!
http://cn.ent.yahoo.com/newsletter/index.html

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




problem when building fop

2002-08-12 Thread Timothy

Hi expert,

when i build fop  i get the following error can any one  help me
i am using  JDK1.4

thx



Fop Build System

Building with classpath
d:\jdk140\lib\tools.jar;d:\jdk140\lib\classes.zip;lib\ant-1.4.1.jar;lib\bati
k.jar;lib\buildtools.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\xalan
-2.3.1.jar;lib\bsf.jar;lib\jimi-1.0.jar;lib\avalon-framework-cvs-20020315.ja
r
Starting Ant...
Buildfile: build.xml

init-avail:

init-filters-xalan2:

init:
 [echo] --- Fop 0.20.4 [1999-2002] 

prepare:
 [echo] Preparing the build directories

codegen:
 [echo] Resetting codegen directory
 [echo] Generating the java files from xml resources

prepare-jimi:

prepare-jai:

prepare-trax:
 [echo] JAXP1.1 transforms is present. Installing TRaX support

prepare-src:

compile:
 [echo] Compiling the sources
[javac] Compiling 311 source files to
E:\reference\test\fop-0.20.4\build\classes
[javac] Note: sun.tools.javac.Main has been deprecated.
[javac]
E:\reference\test\fop-0.20.4\build\src\org\apache\fop\svg\PDFGraphics2D.java
:1199: nested class org.apache.fop.svg.PDFGraphics2D.
PDFGraphicsConfiguration is an abstract class. It can't be instantiated.
[javac] return new PDFGraphicsConfiguration();
[javac]^
[javac]
E:\reference\test\fop-0.20.4\build\src\org\apache\fop\svg\PDFGraphics2D.java
:1206: nested class org.apache.fop.svg.PDFGraphics2D.
PDFGraphicsConfiguration must be declared abstract. It does not define
java.awt.image.VolatileImage createCompatibleVolatileImage(int, int) from
class java.awt.GraphicsConfiguration.
[javac] static class PDFGraphicsConfiguration extends
GraphicsConfiguration {
[javac]  ^
[javac] 2 errors, 1 warning

Total time: 11 seconds
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 2002/8/2


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




RE: Encoding Filters(Formally Re: Hope this helps- RunLengthEncodeFilter)

2002-08-12 Thread Manuel Mall

I did (sort of) integrate the CCITT/TIFF compression based on JAI earlier
this year. See http://marc.theaimsgroup.com/?l=fop-dev&m=101125782918974&w=2

But nobody seemed to be interested at the time.

Manuel
-Original Message-
From: Stephen Wolke [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 13 August 2002 10:41
To: [EMAIL PROTECTED]
Subject: Encoding Filters(Formally Re: Hope this helps-
RunLengthEncodeFilter)


Jeremias

I would love to have some fun, but is this your idea of fun?? ;-)
I will take you up on the offer, report back and tell you whether it was
found to be fun or not.

Also, I had looked into the CCITT filter briefly and noticed at that time
the JAI API has this  and many other encoding filters in it. When trying to
see how much work it would have been to integrate the JAI into the FOP I
noticed the FopImageFactory has some commented out code that would lead me
to believe I was not the only one to consider the route of having the JAI
handle the images.  Now to my question.  Was this just a passing thought or
is this the direction being forged or does anybody know?  I am just curious.

Lastly, to clear my foggy head, my understanding is that the CCITT encoding
is fax encoding is intended for encoding in black and white only and is some
how related to the Tag Image File Format (TIFF).  Is that a correct
understanding?


Thanks,

Stephen Wolke


-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 1:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Hope this helps- RunLengthEncodeFilter


Hi Stephen

I've committed the filter to both maintenance and main branches. Your
code seems to work well, but obviously doesn't bring much for color
images because they are currently encoded as a mixed data source
(RGBRGBRGBRG, for example). To profit more from RLE compression we would
have to encode 3 (or 4 for CMYK) separate channels which required some
more work (would result in RRRGGGBBB). But at least for greyscale images
(when only working with PS Level 2) the RLE filter should produce
considerably smaller files. Would you like to have some more fun
implementing a CCITT filter? :-) The PDF renderer could profit from this,
too, I guess. Thanks, anyway!


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]

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




Encoding Filters(Formally Re: Hope this helps- RunLengthEncodeFilter)

2002-08-12 Thread Stephen Wolke

Jeremias

I would love to have some fun, but is this your idea of fun?? ;-)
I will take you up on the offer, report back and tell you whether it was
found to be fun or not.

Also, I had looked into the CCITT filter briefly and noticed at that time
the JAI API has this  and many other encoding filters in it. When trying to
see how much work it would have been to integrate the JAI into the FOP I
noticed the FopImageFactory has some commented out code that would lead me
to believe I was not the only one to consider the route of having the JAI
handle the images.  Now to my question.  Was this just a passing thought or
is this the direction being forged or does anybody know?  I am just curious.

Lastly, to clear my foggy head, my understanding is that the CCITT encoding
is fax encoding is intended for encoding in black and white only and is some
how related to the Tag Image File Format (TIFF).  Is that a correct
understanding?


Thanks,

Stephen Wolke


-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 1:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Hope this helps- RunLengthEncodeFilter


Hi Stephen

I've committed the filter to both maintenance and main branches. Your
code seems to work well, but obviously doesn't bring much for color
images because they are currently encoded as a mixed data source
(RGBRGBRGBRG, for example). To profit more from RLE compression we would
have to encode 3 (or 4 for CMYK) separate channels which required some
more work (would result in RRRGGGBBB). But at least for greyscale images
(when only working with PS Level 2) the RLE filter should produce
considerably smaller files. Would you like to have some more fun
implementing a CCITT filter? :-) The PDF renderer could profit from this,
too, I guess. Thanks, anyway!


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]




help!!!

2002-08-12 Thread ehoo

Hello master-hand:

I using JAVA only one year!

My boss order me analyse FOP,and rewrite in C++;I think it's impossible!

Now,I want to know.How long time I can find out the design about FOP complete? 
Otherwise I am 22 old,  experience less one year!

Can you help me???  


[EMAIL PROTECTED]
2002-08-13


_
Do You Yahoo!?
ÒøÐоÞÍ·¾Û»áÖÐÔ­ ´óÀËÌÔ¡®½ð¡¯Ë­½«Ð¦°Á
http://sweepstakes.yahoo.com/bank_surveywave2/

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




RE: just a thought

2002-08-12 Thread Arved Sandstrom

> -Original Message-
> From: Oleg Tkachenko [mailto:[EMAIL PROTECTED]]
> Sent: August 12, 2002 8:16 PM
> To: [EMAIL PROTECTED]
> Subject: just a thought
>
> It's probably not too late to consider some trivial optimization of fo
> tree in redesign code. In a typical fo document probably about 30% of
> elements have no children or have only one child (text node usually), so
> instead of eager
> protected ArrayList children = new ArrayList();
> in FObj.java we can consider lazy polymorphic member
> protected Object children = null;
> 1) For no chidren case it remains to be null.
> 2) For 1 child case it is FONode object.
> 3) For children case it is ArrayList.
> This means some additional logic must be implmented at addChild() and
> getChildren() methods.
>
> Any thoughts?

Seems reasonable to me, Oleg. The default constructor for ArrayList creates
an array of 10 Objects. An inexpensive check for null in addChild() is
unlikely to cost more, even over many children, especially averaged over an
entire document.

Case 2 might be overkill, unless one can make the case that single children
are frequent enough to make this extra logic worthwhile. Comments?

Regards,
Arved


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




PDF Security using FOP.

2002-08-12 Thread Avula, Raj


Hi,
I have a basic question about the generated PDF document using FOP.
It is possible to apply security features to PDF output like making pdf
output read-only
and disabling the copy operation on the output etc..

Thanks for the help.
Raj...

"MMS " made the following
 annotations on 08/12/02 16:21:47
--
"THIS E-MAIL MESSAGE AND ANY FILES TRANSMITTED HEREWITH, ARE INTENDED SOLELY FOR THE 
USE OF THE INDIVIDUAL(S) ADDRESSED AND MAY CONTAIN CONFIDENTIAL, PROPRIETARY OR 
PRIVILEGED INFORMATION.  IF YOU ARE NOT THE ADDRESSEE INDICATED IN THIS MESSAGE (OR 
RESPONSIBLE FOR DELIVERY OF THIS MESSAGE TO SUCH PERSON) YOU MAY NOT REVIEW, USE, 
DISCLOSE OR DISTRIBUTE THIS MESSAGE OR ANY FILES TRANSMITTED HEREWITH.  IF YOU RECEIVE 
THIS MESSAGE IN ERROR, PLEASE CONTACT THE SENDER BY REPLY E-MAIL AND DELETE THIS 
MESSAGE AND ALL COPIES OF IT FROM YOUR SYSTEM."

==


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




just a thought

2002-08-12 Thread Oleg Tkachenko

Hello!

It's probably not too late to consider some trivial optimization of fo 
tree in redesign code. In a typical fo document probably about 30% of 
elements have no children or have only one child (text node usually), so 
instead of eager
protected ArrayList children = new ArrayList();
in FObj.java we can consider lazy polymorphic member
protected Object children = null;
1) For no chidren case it remains to be null.
2) For 1 child case it is FONode object.
3) For children case it is ArrayList.
This means some additional logic must be implmented at addChild() and 
getChildren() methods.

Any thoughts?

-- 
Oleg Tkachenko
Multiconn International, Israel


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




Re: Font question

2002-08-12 Thread Jessica Perry Hekman

On Mon, 12 Aug 2002, J.Pietschmann wrote:

> You can find the Unicode code points for the characters
> in the ZapfDingbats font in the FOP soure distribution
> in src/codegen/charlist.xml, all the mappings with
> adobe-name="aNNN" with some NNN number.

That worked perfectly. Thanks so much!

j

---
  "Users complain that they receive too much spam, while spammers protest
messages are legal." -InfoWorld
  "You do not have to do everything disagreeable that you have a right to
do." -Judith Martin (Miss Manners)


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




Re: Font question

2002-08-12 Thread J.Pietschmann

Jessica Perry Hekman wrote:
>  
>   Symbol 12345
>   
>   
>   ZapfDingbats: ahijk '"\] 12345
>   
> 
> In the PDF generated by FOP, I see:
> 
>   ## 12345
> 
> and then a bunch of images of scissors for the ZapfDingbats text.
> 
> Surely that can't be right; I expected to see more varied Dingbats :) Am I 
> doing something wrong? Is this really the expected output for those fonts?

The scissors appears to be what ZapfDingbats displays for
the default unmapped character. You have to use proper
Unicode codepoints for the characters you want to see, for
example, try
  
   ➯
  

You can find the Unicode code points for the characters
in the ZapfDingbats font in the FOP soure distribution
in src/codegen/charlist.xml, all the mappings with
adobe-name="aNNN" with some NNN number.

J.Pietschmann



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




Re: Tasks - layout

2002-08-12 Thread J.Pietschmann

Kevin O'Neill wrote:
> Any PDF tasks?
> 
Encryption related stuff seems to be often asked for.

J.Pietschmann



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




AW: Tasks - layout

2002-08-12 Thread J.U. Anderegg

o Are there specified packages, classes to be programmed? Are the
interfaces/interface objects specified?
o Are prerequisite packages or test drivers available?
o Are the basic formatting rules documented: how are (collapsing) borders,
margins, spaces added and adjusted in area calculations,passed to renderers?

> As far as I know there is never a case where a finished page should be
> redone. Once a page is complete that is it.
> Those problems should be solved during the layout of a page only and not
> considering furture pages.

and if you have a TOC at the begin of a document, "see page 967" on page 3
("967" unresolved at formatting time of page 3)? Are optimal/maximal/minimal
space, floats, footnotes, keeps, table breaks adequately handled without
lookahead and backtracking, multiple formatting passes?

Hansuli Anderegg



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




Font question

2002-08-12 Thread Jessica Perry Hekman

http://xml.apache.org/fop/fonts.html says:

 FOP (building PDF files) normally supports only the base 14 font package 
 defined in the Adobe PDF specification. That includes the following 
 fonts: Helvetica, Times, Courier, Symbol and ZapfDingbats.

I have in an FO document:

 
  Symbol 12345
  
  
  ZapfDingbats: ahijk '"\] 12345
  

In the PDF generated by FOP, I see:

  ## 12345

and then a bunch of images of scissors for the ZapfDingbats text.

Surely that can't be right; I expected to see more varied Dingbats :) Am I 
doing something wrong? Is this really the expected output for those fonts?

j

---
  "Users complain that they receive too much spam, while spammers protest
messages are legal." -InfoWorld
  "You do not have to do everything disagreeable that you have a right to
do." -Judith Martin (Miss Manners)



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




Re: Hope this helps- RunLengthEncodeFilter

2002-08-12 Thread Jeremias Maerki

Hi Stephen

I've committed the filter to both maintenance and main branches. Your
code seems to work well, but obviously doesn't bring much for color
images because they are currently encoded as a mixed data source
(RGBRGBRGBRG, for example). To profit more from RLE compression we would
have to encode 3 (or 4 for CMYK) separate channels which required some
more work (would result in RRRGGGBBB). But at least for greyscale images
(when only working with PS Level 2) the RLE filter should produce
considerably smaller files. Would you like to have some more fun
implementing a CCITT filter? :-) The PDF renderer could profit from this,
too, I guess. Thanks, anyway!


Jeremias Maerki


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




cvs commit: xml-fop CHANGES

2002-08-12 Thread jeremias

jeremias2002/08/12 10:05:51

  Modified:.Tag: fop-0_20_2-maintain CHANGES
  Log:
  Update to reflect changes in PS renderer
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.10.2.23 +4 -0  xml-fop/CHANGES
  
  Index: CHANGES
  ===
  RCS file: /home/cvs/xml-fop/CHANGES,v
  retrieving revision 1.10.2.22
  retrieving revision 1.10.2.23
  diff -u -r1.10.2.22 -r1.10.2.23
  --- CHANGES   7 Aug 2002 10:31:37 -   1.10.2.22
  +++ CHANGES   12 Aug 2002 17:05:51 -  1.10.2.23
  @@ -2,6 +2,10 @@
   Done since 0.20.4 release
   
   - New Avalon Framework JAR with Log4J support (Bug 11274) (Jeremias Maerki)
  +- Added a RunLengthEncode filter for the PostScript renderer
  +  Submitted by: Stephen Wolke <[EMAIL PROTECTED]>
  +- Added a property on the PostScript renderer for switching between PostScript
  +  Level 2 and 3. Default is Level 3. (Jeremias Maerki)
   
   ==
   Done since 0.20.3 release
  
  
  

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




cvs commit: xml-fop/src/org/apache/fop/render/ps RunLengthEncodeOutputStream.java PSRenderer.java

2002-08-12 Thread jeremias

jeremias2002/08/12 10:05:09

  Modified:src/org/apache/fop/render/ps Tag: fop-0_20_2-maintain
PSRenderer.java
  Added:   src/org/apache/fop/render/ps Tag: fop-0_20_2-maintain
RunLengthEncodeOutputStream.java
  Log:
  Added a RunLengthEncode filter for the PostScript renderer.
  Submitted by: Stephen Wolke <[EMAIL PROTECTED]>
  
  Added a property on the PostScript renderer for switching between PostScript
  Level 2 and 3. Default is Level 3. (Jeremias Maerki)
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.15.2.9  +1095 -1062xml-fop/src/org/apache/fop/render/ps/PSRenderer.java
  
  Index: PSRenderer.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/ps/PSRenderer.java,v
  retrieving revision 1.15.2.8
  retrieving revision 1.15.2.9
  diff -u -r1.15.2.8 -r1.15.2.9
  --- PSRenderer.java   2 Aug 2002 20:28:57 -   1.15.2.8
  +++ PSRenderer.java   12 Aug 2002 17:05:09 -  1.15.2.9
  @@ -1,1062 +1,1095 @@
  -/*
  - * $Id$
  - * Copyright (C) 2001-2002 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.render.ps;
  -
  -// FOP
  -import org.apache.fop.svg.SVGArea;
  -import org.apache.fop.render.AbstractRenderer;
  -import org.apache.fop.render.Renderer;
  -import org.apache.fop.image.ImageArea;
  -import org.apache.fop.image.FopImage;
  -import org.apache.fop.image.FopImageException;
  -import org.apache.fop.image.JpegImage;
  -import org.apache.fop.layout.*;
  -import org.apache.fop.layout.inline.*;
  -import org.apache.fop.datatypes.*;
  -import org.apache.fop.fo.properties.*;
  -import org.apache.fop.render.pdf.Font;
  -import org.apache.fop.image.*;
  -import org.apache.fop.apps.FOPException;
  -
  -import org.apache.batik.bridge.*;
  -import org.apache.batik.swing.svg.*;
  -import org.apache.batik.swing.gvt.*;
  -import org.apache.batik.gvt.*;
  -import org.apache.batik.gvt.renderer.*;
  -import org.apache.batik.gvt.filter.*;
  -import org.apache.batik.gvt.event.*;
  -
  -// SVG
  -import org.w3c.dom.svg.SVGSVGElement;
  -import org.w3c.dom.svg.SVGDocument;
  -import org.w3c.dom.*;
  -import org.w3c.dom.svg.*;
  -
  -// Java
  -import java.io.*;
  -import java.util.*;
  -import java.io.IOException;
  -import java.io.OutputStream;
  -import java.util.Iterator;
  -import java.util.ArrayList;
  -import java.util.HashMap;
  -import java.awt.geom.AffineTransform;
  -import java.awt.geom.Dimension2D;
  -import java.awt.Point;
  -import java.awt.RenderingHints;
  -import java.awt.Dimension;
  -
  -/*
  -PostScript renderer
  -
  -Remarks:
  -- If anyone modifies this renderer please make sure to also follow the DSC to
  -  make it simpler to programmatically modify the generated Postscript files
  -  (ex. extract pages etc.).
  -- The filters in use are hardcoded at the moment.
  -- Modified by Mark Lillywhite [EMAIL PROTECTED], to use the new
  -  Renderer interface. This PostScript renderer appears to be the
  -  most efficient at producing output.
  -
  -TODO-List:
  -- Character size/spacing
  -- SVG Transcoder for Batik
  -- configuration
  -- move to PrintRenderer
  -- maybe improve filters (I'm not very proud of them)
  -- add a RunLengthEncode filter (useful for Level 2 Postscript)
  -- Improve DocumentProcessColors stuff (probably needs to be configurable, then 
maybe
  -  add a color to grayscale conversion for bitmaps to make output smaller (See
  -  PCLRenderer)
  -- enhanced font support and font embedding
  -- support different character encodings
  -- try to implement image transparency
  -- Add PPD support
  -- fix border painting (see table.fo)
  -
  -*/
  -
  -/**
  - * Renderer that renders to PostScript.
  - * 
  - * This class currently generates PostScript Level 2 code. The only exception
  - * is the FlateEncode filter which is a Level 3 feature. The PostScript code
  - * generated follows the Document Structuring Conventions (DSC) version 3.0.
  - *
  - * @author Jeremias Märki
  - */
  -public class PSRenderer extends AbstractRenderer {
  -
  -/**
  - * the application producing the PostScript
  - */
  -protected String producer;
  -
  -int imagecount = 0;// DEBUG
  -int pagecount = 0;
  -
  -private boolean enableComments = true;
  -
  -/**
  - * the stream used to output the PostScript
  - */
  -protected PSStream out;
  -private boolean ioTrouble = false;
  -
  -private String currentFontName;
  -private int currentFontSize;
  -private int pageHeight;
  -private int pageWidth;
  -private float currRed;
  -private float currGreen;
  -   

cvs commit: xml-fop status.xml

2002-08-12 Thread jeremias

jeremias2002/08/12 09:57:16

  Modified:.status.xml
  Log:
  Updated to reflect changes on PS renderer.
  
  Revision  ChangesPath
  1.7   +8 -0  xml-fop/status.xml
  
  Index: status.xml
  ===
  RCS file: /home/cvs/xml-fop/status.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- status.xml7 Aug 2002 17:33:45 -   1.6
  +++ status.xml12 Aug 2002 16:57:16 -  1.7
  @@ -76,6 +76,14 @@
   
 
  
  +
  +  Added a RunLengthEncode filter for the PostScript renderer.
  +
  +
  +  Replaced the PostScript filters with the refactored ones from the maintenance 
  +  branch.
  +
   
 First batch of changes in preparation for adoption of Avalon patterns. 
 Only changes on logging for now. Mostly usage of LogEnabled contract 
interface.
  
  
  

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




cvs commit: xml-fop/src/org/apache/fop/render/ps ASCII85OutputStream.java ASCIIHexOutputStream.java Finalizable.java FlateEncodeOutputStream.java RunLengthEncodeOutputStream.java ASCII85EncodeFilter.java ASCIIHexEncodeFilter.java Filter.java FilterThread.java FlateEncodeFilter.java

2002-08-12 Thread jeremias

jeremias2002/08/12 09:56:22

  Added:   src/org/apache/fop/render/ps ASCII85OutputStream.java
ASCIIHexOutputStream.java Finalizable.java
FlateEncodeOutputStream.java
RunLengthEncodeOutputStream.java
  Removed: src/org/apache/fop/render/ps ASCII85EncodeFilter.java
ASCIIHexEncodeFilter.java Filter.java
FilterThread.java FlateEncodeFilter.java
  Log:
  Replaced the PostScript filters with the refactored ones from the maintenance
  branch. (JM)
  
  Added a RunLengthEncode filter for the PostScript renderer.
  Submitted by: "Stephen Wolke" <[EMAIL PROTECTED]>
  
  Revision  ChangesPath
  1.2   +201 -0xml-fop/src/org/apache/fop/render/ps/ASCII85OutputStream.java
  
  
  
  
  1.2   +81 -0 xml-fop/src/org/apache/fop/render/ps/ASCIIHexOutputStream.java
  
  
  
  
  1.2   +30 -0 xml-fop/src/org/apache/fop/render/ps/Finalizable.java
  
  
  
  
  1.2   +39 -0 
xml-fop/src/org/apache/fop/render/ps/FlateEncodeOutputStream.java
  
  
  
  
  1.1  
xml-fop/src/org/apache/fop/render/ps/RunLengthEncodeOutputStream.java
  
  Index: RunLengthEncodeOutputStream.java
  ===
  /*
   * $Id: RunLengthEncodeOutputStream.java,v 1.1 2002/08/12 16:56:22 jeremias 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.
   */
  package org.apache.fop.render.ps;
  
  import java.io.FilterOutputStream;
  import java.io.OutputStream;
  import java.io.IOException;
  
  /**
   * This class applies a RunLengthEncode filter to the stream.
   *
   * @author   mailto:[EMAIL PROTECTED]";>Stephen Wolke
   * @version  $Id: RunLengthEncodeOutputStream.java,v 1.1 2002/08/12 16:56:22 
jeremias Exp $
   */
  
  public class RunLengthEncodeOutputStream extends FilterOutputStream
  implements Finalizable {
  
  private final static int MAX_SEQUENCE_COUNT = 127;
  private final static int END_OF_DATA = 128;
  private final static int BYTE_MAX = 256;
  
  private final static int NOT_IDENTIFY_SEQUENCE = 0;
  private final static int START_SEQUENCE = 1;
  private final static int IN_SEQUENCE = 2;
  private final static int NOT_IN_SEQUENCE = 3;
  
  private int runCount = 0;
  private int isSequence = NOT_IDENTIFY_SEQUENCE;
  private byte[] runBuffer = new byte[MAX_SEQUENCE_COUNT + 1];
  
  
  /**
   * Constructor for the RunLengthEncode Filter.
   *
   * @param out  The OutputStream to write to
   */
  public RunLengthEncodeOutputStream(OutputStream out) {
  super(out);
  }
  
  
  /**
   * @seejava.io.OutputStream#write(int)
   * @param  b   the byte.
   * @exception  IOException  if an I/O error occurs. In particular,
   * an IOException may be thrown if the
   * output stream has been closed.
   */
  public void write(byte b)
  throws java.io.IOException {
  runBuffer[runCount] = b;
  
  switch (runCount) {
  case 0:
  runCount = 0;
  isSequence = NOT_IDENTIFY_SEQUENCE;
  runCount++;
  break;
  case 1:
  if (runBuffer[runCount] != runBuffer[runCount - 1]) {
  isSequence = NOT_IN_SEQUENCE;
  }
  runCount++;
  break;
  case 2:
  if (runBuffer[runCount] != runBuffer[runCount - 1]) {
  isSequence = NOT_IN_SEQUENCE;
  } else {
  if (isSequence == NOT_IN_SEQUENCE) {
  isSequence = START_SEQUENCE;
  } else {
  isSequence = IN_SEQUENCE;
  }
  }
  runCount++;
  break;
  case MAX_SEQUENCE_COUNT:
  if (isSequence == IN_SEQUENCE) {
  out.write(BYTE_MAX - (MAX_SEQUENCE_COUNT - 1));
  out.write(runBuffer[runCount - 1]);
  runBuffer[0] = runBuffer[runCount];
  runCount = 1;
  } else {
  out.write(MAX_SEQUENCE_COUNT);
  out.write(runBuffer, 0, runCount + 1);
  runCount = 0;
  }
  isSequence = NOT_IDENTIFY_SEQUENCE;
  break;
  default:
  switch (isSequence) {
  case IN_SEQUENCE:
  if (runBuffer[runCount] != runBuffer[runCount - 1]) {
  out.write(BYTE_MAX - (runCount - 1));
  out.write(runBuffer[runCount - 1]);
  runBuffer[0] = runBuffer[runCount];
  runCount = 1;
  isSequence = NOT_IDENTIFY_SEQUENC

cvs commit: xml-fop/src/org/apache/fop/datatypes Numeric.java

2002-08-12 Thread pbwest

pbwest  2002/08/12 08:55:12

  Modified:src/org/apache/fop/datatypes Tag: FOP_0-20-0_Alt-Design
Numeric.java
  Log:
  Denied addops on relative lengths, and restricted multops on relative
  lengths to numbers.  Restricted multops on absolute lengths to numbers
  and absolute lengths.  Added expandEms() and expandPercent() methods
  for resolution of relative lengths, after denying direct multops.
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.1.2.5   +111 -72   xml-fop/src/org/apache/fop/datatypes/Attic/Numeric.java
  
  Index: Numeric.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/datatypes/Attic/Numeric.java,v
  retrieving revision 1.1.2.4
  retrieving revision 1.1.2.5
  diff -u -r1.1.2.4 -r1.1.2.5
  --- Numeric.java  30 Jul 2002 02:16:38 -  1.1.2.4
  +++ Numeric.java  12 Aug 2002 15:55:12 -  1.1.2.5
  @@ -33,9 +33,14 @@
* Therefore, only a number, its power and its baseunit need be provided for
* in this class.
* All numeric values are represented as a value and a unit raised to a
  - * power.  For absolute numbers, including relative lengths, the unit power is
  - * zero.
  + * power.  For absolute numbers and relative lengths the unit power is zero.
  + *
* Whenever the power associated with a number is non-zero, it is a length.
  + * N.B. this includes relative lengths.  The resolution of a relative
  + * length is NOT performed by multiplying the relative length by its
  + * reference length in a standard * operation, but by specific methods.
  + * This allows invalid multiplication operations (any multiplication
  + * of a relative length is invalid in an expression.)
* 
* It is an error for the end result of an expression to be a numeric with
* a power other than 0 or 1. (Rec. 5.9.6)
  @@ -50,16 +55,22 @@
* )
* numeric^n   addop  numeric^m   = Illegal
* numeric1addop  numeric2= Illegal
  - * numeric1^n  addop  numeric1^n  = numeric1^n   includes number + number
  + * rel-len1addop  any = Illegal  See 5.9.6 Absolute Numerics
  + * "...only the mod, addition, and subtraction operators require that the
  + * "numerics on either side of the operation be absolute numerics of the
  + * "same unit power."
  + *
  + * absnum1^n   addop  absnum1^n  = absnum1^n   includes number + number
*
* number  multop anyunit = anyunit  universal multiplier
*   includes number * relunit
  - * unit1   multop unit2   = Illegal
  + *
  + * unit1   multop unit2   = Illegal  includes relunit * length
  + *
* relunit multop relunit = Illegal
*
* unit1^n multop unit1^m = unit1^(n+m)  includes number * number
*   excludes relunit* relunit
  - * relunit multop length  = length
*
* In fact, all lengths are maintained internally
* in millipoints.
  @@ -140,8 +151,9 @@
* @param property int index of the property.
* @param value the actual value.
* @param baseunit the baseunit for this Numeric.
  - * @param power The dimension of the value. 0 for a Number, 1 for a Length
  - * (any type), >1, <0 if Lengths have been multiplied or divided.
  + * @param power The dimension of the value. 0 for a Number,
  + * 0 for EMs or Percentage, 1 for a Length (any type),
  + * >1, <0 if Lengths have been multiplied or divided.
* @param unit int enumeration of the subtype of the
* baseunit in which this Numeric is being defined
* e.g. Length.PX or Length.MM.
  @@ -328,6 +340,14 @@
   }
   
   /**
  + * This object is an ABSOLUTE NUMERIC type if it is a NUMBER or an
  + * ABSOLUTE LENGTH.
  + */
  +public boolean isAbsoluteNumeric() {
  +return (baseunit & ABS_UNIT) != 0;
  +}
  +
  +/**
* This object is a number if the baseunit is NUMBER.  Power is
* guaranteed to be zero for NUMBER baseunit.
*/
  @@ -395,6 +415,45 @@
}
   
   /**
  + * @param fontSize a Numeric containing the reference
  + * font-size length
  + * @return this, with values changed to reflect the conversion
  + * @exception PropertyException
  + */
  +public Numeric expandEms(Numeric fontSize) throws PropertyException {
  +if (baseunit == EMS) {
  +value = value *= fontSize.getValue();
  +power = power += fontSize.getPower();
  +baseunit = fontSize.getBaseunit();
  +if (isLength()) return this;
  +
  +throw new PropertyException
  +("Invalid result from expandEms: " + value + power
  + + getBaseunitString());
  +}
  +throw new PropertyException("Target of expa

DO NOT REPLY [Bug 11631] - number-columns-spanned > 2 gives a Null error

2002-08-12 Thread bugzilla

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

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

number-columns-spanned > 2 gives a Null error





--- Additional Comments From [EMAIL PROTECTED]  2002-08-12 15:51 ---
The example sets up a three column table, then all in one row has:

  ...  


   


   


The last two table-cell elements shouldn't be there.

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




DO NOT REPLY [Bug 11631] - number-columns-spanned > 2 gives a Null error

2002-08-12 Thread bugzilla

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

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

number-columns-spanned > 2 gives a Null error





--- Additional Comments From [EMAIL PROTECTED]  2002-08-12 15:29 ---
Created an attachment (id=2682)
document gives null error because number-columns-spanned >2

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




Duplex printing problem. Please help.

2002-08-12 Thread IvanLatysh

Hi.

I have problem with printing on duplex printer HP LaserJet IIISi.
Report have 2 pages.
If I am printing simplex - Ok.
But if I am trying to print duplex only one side is printing, but printer flipping the 
page and
indicate that it is duplex printing.
The second page is going to another page, like simplex printing.

I did check, there are only 2 pages, nothing between.
This is page declaration:





Using FOP 0.20.3. Printing from AWT preview window.

Sincerely yours, Ivan Latysh.
[EMAIL PROTECTED]
http://ivan.yourmail.com


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




DO NOT REPLY [Bug 11631] - number-columns-spanned > 2 gives a Null error

2002-08-12 Thread bugzilla

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

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

number-columns-spanned > 2 gives a Null error

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2002-08-12 14:21 ---
Cannot reproduce the bug, the following fo fragment works like a charm for me in
fop 0.20.3 and fop 0.20.4:







Table cell text





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




DO NOT REPLY [Bug 11631] New: - number-columns-spanned > 2 gives a Null error

2002-08-12 Thread bugzilla

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

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

number-columns-spanned > 2 gives a Null error

   Summary: number-columns-spanned > 2 gives a Null error
   Product: Fop
   Version: 0.20.3
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When specifying a number greater than 2 for the number-columns-spanned 
attribute of table-cell, I get a NULL error. Specifying 1 or 2 does not cause a 
problem.

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




release 0.20.4 - custom fonts broken

2002-08-12 Thread Erik_Vanherck

Extract from the Changes file :

- BaseDir property is now used for loading custom fonts (Bug #7608)
  (thanks to Arnd Beissner and Brian O'Kelley)

Applying this fix broke some stuff as far as I can tell. Fop ships with a
config file that has this property commented out. As a result basedir
appears to be null and FOP tries loading fonts with something like
nullfonts/metrics/arial.xml which of course does not evaluate to a decent
filename. Ok after figuring that out I set the basedir to ./ which is in my
case correct for loading fonts. Doing this however breaks SVG cause it
tries to set the basedir as the url of the SVGElement causing the following
exception to be thrown

java.net.MalformedURLException: no protocol: ./
at java.net.URL.(URL.java:473)
at java.net.URL.(URL.java:376)
at java.net.URL.(URL.java:330)
at org.apache.fop.svg.SVGElement.layout(Unknown Source)
at org.apache.fop.fo.flow.InstreamForeignObject.layout(Unknown
Source)
at org.apache.fop.fo.flow.BlockContainer.layout(Unknown Source)
at org.apache.fop.fo.flow.Flow.layout(Unknown Source)
at org.apache.fop.fo.flow.Flow.layout(Unknown Source)
at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source)
at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)


A better solution to the font loading problem would be something like a
system property I think (eg. if you were to define
org.apache.fop.fontbasedir
and prepend it to the embedded font filename). At least this solution would
allow the font base dir to be specified at runtime which is important for
embedding.

Erik


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




Re: Tasks - layout

2002-08-12 Thread Kevin O'Neill

> These are just some of the things, I will add them to the todo list.
> If there is a decent response then there are more that can be added.

Any PDF tasks?

-- 
If you don't test then your code is only a collection of bugs which 
apparently behave like a working program. 

Website: http://radio.weblogs.com/0111457/


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




Tasks - layout

2002-08-12 Thread Keiron Liddle


Now that we have some pagination there are lots of areas that people can
work on. 
If you want to implement any of these and have any questions then just
ask. 

Once we can get a few of these done then we could do a developers
release. 


- Add static areas to page 
The static areas will need to be handled in a similar way to the flow
except the bpd is unlimited and it will need to reset and repeat for
each page. 


- Add id areas to page when area added 
When the layout managers add an area to the page it can also add the id
information. 


- Resolve id references on other pages, extensions 
When an id is added to a page this will allow id references to be
resolved. 


- Add markers to page when areas added 
When an area is added that is created by an FO that contains markers
then the markers can also be added. There are four types of positions
for markers. 


- Retrieve markers from page 
When doing the static areas the markers wil need to be available for
retrieving. The marker can then be layed out as normal. 


- calculate line height 
The line height needs to be calculated while finding breaks. This needs
to include all the alignment and height details of the inline areas. 


- Various inline objects
Page number, page number citation etc. need to be implemented.


- Implement page caching 
If a page need to be stored for the store pages or waiting to resolve
forward references then we need a cache mechanism to save the page
somewhere. 


- Implement table layout 
The table layout will use the same technique as the block layout. It
will locate suitable breaks between rows or inside rows until table
finished or end of bpd reached. 


- Implement list layout 
The list layout like the table layout will be looking for suitable
breaks from the child objects. The it will add the appropriate areas to
the area tree. 


- Get bookmark extension working 
Make sure the extension id references are resolved. Once the data is
fully resolved then implement a way for the pdf renderer to add the
bookmarks. See branch for code how to add bookmarks. 


These are just some of the things, I will add them to the todo list.
If there is a decent response then there are more that can be added.




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




Re: XSL-FO in C++

2002-08-12 Thread Arnd Beißner

Avula, Raj wrote:

> Hi,
> I am looking for XSL Formatting Objects implementation in C++.
> Are there any Open or Commercial implementations in C++?
> Your help is greatly appreciated.

This is a mailing list for people working on the source code
of FOP, a Java implementation of XSL:FO.

You may want to check www.xmlsoftware.com or www.w3.org. There
you will find lists of free and commercial implementations
of XSL:FO renderers.

Hope this helps,

Arnd Beissner
--
Cappelino Informationstechnologie GmbH
Arnd Beißner
Bahnhofstr. 3, 71063 Sindelfingen, Germany
Email: [EMAIL PROTECTED]
Phone: +49-7031-463458
Fax: +49-7031-463460
Mobile: +49-173-3016917


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




fop-uml for fop_0.20.4

2002-08-12 Thread ehoo

fop-dev£¬ÄúºÃ£¡

I want a fop-uml for fop 0.20.4.Who can help me ?

   Thinks!

ÖÂ
Àñ£¡


ehoo
[EMAIL PROTECTED]
2002-08-12


_
Do You Yahoo!?
ÐÂÏʵ½µ×,ÓéÀÖµ½¼Ò - ÑÅ»¢ÍƳöÃâ·ÑÓéÀÖµç×ÓÖܱ¨!
http://cn.ent.yahoo.com/newsletter/index.html

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




Re: FOP memory usage

2002-08-12 Thread Keiron Liddle

On Fri, 2002-08-09 at 19:06, J.Pietschmann wrote:
> As for the redesigned code, FOs appear to refer to layout
> managers, which in turn refer to areas. Unless it is somewhere
> ensured that either areas are properly removed from managers
> and/or managers are removed from the FO, the possible early GC
> of area objects is undone.
> It also seems to me that a lot more small objects are
> used, which is also bad for peak memory consumption.
> Of course, this is based on a somewhat cursory code examination
> rather than exact measurements.

No. FOs create layout managers. Layout managers refer to FOs. Layout
managers create areas. The only place that areas are held onto is the
area tree. The page sequence layout manager holds onto the area tree to
add pages. The area tree then handle how the pages are used. If a page
is rendered then it is cleared.
The layout managers can then release FOs that are done with and the
areas are not held onto.
I don't know where you get the idea that a lot of small objects are
used. Remember it is not finished yet.
Peak memory usage should be: largest image currently loaded temporarily
+ at least one fo block (but not much more) + one page area + render
stuff + common (static pagination) areas. A bit hard to define but I am
certain the result will be less memory.

> Ok so far.
> 
> One of the bigger problems is that objects holding FO property
> values are much more abundantly created than necessary. For
> example, to "franklin_2pageseqs" sample produces more than
> hundred FontState instances, while only three different are
> really necessary. While there may be attempts to solve this
> in the redesign, they are not yet recognizable.

Does that mean we should not attempt to solve this problem?
Or that we should attempt to solve the problem twice independantly.

> This could turn out to be a bad idea in case orphans/widows or
> the infamous "last page master" and perhaps footnote reshuffling
> or reconsidering break preferences cause the last page to be
> rerendered. Note that either of these could have an unpleasant
> rippling effect through previous pages. I think it is only really
> safe to get rid of FOs at page sequence boundaries and perhaps
> forced page breaks.

As far as I know there is never a case where a finished page should be
redone. Once a page is complete that is it.
Those problems should be solved during the layout of a page only and not
considering furture pages.

Keiron.


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