Table-footer breaking across page

2006-07-27 Thread DenisP

I have a 3 row table footer that I want
to appear at the bottom of the table content.  The table runs over
3 pages.  The header repeats on each page but I have put in  table-omit-footer-at-break="true"
because I only want the footer on the last page.  This works fine
*except* when the 3 rows of the footer actually hit the end of a page.
 When this happens, the footer is pushed onto the next page (properly)
but I get the header and 29 blank rows of table body before the table footer
appears.  Is there another property I should be using?

Thanks,
Phil

Memory leak? (was: 'Possible' memory leak on fop-users)

2006-07-27 Thread Andreas L Delmelle

On Jul 27, 2006, at 23:56, Andreas L Delmelle wrote:


I wouldn't be surprised to see a lot of these trees occur in the  
course of the process, but if I esteem correctly, in a literal  
snapshot, there should be only one. There is only one handler which  
has one reference to the current block. That reference is never  
explicitly cleared, but strictly speaking, it never needs to be  
since it is re-used. Taking a snapshot right after FOP has  
finished, would reveal the last one, provided that the reference  
tree Root->AreaTreeHandler->XMLWhiteSpaceHandler has not yet been  
completely cleared/released.


Was re-thinking this particular phrasing, and had a closer look...  
Moved it to fop-dev, because of the importance.


Firstly, this looks like a damned circular reference, indeed! That's  
my bad, sorry.


Since the reference to the last block is not released unless the  
reference to the Root's AreaTreeHandler is cleared, this keeps the  
entire ancestry alive, up to the PageSequence, which itself holds a  
reference to the Root? :| ... :(


Definitely worth a try to release the reference XMLWhiteSpaceHandler- 
>Block as soon as possible.


OTOH, looking deeper, I'm strangely surprised no-one saw this one  
before --so surprised even that it makes me think I'm missing  
something :


Root.addChildNode(PageSequence) results in a reference to the  
PageSequence being kept in the Root's list of child nodes. Right?


AFAICT, this reference is *never* released as long as the Root object  
is alive, so it seems like currently, our 'split up in page- 
sequences' performance hint is complete and utter bogus...?


Sorry to disappoint you all.

Good news is, both are rather easily fixed --at least on the surface.

Either:
a) override addChildNode() in Root, so that the PageSequences don't  
get added to the List at all; maybe only under certain circumstances  
(unresolved forward references?) should this be needed

b) call Root.removeChild(this) in PageSequence.endOfNode()
c) call Root.removeChild() from the next PageSequence's startOfNode()

Unfortunately, I am a bit stuck in the marker-property rework ATM -- 
FOText in a marker turns out to be a little bit more difficult than  
the FObj-subclasses... Decided to take care of the dubious static  
FOText.lastFOTextProcessed in one go, so that will make a nice set of  
improvements 8)


I'll make it a priority to clear this up after that, if nobody beats  
me to it.



Cheers,

Andreas

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



PDFTranscoder custom fonts

2006-07-27 Thread Antonio Broughton
Hi,

I have a question about using custom fonts when converting from SVG to
PDF using PDFTranscoder.

There is a zip file containing all the information available at
http://www.flerwin.net/fopquestion.zip

It includes
 * Java source code
 * SVG trying to convert to PDF
 * XML generated from TTFReader
 * The TTF font
 * Configuration file read in via Avalon

The problem that I am having is that I cannot add the Tahoma font, so
that the PDF contains the same font as that in the SVG.

As you can see in the code, I have followed the example given at
http://wiki.apache.org/xmlgraphics-fop/SvgNotes/PdfTranscoderTrueTypeEmbedding

Am I doing something wrong?

I am currently using SVN Trunk version of Batik and SVN Trunk version FOP


Thanks
Antonio Broughton

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



Re: Possible memory leak

2006-07-27 Thread Andreas L Delmelle

On Jul 27, 2006, at 18:54, Karthik wrote:

Coming back to profiling, I tried taking a snapshot of the heap  
after a FOP
conversion using Jprobe and Jprobe reports "CondLengthProperty" as  
the loitering
object. Not very familiar with analyzing this further. I have a  
snapshot file
and some screen prints of Jprobe, not sure how to post it in this  
forum.


Well, best to avoid posting large attachments to the list, as you  
will force every subscriber to download them.


Maybe we could also move this whole discussion to Bugzilla, and add  
those files as attachments over there. Benefit is that, even when we  
don't immediately have the time to look further, there will be a  
constant reminder to look into this.



But this is how the reference tree to the object looks like  :

Root -> AreaTreeHandler -> XMLWhiteSpaceHandler -> Block ->  
TableCell ->
CommonBorderPaddingBackground -> CondLengthProperty ->  
CondLengthProperty


Hmm... So, are you sure *all* these CondLengthProperty instances have  
this same reference tree? Or did you check only one?


Attempt at interpretation:
In itself, *one* of these trees at a given point in the process is  
certainly nothing to worry about. The WS-handler keeps a reference to  
the current block. That block references its parent, a TableCell,  
which references its own properties, and a length-conditional  
property holds a reference to its corresponding property --e.g.  
padding-before<->padding-top, depending on whether 'before' maps to  
'top' given the writing-mode and reference-orientation).
I wouldn't be surprised to see a lot of these trees occur in the  
course of the process, but if I esteem correctly, in a literal  
snapshot, there should be only one. There is only one handler which  
has one reference to the current block. That reference is never  
explicitly cleared, but strictly speaking, it never needs to be since  
it is re-used. Taking a snapshot right after FOP has finished, would  
reveal the last one, provided that the reference tree Root- 
>AreaTreeHandler->XMLWhiteSpaceHandler has not yet been completely  
cleared/released.


At most, we could try nulling this out explicitly in  
PageSequence.endOfNode(), but I'm not sure if that is going to make  
much of a difference. It *may* result in those objects being GC'ed  
sooner, but that ultimately depends on the JVM. :/


Not sure if I am doing the right thing, but I'm willing to help or  
contribute

further on this.


Something that could also be of use to judge this completely is an  
example of a FO-file (note: NOT the XML+XSLT, but the result of the  
XSL transform, because that ultimately is the input for FOP) Is it  
possible for you to generate one with Xalan or Saxon? Use a source  
XML with non-confidential dummy data. It doesn't need to be large,  
but just enough to give us an idea of what a typical document looks  
like for you --so we only have to imagine it a thousand times larger.  
(Or did you already send one to this list in the past?)



Thanks,

Andreas

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



Re: Font problem

2006-07-27 Thread abahel

Thanks Chris and Pascal. It worked when both ttf and xml files were in the
same folder in my case it is fonts.
-- 
View this message in context: 
http://www.nabble.com/Font-problem-tf2009831.html#a5525988
Sent from the FOP - Users forum at Nabble.com.


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



[GT2006] Update! Cocoon GetTogether 2006 (Oct 2-4,Amsterdam)

2006-07-27 Thread Arje Cahn

   ***
   * *
   *   Cocoon GetTogether 2006   *
   * *
   * October 2nd to 4th  *
   * *
   * Amsterdam, The Netherlands  *
   * *
   ** www.cocoongt.org ***

Hi all,

Here's a little Cocoon GetTogether 2006 update!
First of all, a big Thank You to everyone who responded to my emails!

Ideas for talks
---

Here's the (long!) list of subjects for sessions that we all came up with:

- Success stories (why someone chose Cocoon, for what, what was great and
  what not?)
- Comparison of Cocoon with other web frameworks
- Why should I upgrade to 2.2?
- A "meet the Cocoon devs" session at the hackaton for users. This session
  should be moderated and the topics come from the participating
  non-committers.
- Perspectives of the portal block, relations to other Apache portal
  projects
- Some shorter, flashier presentations of what you can achieve with
  Cocoon, right from the core developers
- A session with "kowledge flashes", 5 to 10 minutes per subject
- A "guided tour" through Cocoon where Reinhard interviewed Carsten and
  Sylvain about the internals
- Some demos of actual Cocoon sites, with explanations of why, how, etc
- Optimisation techniques, (efficient, performant Cocoon) across the whole
  lifecycle of an application
- The secret gems of Cocoon (what do people not know about that is really cool)
- Interactive apps, authentication, user tuned content
- How to get involved (find out what the community needs from contributers)
- Some sessions that focus on technologies that are often used together with
  Cocoon, with Guru's:
- Maven 2
- Spring 2
- FOP 0.92
- Cocoon and Web Services/SOA
- Lepido
- Some howto's / best practices for
- Configuration
- Using Spring
- Building Cocoon
- 10 Reasons to use Cocoon
- A "What's new in 2.2 and how to use it track" with different topics, 5 to
  10min per topic.
- What's up for Cocoon 3.0?
- The Funky Cocoon AJAX tour (with lots of samples!)
- A session like "moving from xsp and sitemap actions to flowscript and
  jxtemplate" to introduce existing users to the latest Cocoon techniques
  and guide them in upgrading their older bits of code
- A short (!!) introduction to OSGi (what's all that fuzz about?!)
- Best practice + case studies for cocoon based Intranet Portals
- Integration of Cocoon and Open Source Workflow Servers, Cocoon based
  Workflow applications in general
- Cocoon Forms: "meta form application" (let the users create form based
  applications by assembling cocoon forms with the help of CF)
- Short, practical case studies: high-level architecture, integrating
  Cocoon, etc. 
- How to NOT get lost in Cocoon technologies: flow, binding, xsp, jxtemplate,
  cforms, authentication, portal, etc. 
- How does Cocoon provide login, authorization, menu, form processing,
  templating, integration with backends (database)? 
- How to create a "typical" project with cocoon, regarding
  sitemap hierarchy and organization, class model, deployment, artifacts,
  where do flows scripts must go, etc?
- Case studies showing large web applications
- Cocoon for 'non-java' professionals and Cocoon project management
- What is the required knowledge in order to hire a professional that should
  work in a cocoon project?
- Does separation of concerns work in a real world situation?
- Reducing risk when building large projects with large teams
- How to tweak Cocoon for performance
- Real numbers on cocoon performance, real hardware and real deployment
  topology (load balancing, session replication)
- A caching tour. How can I use caching effectively and what can I cache
- Measuring performance. How can I know at what speed my cocoon site is
  running? 
- The Cocoon toolset: tools that can help shorten development time / tools
  for testing / monitoring

And a final note from Bertrand: "Talking to community members, I get a feeling 
that we're using Cocoon in wildly different ways, and I think it's one of its 
major strengths - let's show this at the GT!"

(+1 from me!)

Many thanks to all who shared their thoughts - it gives so much more insight in 
what everyone's expecting from a good Cocoon conference. Great! Now, all we 
have to do is do it 8-)

Audience


There was some interest from the FOP guys at the ApacheCon Europe to come by at 
the CocoonGT and (ab)use our hackaton for their own efforts. I guess Cocoon 
could only benefit from that, so I'd say they are more than welcome to do so! 
Also, I'd welcome anyone from Forrest, Lenya, Daisy or any other Cocoon-related 
project at this years Cocoon GetTogether. The more, the marrier!

Rooms
-

We have the possibility of renting an extra (smaller) room during one or more 
of the 3 days, almost for free. So, we *could* do parallel sessions of some 
kind Any thoughts?

Sponsoring
-

Re: Possible memory leak

2006-07-27 Thread Karthik
Andreas,

Thanks again for your time. Nothing specific in using call-template instead of
apply-templates.

Coming back to profiling, I tried taking a snapshot of the heap after a FOP
conversion using Jprobe and Jprobe reports "CondLengthProperty" as the loitering
object. Not very familiar with analyzing this further. I have a snapshot file
and some screen prints of Jprobe, not sure how to post it in this forum. 

But this is how the reference tree to the object looks like  :

Root -> AreaTreeHandler -> XMLWhiteSpaceHandler -> Block -> TableCell ->
CommonBorderPaddingBackground -> CondLengthProperty -> CondLengthProperty

Not sure if I am doing the right thing, but I'm willing to help or contribute
further on this.

Thanks again for the help,
karthik








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



Re: Font problem

2006-07-27 Thread Chris Bowditch

abahel wrote:


Dear FOP users:

I am using fop-0.92 beta to transform xml2pdf. The document uses GillSansMT
fonts.
I have converted all Gil.ttf files to Gil.xml files using TTFReader.
The program executes fine and produces the pdf file. But when I try to view
it using Adobe pdf viewer it gives following error:
"cannot find or create "font 1e2d9GillSansMT,"Bold". Some characters may not
display or  print correctly"


Ok. Are you running from command line? If so, do you se any warnings on 
the screen?




Here are partial code from configuration file and xsl file.

configuration file===
 
  
  
 


Are your metrics in a different directory to the TTF file? You've 
specified a sub directory of FONTS for the metrics, but the TTF file 
will need to be in the base dir or the same location as the XML file in 
order for FOP to correctly embed your font.




Chris



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



RE: Font problem

2006-07-27 Thread Pascal Sancho
Hi Abahel,

Your metrics-url and embed-url show 2 different folders:
"FONTS\GILB.xml" and "GILB.ttf"

Do you confirm that your xml and ttf files are in different location?

Pascal

> -Original Message-
> From: abahel [mailto:[EMAIL PROTECTED] 
> 
> Dear FOP users:
> 
> I am using fop-0.92 beta to transform xml2pdf. The document 
> uses GillSansMT fonts.
> I have converted all Gil.ttf files to Gil.xml files 
> using TTFReader.
> The program executes fine and produces the pdf file. But when 
> I try to view it using Adobe pdf viewer it gives following error:
> "cannot find or create "font 1e2d9GillSansMT,"Bold". Some 
> characters may not display or  print correctly"
> 
> Here are partial code from configuration file and xsl file.
> 
> configuration file===
>   embed-url="GILB.ttf">
>   
>weight="bold"/>  ==xsl file==  
>  font-weight="bold"
> font-size="14pt"  text-align="center">
>


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



Font problem

2006-07-27 Thread abahel

Dear FOP users:

I am using fop-0.92 beta to transform xml2pdf. The document uses GillSansMT
fonts.
I have converted all Gil.ttf files to Gil.xml files using TTFReader.
The program executes fine and produces the pdf file. But when I try to view
it using Adobe pdf viewer it gives following error:
"cannot find or create "font 1e2d9GillSansMT,"Bold". Some characters may not
display or  print correctly"

Here are partial code from configuration file and xsl file.

configuration file===
 
  
  
 
==xsl file==
 
  

 

I would appreciate any help. 

Thanks,
--Atul
-- 
View this message in context: 
http://www.nabble.com/Font-problem-tf2009831.html#a5521859
Sent from the FOP - Users forum at Nabble.com.


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



latest build

2006-07-27 Thread Rick Roen








I downloaded and built FOP from the SVN yesterday (26-07-2006).

 

The build appeared successful and I copied all the files
into my working folder.

 

Now when I do a PDF that contains png graphics (barcodes
generated from BarCode4j) they turn out as fuzzy unreadable images.

 

I have attached a pdf and a png to demonstrate.

 

Did something break with rendering png images in this build,
I was using a build from 02-06-2006 before this.

 

I am viewing with Adobe Reader 7.0 on an XP pro SP2 box.

 

Thanks,

 

Rick








postnet95126.png
Description: PNG image


PDF_PNG_Sample.pdf
Description: Adobe PDF document
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Strange line break when using text-align="center"

2006-07-27 Thread Michael Bruns
Hi Andreas and Manuel,

thank you very much for your help :-)

Manuel Mall wrote:
> [...]
> Andreas, I think you are correct (see also 
> http://wiki.apache.org/xmlgraphics-fop/LineBreaking) for a brief 
> documentation of the Knuth elements generated.
> 
> Michael, can you post a short but complete fo example that demonstrates 
> the issue?

I've spent almost two hours now trying to reproduce the behaviour in a
small example, but I didn't manage it :-( I've tried several ways, but
each time both the alignment and the line breaks looked fine.

I'll do my very best to deliver a small example because it wouldn't be
possible to show the "big one" anyway - my employer probably wouldn't be
that happy about it ;-) Maybe it has got to do something with the font
I'm using (FreeSans) and for which I created the metrics. I will try to
play around with that a little bit.

Anyway, thank you very much again for your advices :-)

Cheers,

Michael

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