RE: How to get the text be flowed to the next column

2006-09-14 Thread Pascal Sancho
 -Original Message-
 From: Susanta Dash [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, September 14, 2006 6:54 AM
 
 I appreciate your honest replies.
 
 This is for Pascal:
  As a workaround, you can try to play with fo:block-container in 
  absolute position, but you have to cut the flow-text yourself.
 When you say cut the flow-text yourself, do you mean that 
 I've to figure out the column breaks and explicitly move the 
 text to the next column(s)?

Yes
Pascal

 If yes, this is what I'm trying 
 now, which is not impossible, but is close to that as my text 
 has formatting objects embedded in it like say part of the 
 text is BOLD/ITALIC or have different font size.


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



Re: Rounded Table Corners

2006-09-14 Thread Dominic Br

 a little FO Question. Ist there a way to draw rounded table corners in
 fo using fop 0.20.5

As far as I know you can't define rounded borders with XSL-FO. But if the
size of your table is static, you can set a backround image containing the
rounded corners to the table (with the attribute background-image on the
fo:table element).




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



keep-with-next causes last row of previous table to come along

2006-09-14 Thread paul
Hello all
I find this odd: When I use keep-with-next on the first row of a table, 
what happens ist that the last row of the table before to come along 
onto the next page.

What I have:
Table A with 5 rows
Table B with 2 rows

What I'd like to achieve:
I want the two rows of table B to stay together, if they don't fit on 
the first page anymore, they should move to the next page

First attempt:
Table B, Row2: keep-with-previous=always
Result: nothing happens, Row2 is printed separately from Row1 at 
beginning of 2nd page

Second attempt:
Table B, Row1: keep-with-next=always
Result: The two rows are keeping together as wished, BUT: Row5 of 
Table A comes along too, being printed on top of page 2.

Any idea what's going on here?
I appreciate any suggestions, corrections, work-arounds. I'm also
 interested in learning, why the first attempt doesn't show any changes.

cheers


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



Re: Keeping tables together with FOP 0.92b

2006-09-14 Thread paul
Hi

I'm not an experienced user, but have you tried keep-with-next? It did work
for me, although with other undesired side-effects (see my post with the
superlong title keep-with-next causes last row of previous table to come 
along.

regards





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



€ Sign

2006-09-14 Thread Christian Loock



Hello,

i have the problem 
that the € sign is not displayed in my PDF. I Generate the PDF using FOP 0.20.5. 
THe Font is Arial and the encoding iso-8859-1

Viele Grüße / Best RegardsChristian LoockJunior 
Software 
Engineer_Phone 
+49 (0) 28 21 / 9 78 56-16Fax +49 (0) 28 21 / 9 78 
56-77E-Mail [EMAIL PROTECTED]Headquarterdb-central 
gmbhDienstleistungszentrum am Weißen TorGocher Landstrasse 2D-47551 
Bedburg-HauSubsidiarydb-central gmbhFilm- und 
MedienzentrumKönigsallee 43D-71638 Ludwigsburg (Stuttgart)visit 
www.db-central.com_ 




Re: € Sign

2006-09-14 Thread Andreas Reuleaux
On Thu, Sep 14, 2006 at 01:22:10PM +0200, Christian Loock wrote:
 Hello,
  
 i have the problem that the € sign is not displayed in my PDF. I Generate the 
 PDF using FOP 0.20.5. THe Font is Arial and the encoding iso-8859-1
  


€ is not in iso-8859-1, how about you try to you use utf-8
or iso-8859-15?

-Andreas


 
 
 
 Viele Grüße / Best Regards
 
 Christian Loock
 Junior Software Engineer
 
 _
 Phone +49 (0) 28 21 / 9 78 56-16
 Fax   +49 (0) 28 21 / 9 78 56-77
 E-Mail [EMAIL PROTECTED]
 
 Headquarter
 db-central gmbh
 Dienstleistungszentrum am Weißen Tor
 Gocher Landstrasse 2
 D-47551 Bedburg-Hau
 
 Subsidiary
 db-central gmbh
 Film- und Medienzentrum
 Königsallee 43
 D-71638 Ludwigsburg (Stuttgart)
 
 visit www.db-central.com
 _ 
 
  

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



Re: ? Sign

2006-09-14 Thread Mikael Andersen

Hey,

iso-8859-1
doesn't contain the € character. You'll need iso-8859-15
(where € replaced ¤) - or use UTF-8 (at least that's my experience).

/Mikael







Christian Loock
[EMAIL PROTECTED] 
14-09-2006 13:25



Please respond to
fop-users@xmlgraphics.apache.org





To
fop-users@xmlgraphics.apache.org


cc



Subject
€ Sign








Hello,

i have the problem that the € sign is
not displayed in my PDF. I Generate the PDF using FOP 0.20.5. THe Font
is Arial and the encoding iso-8859-1



Viele Grüße / Best Regards

Christian Loock
Junior Software Engineer

_
Phone +49 (0) 28 21 / 9 78 56-16
Fax  +49 (0) 28 21 / 9 78 56-77
E-Mail [EMAIL PROTECTED]

Headquarter
db-central gmbh
Dienstleistungszentrum am Weißen Tor
Gocher Landstrasse 2
D-47551 Bedburg-Hau

Subsidiary
db-central gmbh
Film- und Medienzentrum
Königsallee 43
D-71638 Ludwigsburg (Stuttgart)

visit www.db-central.com
_





Re: € Sign

2006-09-14 Thread Michael Bruns
Hi Christian,

Christian Loock wrote:
 Hello,
  
 i have the problem that the € sign is not displayed in my PDF. I Generate the 
 PDF using FOP 0.20.5. THe Font is Arial and the encoding iso-8859-1

I think this problem is not caused by FOP but by the character set you
chose. If you want to use the Euro-sign you should choose ISO-8859-15
instead of ISO-8859-1. That's at least what solved similar problems for
me when using HTML.

Cheers

Michael

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



Re: Rounded Table Corners

2006-09-14 Thread Louis . Masters

How about the old HTML trick: rounded
corner images on the upper left, upper right, lower left and lower right
cells of the table.

-Lou






Christian Loock
[EMAIL PROTECTED] 
09/14/2006 04:21 AM



Please respond to
fop-users@xmlgraphics.apache.org





To
fop-users@xmlgraphics.apache.org


cc



Subject
Rounded Table Corners








Hi there,

a little FO Question. Ist there a way to
draw rounded table corners in fo using fop 0.20.5



Viele Grüße / Best Regards

Christian Loock
Junior Software Engineer

_
Phone +49 (0) 28 21 / 9 78 56-16
Fax  +49 (0) 28 21 / 9 78 56-77
E-Mail [EMAIL PROTECTED]

Headquarter
db-central gmbh
Dienstleistungszentrum am Weißen Tor
Gocher Landstrasse 2
D-47551 Bedburg-Hau

Subsidiary
db-central gmbh
Film- und Medienzentrum
Königsallee 43
D-71638 Ludwigsburg (Stuttgart)

visit www.db-central.com
_




Re: € Sign

2006-09-14 Thread Louis . Masters

We use utf-8 and the following template
to print the Euro sign:

xsl:template name=printEuro
fo:inline
white-space-collapse=false

   xsl:text#x20AC; /xsl:text
/fo:inline
/xsl:template







Christian Loock
[EMAIL PROTECTED] 
09/14/2006 07:22 AM



Please respond to
fop-users@xmlgraphics.apache.org





To
fop-users@xmlgraphics.apache.org


cc



Subject
€ Sign








Hello,

i have the problem that the € sign is
not displayed in my PDF. I Generate the PDF using FOP 0.20.5. THe Font
is Arial and the encoding iso-8859-1



Viele Grüße / Best Regards

Christian Loock
Junior Software Engineer

_
Phone +49 (0) 28 21 / 9 78 56-16
Fax  +49 (0) 28 21 / 9 78 56-77
E-Mail [EMAIL PROTECTED]

Headquarter
db-central gmbh
Dienstleistungszentrum am Weißen Tor
Gocher Landstrasse 2
D-47551 Bedburg-Hau

Subsidiary
db-central gmbh
Film- und Medienzentrum
Königsallee 43
D-71638 Ludwigsburg (Stuttgart)

visit www.db-central.com
_





RE: Keeping tables together with FOP 0.92b

2006-09-14 Thread Pascal Sancho
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 13, 2006 9:15 PM
 
 I' recently back to working with FOP. I have a document that 
 consists of a number of tables with widely-varying numbers of 
 rows. Sometimes several tables will fit entirely onto a 
 single page, with others will span several pages. The problem 
 I'm having involves those cases where a table almost fits 
 onto a page, but one or two rows flow over onto the next 
 page. I'd like to start a new page if the table won't fit 
 onto the current one.
 
 I've tried some keep-with-previous tacks, but when a very 
 long table won't fit onto a single page FOP errors out.

Hi,
keep-with-previous property doesn't work for table  list (see [1])
And this is not yet done in FOP_TRUNK (see [2]) 

 Does anyone have a sure-fire method for causing a table to 
 start on a new page if all the rows won't fit on the current page?

If you know rows height, you can add an explicit page break when needed,
for example using the XPATH sequence position() mod XXX, where XXX is
the number of rows per page.

 Thanks.
 Charles Knell

[1] http://xmlgraphics.apache.org/fop/knownissues.html
[2] http://xmlgraphics.apache.org/fop/changes.html

HTH,
Pascal

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



RE: € Sign

2006-09-14 Thread Pascal Sancho
 -Original Message-
 From: Andreas Reuleaux [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, September 14, 2006 1:31 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: € Sign
 
 On Thu, Sep 14, 2006 at 01:22:10PM +0200, Christian Loock wrote:
  Hello,
   
  i have the problem that the € sign is not displayed in my PDF. I 
  Generate the PDF using FOP 0.20.5. THe Font is Arial and 
 the encoding 
  iso-8859-1
   
 
 
 € is not in iso-8859-1, how about you try to you use utf-8 or 
 iso-8859-15?
 
 -Andreas

Hi,
You can use character entity, witch is not encoding dependant:
Euro symbol can be represented by either #x20ac;, or #8366;

That can be done with any Unicode character.

Pascal
 


RE: Keeping tables together with FOP 0.92b

2006-09-14 Thread Louis . Masters

Pascal Sancho [EMAIL PROTECTED]
wrote on 09/14/2006 07:47:09 AM:

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, September 13, 2006 9:15 PM
  
  I' recently back to working with FOP. I have a document that

  consists of a number of tables with widely-varying numbers of

  rows. Sometimes several tables will fit entirely onto a 
  single page, with others will span several pages. The problem

  I'm having involves those cases where a table almost fits 
  onto a page, but one or two rows flow over onto the next 
  page. I'd like to start a new page if the table won't fit 
  onto the current one.
  
  I've tried some keep-with-previous tacks, but when a very 
  long table won't fit onto a single page FOP errors out.
 
 Hi,
 keep-with-previous property doesn't work for table  list (see
[1])
 And this is not yet done in FOP_TRUNK (see [2]) 
 
  Does anyone have a sure-fire method for causing a table to 
  start on a new page if all the rows won't fit on the current
page?
 
 If you know rows height, you can add an explicit page break when needed,
 for example using the XPATH sequence position() mod XXX,
where XXX is
 the number of rows per page.
 

We use the position()
mod XXX technique to break
page sequences and release memory, but there is one major issue we always
run in to: when a cell wraps and the row height increases, your row
counts are now off and the breaks no longer occur at predicted intervals.
This can be minimized if you have _very_ predictable data in your
cells.
-Lou

  Thanks.
  Charles Knell
 
 [1] http://xmlgraphics.apache.org/fop/knownissues.html
 [2] http://xmlgraphics.apache.org/fop/changes.html
 
 HTH,
 Pascal
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: € Sign

2006-09-14 Thread Christian Loock
Thank you very much :) 

-Original Message-
From: Pascal Sancho [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 14, 2006 1:55 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: € Sign

 -Original Message-
 From: Andreas Reuleaux [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 14, 2006 1:31 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: € Sign
 
 On Thu, Sep 14, 2006 at 01:22:10PM +0200, Christian Loock wrote:
  Hello,
   
  i have the problem that the € sign is not displayed in my PDF. I 
  Generate the PDF using FOP 0.20.5. THe Font is Arial and
 the encoding
  iso-8859-1
   
 
 
 € is not in iso-8859-1, how about you try to you use utf-8 or 
 iso-8859-15?
 
 -Andreas

Hi,
You can use character entity, witch is not encoding dependant:
Euro symbol can be represented by either #x20ac;, or #8366;

That can be done with any Unicode character.

Pascal
 


Re: keep-with-next causes last row of previous table to come along

2006-09-14 Thread paul
ok, why first attempt doesn't work is clear now, it's not implemented yet

my workaround for the moment: Between Table A and Table B I insert an empty
Block. Now everything works as I'd like it to.

So maybe this is a BUG???


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



Re: How to get the text be flowed to the next column

2006-09-14 Thread Glen Mazza

Susanta Dash wrote:


Hey guys, I can't wait for XSL-FO 1.1 and can't see any alternative. Can you
guys just guide me to accomplish my need; I'm trying to get the exact point
where to break the text, so that I can just move the rest of the text to the
next column. I'm thinking to use AWT renderer and pick the font metrics by
using Rectangle2D and JPEGEncoder, etc. etc. Now, what I'm afraid of is, the
co-ordinates I'll generate from this, will it be the same or will be fit for
FOP or Can I use some FOP thing that helps me doing this?

Thanks.

 



Sorry, I personally cannot help or advise you at this stage--this goes 
well beyond my capabilities.


Glen

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



Re: Extra fo:inline introduces extra new lines

2006-09-14 Thread Manuel Mall
On Thursday 14 September 2006 21:05, Florent Georges wrote:
   Hi

   I discovered the following issue with FOP 0.92beta (but
 I'm not sure it is an issue).  With the following two
 blocks, I get two different results:

 fo:block text-align=left
   padding-bottom=0pt
   padding-top=0pt
   start-indent=3pt
   end-indent=3pt
   linefeed-treatment=preserve
   fo:inline linefeed-treatment=preserveBMW modele
 Date de mise en circulation: 1/9/1979
 fo:inlineKm: /fo:inline27000/fo:block

 fo:block text-align=left
   padding-bottom=0pt
   padding-top=0pt
   start-indent=3pt
   end-indent=3pt
   linefeed-treatment=preserve
   fo:inline linefeed-treatment=preserveBMW modele

 fo:inlineDate de mise en circulation: /fo:inline1/9/1979
 fo:inlineKm: /fo:inline27000/fo:block

As far as I can tell neither of the two examples above is valid XSL-FO. 
In both cases a /fo:inline appears to be missing. Which makes me 
suspicious that this is not really the exact input given to FOP to 
produce the output you attached,

   You can see the result in attachment (the second block is
 the one with extra newlines in the result).

   Is it the expected behaviour?

   Regards,

 --drkm

Manuel

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



Re: Extra fo:inline introduces extra new lines

2006-09-14 Thread Stefan Heuer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Hi

In both blocks one closing /fo:inline is missing.

How you generate the FO file?


Stefan

Florent Georges schrieb:
   Hi

   I discovered the following issue with FOP 0.92beta (but
 I'm not sure it is an issue).  With the following two
 blocks, I get two different results:

 fo:block text-align=left
   padding-bottom=0pt
   padding-top=0pt
   start-indent=3pt
   end-indent=3pt
   linefeed-treatment=preserve
   fo:inline linefeed-treatment=preserveBMW modele
 Date de mise en circulation: 1/9/1979
 fo:inlineKm: /fo:inline27000/fo:block

 fo:block text-align=left
   padding-bottom=0pt
   padding-top=0pt
   start-indent=3pt
   end-indent=3pt
   linefeed-treatment=preserve
   fo:inline linefeed-treatment=preserveBMW modele
 fo:inlineDate de mise en circulation: /fo:inline1/9/1979
 fo:inlineKm: /fo:inline27000/fo:block

   You can see the result in attachment (the second block is
 the one with extra newlines in the result).

   Is it the expected behaviour?

   Regards,

 --drkm
 ___
 Découvrez un nouveau moyen de poser toutes vos questions quelque soit
le sujet !
 Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions
et vos expériences.
 http://fr.answers.yahoo.com

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFFCVitirQ0Ts08AdMRAilGAJ943VHsDoiDgLoB0+AErwU1g52vfACgmp7A
6zCw31Xc3QX85JVSSIDPWEE=
=i4eN
-END PGP SIGNATURE-


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



RE: Extra fo:inline introduces extra new lines

2006-09-14 Thread Pascal Sancho
 -Original Message-
 From: Florent Georges [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, September 14, 2006 3:05 PM
 
   Hi
 
   I discovered the following issue with FOP 0.92beta (but I'm 
 not sure it is an issue).  With the following two blocks, I 
 get two different results:
 
 fo:block text-align=left
   padding-bottom=0pt
   padding-top=0pt
   start-indent=3pt
   end-indent=3pt
   linefeed-treatment=preserve
   fo:inline linefeed-treatment=preserveBMW modele
 Date de mise en circulation: 1/9/1979
 fo:inlineKm: /fo:inline27000/fo:block
 
 fo:block text-align=left
   padding-bottom=0pt
   padding-top=0pt
   start-indent=3pt
   end-indent=3pt
   linefeed-treatment=preserve
   fo:inline linefeed-treatment=preserveBMW modele
 fo:inlineDate de mise en circulation: /fo:inline1/9/1979
 fo:inlineKm: /fo:inline27000/fo:block
 
   You can see the result in attachment (the second block is 
 the one with extra newlines in the result).
 
   Is it the expected behaviour?
 
   Regards,

Tested on both FOP 0.92 (works badly) and FOP_TRUNK (works fine), this
has been corrected in latest code

Pascal

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



RE: Keeping tables together with FOP 0.92b

2006-09-14 Thread cknell
I know that if a table has 20 or more rows, it won't fit on a single page. I 
deal with such large tables in my XSLT like this:

xsl:template match=table
  xsl:variable name=page-break-flag
xsl:choose
  xsl:when test=count(child::column) gt; 19page/xsl:when
  xsl:otherwiseauto/xsl:otherwise
/xsl:choose
  /xsl:variable
  ...
  fo:table-row keep-with-next=always break-before={$page-break-flag}
fo:table-cellfo:block/fo:block/fo:table-cell
  ...
/xsl:template

Here I am dealing with a situation where the number of rows on a particular 
table may not be very large, but because other tables appear on the page before 
it, the page breaks in the middle of the table, like this.:

 Page Break 
Table 1
row
row
row
row

Table 2
row
row
row
row
row
row
row
row

Table 3
row
row
row
row
 Page Break 
row
row
row
row

Table 4
row
row
row
row

In my case, the row heights are always the same, so Louis' warning is not 
applicable.

In order to know if I should start a new page before beginning to print Table 
3, I would have to know the number of rows that already appear on the page (or 
some other more clever work-around), but I can't think of a way to get that 
information.

Does this suggest a solution to anyone?

Thanks.
-- 
Charles Knell
[EMAIL PROTECTED] - email

ÿþ

<br><font size=2><tt>&quot;Pascal Sancho&quot; &lt;[EMAIL PROTECTED]&gt;

wrote on 09/14/2006 07:47:09 AM:<br>

<br>

&gt; &gt; -----Original Message-----<br>

&gt; &gt; From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] <br>

&gt; &gt; Sent: Wednesday, September 13, 2006 9:15 PM<br>

&gt; &gt; <br>

&gt; &gt; I' recently back to working with FOP. I have a document that

<br>

&gt; &gt; consists of a number of tables with widely-varying numbers of

<br>

&gt; &gt; rows. Sometimes several tables will fit entirely onto a <br>

&gt; &gt; single page, with others will span several pages. The problem

<br>

&gt; &gt; I'm having involves those cases where a table almost fits <br>

&gt; &gt; onto a page, but one or two rows flow over onto the next <br>

&gt; &gt; page. I'd like to start a new page if the table won't fit <br>

&gt; &gt; onto the current one.<br>

&gt; &gt; <br>

&gt; &gt; I've tried some keep-with-previous tacks, but when a very <br>

&gt; &gt; long table won't fit onto a single page FOP errors out.<br>

&gt; <br>

&gt; Hi,<br>

&gt; keep-with-previous property doesn't work for table &amp; list (see

[1])<br>

&gt; And this is not yet done in FOP_TRUNK (see [2]) <br>

&gt; <br>

&gt; &gt; Does anyone have a sure-fire method for causing a table to <br>

&gt; &gt; start on a new page if all the rows won't fit on the current

page?<br>

&gt; <br>

&gt; If you know rows height, you can add an explicit page break when needed,<br>

&gt; for example using the XPATH sequence &quot;position() mod XXX&quot;,

where XXX is<br>

&gt; the number of rows per page.<br>

&gt; <br>

</tt></font>

<br><font size=2 face="sans-serif">We use the </font><font size=2><tt>&quot;position()

mod XXX&quot;</tt></font><font size=2 face="sans-serif"> technique to break

page sequences and release memory, but there is one major issue we always

run in 

Re: outputting TIFF-G images

2006-09-14 Thread Oliver Hernàndez Valls
I keep trying to make the TIFFRenderer work with CCITT T.6 bilevel 
compression (CCITT Group 4 facsimile compression). But can't make it work.


When the outputStream flushes I have this exception:
Caused by: java.util.NoSuchElementException
at javax.imageio.spi.FilterIterator.next(ServiceRegistry.java:808)
at javax.imageio.ImageIO$ImageWriterIterator.next(ImageIO.java:820)
at javax.imageio.ImageIO$ImageWriterIterator.next(ImageIO.java:805)
	at 
org.apache.xmlgraphics.image.writer.imageio.ImageIOImageWriter.writeImage(ImageIOImageWriter.java:73)
	at 
org.apache.fop.render.bitmap.TIFFRenderer.stopRenderer(TIFFRenderer.java:196)
	at 
org.apache.fop.area.RenderPagesModel.endDocument(RenderPagesModel.java:240)
	at 
org.apache.fop.area.AreaTreeHandler.endDocument(AreaTreeHandler.java:422)

at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:170)
	at 
org.apache.xml.serializer.ToXMLSAXHandler.endDocument(ToXMLSAXHandler.java:182)
	at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1287)

... 43 more

	I think the problem I have is that the IIORegistry has no service 
providers for image/tiff mime types. And I don't know how to register 
one. Neither I know where to find one.
	Does somebody know how to make IIORegistry provide an encoder for tiff 
images??


thanks a lot in advance!

this is the TIFFRenderer.java I have at present:
/*
 * Copyright 1999-2006 The Apache Software Foundation.
 *
 * Licensed under the Apache License, Version 2.0 (the License);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an AS IS BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* $Id: TIFFRenderer.java 391332 2006-04-04 15:15:23Z jeremias $ */

package org.apache.fop.render.bitmap;

// Code originaly contributed by Oleg Tkachenko of Multiconn 
International Ltd

// ([EMAIL PROTECTED]).

import java.awt.image.BufferedImage;
import java.awt.image.DataBuffer;
import java.awt.image.PixelInterleavedSampleModel;
import java.awt.image.RenderedImage;
import java.awt.image.SampleModel;
import java.awt.image.SinglePixelPackedSampleModel;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Iterator;

import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.configuration.ConfigurationException;
import org.apache.commons.logging.Log;
import org.apache.fop.apps.FOPException;
import org.apache.fop.apps.MimeConstants;
import org.apache.fop.render.java2d.Java2DRenderer;
import org.apache.xmlgraphics.image.GraphicsUtil;
import org.apache.xmlgraphics.image.codec.tiff.TIFFEncodeParam;
import org.apache.xmlgraphics.image.rendered.FormatRed;
import org.apache.xmlgraphics.image.writer.ImageWriter;
import org.apache.xmlgraphics.image.writer.ImageWriterParams;
import org.apache.xmlgraphics.image.writer.imageio.ImageIOTIFFImageWriter;

/**
 * p
 * This class represents renderer to TIFF (Tagged Image File Format) 
format. It
 * is one of the most popular and flexible of the current public domain 
raster
 * file formats, which was is primarily designed for raster data 
interchange.

 * Supported compression types are:
 * ul
 * liRaw noncompressed data/li
 * liByte-oriented run-length encoding PackBits compression./li
 * liModified Huffman Compression (CCITT Group 3 1D facsimile 
compression)/li
 * liCCITT T.4 bilevel compression (CCITT Group 3 2D facsimile 
compression)/li
 * liCCITT T.6 bilevel compression (CCITT Group 4 facsimile 
compression)/li

 * liJPEG-in-TIFF compression/li
 * liDEFLATE lossless compression (also known as Zip-in-TIFF)/li
 * liLZW compression/li
 * TODO
 * p
 * This class actually does not render itself, instead it extends
 * codeorg.apache.fop.render.java2D.Java2DRenderer/code and just encode
 * rendering results into TIFF format using Batik's image codec
 */
public class TIFFRenderer extends Java2DRenderer {

/** The MIME type for tiff-Rendering */
public static final String MIME_TYPE = MimeConstants.MIME_TIFF;

/** */
//private TIFFEncodeParam renderParams;
private ImageWriterParams iwParams= null;

private OutputStream outputStream;

/** @see org.apache.fop.render.AbstractRenderer */
public String getMimeType() {
return MIME_TYPE;
}

/** Creates TIFF renderer. */
public TIFFRenderer() {
//renderParams = new TIFFEncodeParam();
//Default to packbits compression which is widely supported
//renderParams.setCompression(TIFFEncodeParam.COMPRESSION_PACKBITS);
iwParams= new ImageWriterParams();
}

private int 

Re: [docbook-apps] Re: JAXP and docbook-xsl Stylesheets

2006-09-14 Thread Jirka Kosek

Don Adams wrote:


A HUGE thank you!  Yes, after spending hours
trying to figure this out, all I needed to
do was change this:

transformer.setOutputProperty(OutputKeys.ENCODING,UTF-8);

to this:

transformer.setOutputProperty(OutputKeys.ENCODING,ISO-8859-1);


I think that the best is to omit this command completely. Then 
transformer will use encoding specified in stylesheet by xsl:output 
encoding=.../ and you can be sure that there will not be encoding 
mismatch.


--
--
  Jirka Kosek e-mail: [EMAIL PROTECTED] http://www.kosek.cz
--
  Profesionální školení a poradenství v oblasti technologií XML.
 Podívejte se na náš nově spuštěný web http://DocBook.cz
   Podrobný přehled školení http://xmlguru.cz/skoleni/
--
   Nejbližší termíny školení:
** XSLT 23.-26.10.2006 ** XML schémata 13.-15.11.2006 **
 ** DocBook 11.-13.12.2006 ** XSL-FO 11.-12.12.2006 **
--
  http://xmlguru.czBlog mostly about XML for English readers
--



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Extra fo:inline introduces extra new lines

2006-09-14 Thread Florent Georges
Pascal Sancho wrote:

  Hi

 Tested on both FOP 0.92 (works badly) and FOP_TRUNK (works
 fine), this has been corrected in latest code

  Ok, thanks for the info.  I'll wait for 0.93 to add this
functionality.  And thanks to Stefan and Manuel: you're right, my
samples were not well-formed (my fault, while simplifying the code to
post).

  BTW, thanks to all FOP developers and fop-users contributors for your
time.

  Regards,

--drkm



























___ 
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet 
! 
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos 
expériences. 
http://fr.answers.yahoo.com 


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



RE: € Sign

2006-09-14 Thread Karl Roberts
Hi,

That is correct you can specify the unicode number but you still need to make 
sure that the font you use has your required unicode glyphs.

I used the Arial Unicode MS font found at C:\WINDOWS\Fonts on my PC which has 
loads of glyphs
See:- http://www.alanwood.net/unicode/fonts.html#arialunicodems for details of 
the Unicode tables it covers.


-Original Message-
From: Pascal Sancho [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 14 September 2006 9:55 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: € Sign

 -Original Message-
 From: Andreas Reuleaux [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 14, 2006 1:31 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: € Sign
 
 On Thu, Sep 14, 2006 at 01:22:10PM +0200, Christian Loock wrote:
  Hello,
   
  i have the problem that the € sign is not displayed in my PDF. I 
  Generate the PDF using FOP 0.20.5. THe Font is Arial and
 the encoding
  iso-8859-1
   
 
 
 € is not in iso-8859-1, how about you try to you use utf-8 or 
 iso-8859-15?
 
 -Andreas

Hi,
You can use character entity, witch is not encoding dependant:
Euro symbol can be represented by either #x20ac;, or #8366;

That can be done with any Unicode character.

Pascal
 

NOTICE
This e-mail and any attachments are confidential and may contain copyright 
material of Macquarie Bank or third parties. If you are not the intended 
recipient of this email you should not read, print, re-transmit, store or act 
in reliance on this e-mail or any attachments, and should destroy all copies of 
them. Macquarie Bank does not guarantee the integrity of any emails or any 
attached files. The views or opinions expressed are the author's own and may 
not reflect the views or opinions of Macquarie Bank.