Re: How to avoid vertical space between blocks containing images

2009-11-21 Thread Tobias Anstett [k15t.com]
Hi,

I have the same problem as Richard. Setting font-size=0 does not
really work for me. Although the space is gone I still have a very
thin border around the pictures. I realized this using a block with
background-color and ebmbedded image. When I use zoom factor above
150% I can see it clearly in my PDFs. I guess this is no FOP issue
because I get the same results in XEP.
I already set any space-* and padding-* values to 0. Any ideas?

Cheers,
Tobias


On Fri, Nov 13, 2009 at 11:19 AM, fopaddict rich...@uttner.de wrote:

 Pascal and Peter,
 perfect answer, it works for FOP 0.94 and 0.95 with font-size=0.
 Regards,
 Richard


 Pascal Sancho wrote:

 Hi list,

 This is due to how FOP (and other FO engines) handles half-leading (Cf
 REC 1.1 §4.5: line-area [1] and $6.5.2 - fo:block [2])
 To avoid blank space between 2 contigous blocks containing only
 graphical materials, you should ensure that both line-height and
 font-size traits are set to zero.

 As line-height initial value is [1.2] (witch means 1.2 * font-size),
 setting font-size property to 0pt is sufficient.

 [1] http://www.w3.org/TR/2006/REC-xsl11-20061205/#area-line
 [2] http://www.w3.org/TR/2006/REC-xsl11-20061205/#fo_block

 HTH,

 Pascal

 Peter Coppens a écrit :
 Perhaps you find inspiration in
 http://www.antennahouse.com/support/qa/QA/2005052701.html
 Because fo:external-graphic is an inline element, it makes line area.
 The
 default height of line area is 1.2em, so you should specify
 line-height=1
 for the block.
 However, even though line-height=1 is specified, a graphic is placed on
 top of a baseline and there remains a space under the baseline as a
 result.
 In order to avoid this, you should specify font-size=0pt, too.
 Hth
 Peter

 From: fopaddict rich...@uttner.de

 My .fo code contains nothing but a sequence of images exactly fitting
 into
 page height (because page margins are defined accordingly):
 fo:block space-before=0mm space-after=0mm
 fo:external-graphic src=url(images/{...@picture}) /
 /fo:block
 When printing to the page, FOP 0.94 and 0.95 are inserting 2mm vertical
 space between each block. Only when I set space-after to -2mm, the
 output is
 as I would expect it normally (exactly no gap between images). Is there
 another way to keep FOP from adding space in general? If not: How do I
 know
 how much I have to subtract in order to get zero space?



 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




 --
 View this message in context: 
 http://old.nabble.com/How-to-avoid-vertical-space-between-blocks-containing-images-tp26252057p26334354.html
 Sent from the FOP - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Questions on the new Intermediate Format

2009-06-03 Thread Tobias Anstett [k15t.com]
Hi,

I have some question regarding the new intermediate format:

1) Is it used automatically in FOP 0.95 or do I have to activate it somehow?

2) Does it change the way page-sequences are handled? In other words
does the rendering process still hold the whole tree (of the processed
page-sequence) in memory. Because this is a big problem when using
FO-PDF - splitting the FO in more page-sequences was the only
solution available for 0.92-0.94. Although this solution is a simple
tweak to get big documents rendered, it is not always a 'nice'
solution e.g. page-sequences always introduce page breaks.

-- 
Cheers,
Tobias



K15t Software UG (haftungsbeschränkt), http://www.k15t.com
Rosenbergstr. 58, 70176 Stuttgart, GERMANY
Registration: Stuttgart HRB 729752, VAT ID: DE264753756
Geschäftsführer (CEO): Klaus-Dieter Krüger

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Questions on the new Intermediate Format

2009-06-03 Thread Tobias Anstett [k15t.com]
Hi Andreas,


 No, it is only available in FOP's Trunk version. IIRC, it is used
 automatically.

How stable is it? Are there any known issues that some content can't
be rendered?

 No. This remains the same for the moment. Note that FOP Trunk currently does
 have an option made available to store the rendered pages to disk to avoid
 keeping the whole area tree in memory, but it still does not resolve the
 issue that the entire page-sequence has to be parsed before layout even
 begins...

Do you think the memory issues is because of parsing the entire
page-sequence or because of not storing the rendered pages to disk. If
the latter one, can you tell me how to activate this behavior?

Cheers,
Tobaias

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FopFactory.newInstance() error

2009-06-03 Thread Tobias Anstett [k15t.com]
Hi Vladimir,

if you haven't modified your app, maybe you or your workmates modified
the classpath - maybe adding another jar to tomcat or executed a mvn
build that updated some jars inside the app.

Cheers,
Tobias

On Wed, Jun 3, 2009 at 3:58 PM, Vladimir Dejanovic
vladimir.dejano...@zemljasnova.net wrote:



 Andreas Delmelle-2 wrote:

 On 03 Jun 2009, at 15:25, Vladimir Dejanovic wrote:

 Hi Vladimir

 snip /
 this part of code should catch errors

 Indeed, but the related error is already caught inside
 SVGElementMapping.initialize().
 The reason is obviously that we don't want FOP to crash on this, just
 log an error message if the SVG extension could not be properly
 initialized.

 Do you have another version of Batik in the classpath somewhere (apart
 from the one in FOP's lib directory)? That might explain the missing
 class definition...


 HTH!

 Andreas

 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




 Hi Andreas,

 I am using several jar-s inside my app , like poi , fop , struts, hibernate,
  so I can't be sure if Batik is already in some of them or not. But what
 I can't understand is the fact that everything worked just fine for several
 months and then just stopped. I haven't modified app , and my college tells
 me that he didn't modify anything either, so how it stopped working ?

 Thanks
 Vladimir Dejanovic
 --
 View this message in context: 
 http://www.nabble.com/FopFactory.newInstance%28%29-error-tp23849856p23851956.html
 Sent from the FOP - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: FOP 0.95 fails to compile large PDF files - java heap space

2009-06-02 Thread Tobias Anstett [k15t.com]
Hi Nancy,


 I decided to move to FOP 0.95 (previously used FOP 0.94). When compiling a
 large PDF doc (more than 200 pages) the following error occurs:

 FOP Exception in thread main java.lang.OutOfMemoryError: Java heap space

Is the content of your PDF wrapped in one single fo:page-sequence (in FO)?
Because this was a problem for me when exporting 1700+ pages. If this
is the case
try to split it into more page-sequences.

As mentioned by other repliers, you should first try to increase the
memory for the VM (-Xmx value). I am using about 1024m.

-- 
Cheers,
Tobias



K15t Software UG (haftungsbeschränkt), http://www.k15t.com
Rosenbergstr. 58, 70176 Stuttgart, GERMANY
Registration: Stuttgart HRB 729752, VAT ID: DE264753756
Geschäftsführer (CEO): Klaus-Dieter Krüger

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Auto Table Column Width

2009-05-27 Thread Tobias Anstett [k15t.com]
Hi,

please see my original question below. Furthermore I'd like to know if
there are already approaches or ongoing development on this issue. Do
you know how other FO processors capable of this feature have solved
the problem. Would be nice if you can provide me additional
information what happend so far or not - so maybe we can help and work
on/contribute a solution in one of the next releases.

Cheers,
Tobias

On Wed, May 20, 2009 at 9:18 PM, Tobias Anstett [k15t.com]
tob...@k15t.com wrote:
 Hi,

 I know that auto table column width is currently not supported by FOP
 0.9.5. But is there a way to get the actual width of a table in the
 document (page - some indents) and calculate the column width like the
 CSS2 algorithm does?

 Or has anybody tried to render tables with iText and replace them
 automatically in the generated FOP-PDF ?

 --
 Cheers,
 Tobias


 
 K15t Software UG (haftungsbeschränkt), http://www.k15t.com
 Rosenbergstr. 58, 70176 Stuttgart, GERMANY
 Registration: Stuttgart HRB 729752, VAT ID: t.b.a.
 Geschäftsführer (CEO): Klaus-Dieter Krüger




-- 
Cheers,
Tobias



K15t Software UG (haftungsbeschränkt), http://www.k15t.com
Rosenbergstr. 58, 70176 Stuttgart, GERMANY
Registration: Stuttgart HRB 729752, VAT ID: t.b.a.
Geschäftsführer (CEO): Klaus-Dieter Krüger

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: PDF Bookmarks

2009-05-20 Thread Tobias Anstett [k15t.com]
Hi Vincent,

do you know which version of FO corresponds to trunk version 534713 ?

Because this is the one I have installed.

Cheers,
Tobias

On Wed, May 20, 2009 at 12:25 PM, Vincent Hennebert
vhenneb...@gmail.com wrote:
 Hi Tobias,

 Tobias Anstett [k15t.com] wrote:
 Hi,

 we use (DocBook to) FO to PDF transformations. In the exported PDF the
 bookmarks doesn't work as expected. Although each bookmarks points to
 the correct page they don't jump to the correct section on that page -
 always pointing to the beginning. Is this a known issue with Apache
 FO?

 It was a known issue with versions up to 0.93, but it should work
 starting from 0.94. It’s advisable to upgrade to the latest version
 (0.95 at the moment). If that still doesn’t work as expected with that
 version, can you please attach a small FO file showing the problem?

 Thanks,
 Vincent

 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org





-- 
Cheers,
Tobias



K15t Software UG (haftungsbeschränkt), http://www.k15t.com
Rosenbergstr. 58, 70176 Stuttgart, GERMANY
Registration: Stuttgart HRB 729752, VAT ID: t.b.a.
Geschäftsführer (CEO): Klaus-Dieter Krüger

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Maven Dependencies

2009-05-20 Thread Tobias Anstett [k15t.com]
Hi,

does anybody know a (working) maven repository which has FOP version
0.94 or 0.95-snapshot available?

-- 
Cheers,
Tobias



K15t Software UG (haftungsbeschränkt), http://www.k15t.com
Rosenbergstr. 58, 70176 Stuttgart, GERMANY
Registration: Stuttgart HRB 729752, VAT ID: t.b.a.
Geschäftsführer (CEO): Klaus-Dieter Krüger

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Maven Dependencies

2009-05-20 Thread Tobias Anstett [k15t.com]
Answering myself:

dependency
  groupIdorg.apache.xmlgraphics/groupId
  artifactIdfop/artifactId
  version0.95/version
/dependency

repository
  snapshots /
  idmaven-repo1/id
  namemaven2 repo/name
  urlhttp://repo1.maven.org/maven2/url
/repository


Cheers,
Tobias

2009/5/20 Tobias Anstett [k15t.com] tob...@k15t.com:
 Hi,

 does anybody know a (working) maven repository which has FOP version
 0.94 or 0.95-snapshot available?

 --
 Cheers,
 Tobias


 
 K15t Software UG (haftungsbeschränkt), http://www.k15t.com
 Rosenbergstr. 58, 70176 Stuttgart, GERMANY
 Registration: Stuttgart HRB 729752, VAT ID: t.b.a.
 Geschäftsführer (CEO): Klaus-Dieter Krüger


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: PDF Bookmarks

2009-05-20 Thread Tobias Anstett [k15t.com]
Hi Vincent,

I finally switched to 0.95 but can't get it working out of the box. I
am receiving:
java.lang.NoClassDefFoundError: org/apache/xmlgraphics/image/loader/ImageContext

I already googled the mailinglist and found a solution form Barry:
I found that it was a problem with the permissions of the installed
fop once I changed them to the user and grp of the server everything
snapped into place. 

Can you tell me what to do? I am not using any unix system and thus
don't know what he means by the description above. I am using FOP
inside a webapp.


Cheers,
Tobias

On Wed, May 20, 2009 at 3:43 PM, Vincent Hennebert vhenneb...@gmail.com wrote:
 Hi Tobias,

 This is a revision between 0.92 and 0.93. It is really old and unless
 you have very strong reasons to keep it you should definitely update to
 the latest 0.95 version.
 At any rate that explains why PDF links aren’t working properly.

 Vincent


 Tobias Anstett [k15t.com] wrote:
 Hi Vincent,

 do you know which version of FO corresponds to trunk version 534713 ?

 Because this is the one I have installed.

 Cheers,
 Tobias

 On Wed, May 20, 2009 at 12:25 PM, Vincent Hennebert
 vhenneb...@gmail.com wrote:
 Hi Tobias,

 Tobias Anstett [k15t.com] wrote:
 Hi,

 we use (DocBook to) FO to PDF transformations. In the exported PDF the
 bookmarks doesn't work as expected. Although each bookmarks points to
 the correct page they don't jump to the correct section on that page -
 always pointing to the beginning. Is this a known issue with Apache
 FO?
 It was a known issue with versions up to 0.93, but it should work
 starting from 0.94. It’s advisable to upgrade to the latest version
 (0.95 at the moment). If that still doesn’t work as expected with that
 version, can you please attach a small FO file showing the problem?

 Thanks,
 Vincent

 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org






 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: PDF Bookmarks

2009-05-20 Thread Tobias Anstett [k15t.com]
Maybe I found the problem,

I have another xmlgraphics-commons in version 1.2 in the classpath.
Have to find the Maven Dependency where the old one is included...

Will let you know if this solved my problem.

Cheers,
Tobias

On Wed, May 20, 2009 at 5:30 PM, Tobias Anstett [k15t.com]
tob...@k15t.com wrote:
 Hi Vincent,

 I already included this package by

 dependency
  groupIdorg.apache.xmlgraphics/groupId
  artifactIdxmlgraphics-commons/artifactId
  version1.3.1/version
 /dependency

 Is 1.3.1 an outdated one? Haven't found a newer in the repositories.

 Cheers,
 Tobias

 On Wed, May 20, 2009 at 5:22 PM, Vincent Hennebert vhenneb...@gmail.com 
 wrote:
 Hi Tobias,

 Tobias Anstett [k15t.com] wrote:
 Hi Vincent,

 I finally switched to 0.95 but can't get it working out of the box. I
 am receiving:
 java.lang.NoClassDefFoundError: 
 org/apache/xmlgraphics/image/loader/ImageContext

 I already googled the mailinglist and found a solution form Barry:
 I found that it was a problem with the permissions of the installed
 fop once I changed them to the user and grp of the server everything
 snapped into place. 

 Can you tell me what to do? I am not using any unix system and thus
 don't know what he means by the description above. I am using FOP
 inside a webapp.

 FOP 0.95 has a dependency on Apache XML Graphics Commons [1]. It is
 shipped with the FOP binaries but since you seem to refer to FOP through
 Maven things are probably working differently. I have no experience with
 Maven so can’t really help you, but it’s probably a matter of adding
 another dependency element on XML Graphics Commons.

 [1] http://xmlgraphics.apache.org/commons/


 Cheers,
 Tobias

 On Wed, May 20, 2009 at 3:43 PM, Vincent Hennebert vhenneb...@gmail.com 
 wrote:
 Hi Tobias,

 This is a revision between 0.92 and 0.93. It is really old and unless
 you have very strong reasons to keep it you should definitely update to
 the latest 0.95 version.
 At any rate that explains why PDF links aren’t working properly.

 Vincent


 Tobias Anstett [k15t.com] wrote:
 Hi Vincent,

 do you know which version of FO corresponds to trunk version 534713 ?

 Because this is the one I have installed.

 Cheers,
 Tobias

 On Wed, May 20, 2009 at 12:25 PM, Vincent Hennebert
 vhenneb...@gmail.com wrote:
 Hi Tobias,

 Tobias Anstett [k15t.com] wrote:
 Hi,

 we use (DocBook to) FO to PDF transformations. In the exported PDF the
 bookmarks doesn't work as expected. Although each bookmarks points to
 the correct page they don't jump to the correct section on that page -
 always pointing to the beginning. Is this a known issue with Apache
 FO?
 It was a known issue with versions up to 0.93, but it should work
 starting from 0.94. It’s advisable to upgrade to the latest version
 (0.95 at the moment). If that still doesn’t work as expected with that
 version, can you please attach a small FO file showing the problem?

 Thanks,
 Vincent

 HTH,
 Vincent

 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org





-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: PDF Bookmarks

2009-05-20 Thread Tobias Anstett [k15t.com]
Hi Vincent,

I already included this package by

dependency
 groupIdorg.apache.xmlgraphics/groupId
 artifactIdxmlgraphics-commons/artifactId
 version1.3.1/version
/dependency

Is 1.3.1 an outdated one? Haven't found a newer in the repositories.

Cheers,
Tobias

On Wed, May 20, 2009 at 5:22 PM, Vincent Hennebert vhenneb...@gmail.com wrote:
 Hi Tobias,

 Tobias Anstett [k15t.com] wrote:
 Hi Vincent,

 I finally switched to 0.95 but can't get it working out of the box. I
 am receiving:
 java.lang.NoClassDefFoundError: 
 org/apache/xmlgraphics/image/loader/ImageContext

 I already googled the mailinglist and found a solution form Barry:
 I found that it was a problem with the permissions of the installed
 fop once I changed them to the user and grp of the server everything
 snapped into place. 

 Can you tell me what to do? I am not using any unix system and thus
 don't know what he means by the description above. I am using FOP
 inside a webapp.

 FOP 0.95 has a dependency on Apache XML Graphics Commons [1]. It is
 shipped with the FOP binaries but since you seem to refer to FOP through
 Maven things are probably working differently. I have no experience with
 Maven so can’t really help you, but it’s probably a matter of adding
 another dependency element on XML Graphics Commons.

 [1] http://xmlgraphics.apache.org/commons/


 Cheers,
 Tobias

 On Wed, May 20, 2009 at 3:43 PM, Vincent Hennebert vhenneb...@gmail.com 
 wrote:
 Hi Tobias,

 This is a revision between 0.92 and 0.93. It is really old and unless
 you have very strong reasons to keep it you should definitely update to
 the latest 0.95 version.
 At any rate that explains why PDF links aren’t working properly.

 Vincent


 Tobias Anstett [k15t.com] wrote:
 Hi Vincent,

 do you know which version of FO corresponds to trunk version 534713 ?

 Because this is the one I have installed.

 Cheers,
 Tobias

 On Wed, May 20, 2009 at 12:25 PM, Vincent Hennebert
 vhenneb...@gmail.com wrote:
 Hi Tobias,

 Tobias Anstett [k15t.com] wrote:
 Hi,

 we use (DocBook to) FO to PDF transformations. In the exported PDF the
 bookmarks doesn't work as expected. Although each bookmarks points to
 the correct page they don't jump to the correct section on that page -
 always pointing to the beginning. Is this a known issue with Apache
 FO?
 It was a known issue with versions up to 0.93, but it should work
 starting from 0.94. It’s advisable to upgrade to the latest version
 (0.95 at the moment). If that still doesn’t work as expected with that
 version, can you please attach a small FO file showing the problem?

 Thanks,
 Vincent

 HTH,
 Vincent

 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org





-- 
Cheers,
Tobias



K15t Software UG (haftungsbeschränkt), http://www.k15t.com
Rosenbergstr. 58, 70176 Stuttgart, GERMANY
Registration: Stuttgart HRB 729752, VAT ID: t.b.a.
Geschäftsführer (CEO): Klaus-Dieter Krüger

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Auto Table Column Width

2009-05-20 Thread Tobias Anstett [k15t.com]
Hi,

I know that auto table column width is currently not supported by FOP
0.9.5. But is there a way to get the actual width of a table in the
document (page - some indents) and calculate the column width like the
CSS2 algorithm does?

Or has anybody tried to render tables with iText and replace them
automatically in the generated FOP-PDF ?

-- 
Cheers,
Tobias



K15t Software UG (haftungsbeschränkt), http://www.k15t.com
Rosenbergstr. 58, 70176 Stuttgart, GERMANY
Registration: Stuttgart HRB 729752, VAT ID: t.b.a.
Geschäftsführer (CEO): Klaus-Dieter Krüger

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



PDF Bookmarks

2009-05-19 Thread Tobias Anstett [k15t.com]
Hi,

we use (DocBook to) FO to PDF transformations. In the exported PDF the
bookmarks doesn't work as expected. Although each bookmarks points to
the correct page they don't jump to the correct section on that page -
 always pointing to the beginning. Is this a known issue with Apache
FO?

-- 
Cheers,
Tobias



K15t Software UG (haftungsbeschränkt), http://www.k15t.com
Rosenbergstr. 58, 70176 Stuttgart, GERMANY
Registration: Stuttgart HRB 729752, VAT ID: t.b.a.
Geschäftsführer (CEO): Klaus-Dieter Krüger

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Trunk

2009-05-12 Thread Tobias Anstett [k15t.com]
Hi,

is there any information regarding new features already available in
the trunk?

I am especially looking for dynamic table/column width adjustment or floating ;)

-- 
Cheers,
Tobias

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Performance of Apache FOP

2009-05-05 Thread Tobias Anstett [k15t.com]
Hi,

We are using Apache FOP inside a web-app deployed within Apache
Tomcat. When the FO documents get to big (~20MB) we are getting out of
memory exceptions (java heap space overflows) while transforming FO to
PDF. We already assigned more than 1024m to the JVM but still get not
rid of this problem.

I already checked the
http://xmlgraphics.apache.org/fop/0.94/embedding.html#performance
documentation but it seams that we did everything like suggested. Any
ideas?

Cheers,
Tobias

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Performance of Apache FOP

2009-05-05 Thread Tobias Anstett [k15t.com]
Hi Adrian,

yes, seams like the whole content is wrapped in one big
fo:page-sequence. So there is room for improvement :)

I will write to the DocBook XSL mailinglist to get some tip how I can
split it in more fine grained fo:page-sequence junks.

Cheers and thanks,
Tobias

On Tue, May 5, 2009 at 5:56 PM, Adrian Cumiskey d...@cumiskey.com wrote:
 Hi Tobias,

 Do you use many page sequences in your FO documents?  FOP processes
 documents by page sequence so if you can section the document contents into
 lots of small page sequence segments this can help a lot with memory
 consumption.

 Good luck!

 Adrian.

 Tobias Anstett [k15t.com] wrote:

 Hi,

 We are using Apache FOP inside a web-app deployed within Apache
 Tomcat. When the FO documents get to big (~20MB) we are getting out of
 memory exceptions (java heap space overflows) while transforming FO to
 PDF. We already assigned more than 1024m to the JVM but still get not
 rid of this problem.

 I already checked the
 http://xmlgraphics.apache.org/fop/0.94/embedding.html#performance
 documentation but it seams that we did everything like suggested. Any
 ideas?

 Cheers,
 Tobias

 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org





 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Performance of Apache FOP

2009-05-05 Thread Tobias Anstett [k15t.com]
Hi Adrian,

does a fo:page-sequence always break a page or is there a way to
continue on the same page?

Cheers,
Tobias

On Tue, May 5, 2009 at 6:44 PM, Adrian Cumiskey d...@cumiskey.com wrote:
 Hi Artur,

 In your case not, but in many cases using many page sequences to break up
 the FO content can help a great deal.

 In your situation you would indeed have to take care of pagination, I would
 suggest you split up the 17k rows into many tables with the same column
 headings (one per page with x rows of content on each page), then use the
 break-after=page property to ensure the next table starts at the top of
 the next page.

 Adrian.

 Artur Zinatullin wrote:

 AC Do you use many page sequences in your FO documents?  FOP processes
 AC documents by page sequence so if you can section the document contents
 AC into lots of small page sequence segments this can help a lot with
 AC memory consumption.
 I have just dealt with the problem.
 The table with 17k rows x 12 cells brought the server to it's knees.
 If I knew, that I can use multiple page sequences... woud it help me?
 I mean, that theese rows were not of fixed height. If I used multiple
 page sequences to print one continous table, woud I have to do pagination
 manually?

 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Performance of Apache FOP

2009-05-05 Thread Tobias Anstett [k15t.com]
 Currently (with another library) I am flushing out
 every 200 rows and all the thing (800 pages totally) builds in a matter
 of seconds.

Which library are you referring to ?

- Tobias -

On Tue, May 5, 2009 at 6:57 PM, Artur Zinatullin ar...@webmedia.ee wrote:

 AC In your case not, but in many cases using many page sequences
 AC to break up the FO content can help a great deal.
 I beleave that indeed.
 If FO was able to flush out page by page, for instance, there woud
 be no problem. Currently (with another library) I am flushing out
 every 200 rows and all the thing (800 pages totally) builds in a matter
 of seconds. I had to wait 10+ minutes before my previous solution
 (with FOP) crashed the server :)

 AC In your situation you would indeed have to take care of pagination
 That's too much pain :)

 AC I would suggest you split up the 17k rows into many tables with the
 AC same column headings (one per page with x rows of content on each
 AC page), then use the break-after=page property to ensure the next
 AC table starts at the top of the next page.
 Unfortunatelly, the client likes that table continously.
 I have no idea how to achieve that without breking into FO pagination
 mechanism.
 Which I don't want to do for sure :)


 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Performance of Apache FOP

2009-05-05 Thread Tobias Anstett [k15t.com]
Hi,

I am using the DocBook XSL Stylesheets to generate FO. So the best way
to solve my memory issue would be to diverge from article style and
start a new fo:page-sequence after every major section like I would do
in book style for chapters...

Thanks for all the help ;)

Cheers,
Tobias

On Tue, May 5, 2009 at 8:30 PM, Andreas Delmelle
andreas.delme...@telenet.be wrote:
 On 05 May 2009, at 18:47, Tobias Anstett [k15t.com] wrote:

 Hi Tobias

 does a fo:page-sequence always break a page or is there a way to
 continue on the same page?

 Yes, a new page-sequence always starts on a new page. No way to disable
 this.
 Note that using forced breaks (break-before/break-after) inside a
 page-sequence only saves in the layout process, while starting a new
 page-sequence also releases all objects related to the FO tree.


 Regards

 Andreas

 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org