Re: Background image - resolution changed during fop processing

2004-06-14 Thread apourche
Hi,
My solution to resolve this problem is to use the different zone. The body zone 
is over the region-before zone.
Also, you can put your image in the body zone and your data in the region-
before zone.
fo:page-sequence master-reference=pdgGeneral
fo:static-content flow-name=xsl-region-before-pdgGeneral
Your data
/fo:static-content
fo:flow flow-name=xsl-region-body
fo:block
fo:external-graphic src=... height=...cm/
/fo:block 
/fo:flow
/fo:page-sequence
Antoine POURCHEZ




Selon Barbara Baur [EMAIL PROTECTED]:

 Hi
 I tried to follow the hints on graphics resolution and set an image 
 width using the content-width property. Unfortunately this did not work, 
 probably because background-image itself is a property of fo:region-body..
 I 'solved' the problem in the meantime by resampling the image to 72 
 dpi. This may work for simple images but for more complex ones the 
 result may not be satisfactory when the pdf is printed.
 So I am still looking for a proper solution for this background-image 
 problem.
 Regards
 
 Barbara
 
 
 
 Andreas L. Delmelle wrote:
 
 -Original Message-
 From: Barbara Baur [mailto:[EMAIL PROTECTED]
 
 
 
 
 Hi,
 
   
 
 I want to include a background image (a png with a 200 dpi resolution)
 in the region body of a simple page master.
 In the outcoming pdf the resolution of the image has changed to 72 dpi
 which is of course not what I wanted. The image is far too big and
 doesn't fit the page size anymore. Why does this happen? I use fop 0.20.5
 
 
 
 
 Check http://xml.apache.org/fop/graphics.html#resolution for more info
 about
 this.
 
 Note: could be that the supplied hints don't work for a background-image,
 I'm not sure.
 
 Hope this helps!
 (Don't hesitate to report back if it doesn't)
 
 
 Greetz,
 
 Andreas
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
   
 
 



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



Re: Regarding Radio Button in JSf Application

2004-06-14 Thread Glen Mazza
I'm unsure what this question has to do with FOP. 
Perhaps the Sun Java forums would be of help for you.

Glen

--- Amit Garg [EMAIL PROTECTED] wrote:
 Hi,
 
 I am facing a problem while creating a Radio Button
 for a JSF page in Studio
 Creator.Please tell me How can I add Radio button in
 my JSF page.
 
 Thanx and Regards
 
 Amit Garg
 
   -Original Message-
   From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
   Sent: Monday, June 14, 2004 10:42 AM
   To: [EMAIL PROTECTED]
   Subject: Any solutions to
 java.lang.OutOfMemoryError
 
 
   Hi everybody,
 
 
 
   I want to generate report to do this I am querying
 the data base between
 two dates there may 1 record or 1 records or
 10 records  exists how
 to handle this in FOP .
 
 
 
   Please send me some tips
 
 
 
   Is there is any dynamic solutions for this ?
 
 
 
   With regards
 
   Bhaskar
 
 


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



Re: Table header colors.

2004-06-14 Thread Chris Bowditch
Amita Rathore wrote:
Now I am trying to create a table , the header of the table contains 4 
columns. The text for first column is as small as a single word , while 
for second it wraps across two lines.

The problem is that I am trying to put a background color for the header 
cells with a padding of 2pts.
Are you defining the background color on the cell on the block within the 
cell? Please provide a snippet of your XSL-FO.

snip/
Chris

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


Re: rtf conversion

2004-06-14 Thread Chris Bowditch
tango ray wrote:
Have you any dates about the rtf conversion part in fop release?
It would be great, I m looking forward having a ExampleFo2Rtf ( or xml 
to rtf ) file, as it exits for pdf.
Take a look at JFor, a XSL-FO to RTF conversion tool, written in Java:
http://www.jfor.org/
JFor has been integrated into the development version of FOP. So alternatively 
you can use CVS to download the FOP source and compile it yourself. However, 
the development version of FOP is subject to change and not yet ready for 
production use.

Chris

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


Re: Table header colors.

2004-06-14 Thread Amita Rathore

I had already tried this, but doing
so the padding goes off.







Chris Bowditch [EMAIL PROTECTED]
06/14/2004 04:45 PM
Please respond to fop-user

To:
   [EMAIL PROTECTED]
cc:
   
Subject:
   Re: Table header colors.

   

Amita Rathore wrote:

 
 Here goes the snippet:
 
 fo:table table-layout=fixed 
 fo:table-column column-width=15mm/
 fo:table-column column-width=15mm/
 fo:table-column column-width=28mm/
 fo:table-body
 fo:table-row

  
  fo:table-cell padding=2pt   
 text-align=left 
  
  fo:block font-size=10pt 
 background-color=#ffDate/fo:block
   

This is your problem. You need to specify background-color on the cell
instead 
of the block. That way the whole cell will have the background color, and
not 
just the block, whose length may not fill up the row height, as youve 
discovered. E.g.

fo:table-cell padding=2pt text-align=left 
background-color=#fffo:block 
font-size=10ptDate/fo:block/fo:table-cell

snip/

Chris



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




Re: Table header colors.

2004-06-14 Thread Chris Bowditch
Amita Rathore wrote:
I had already tried this, but doing so the padding goes off.
Oh, I see. You might be able to use margin instead, if you dont have borders 
on the cells, then the spacing effect between text should appear the same.

Chris

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


Re: rtf conversion

2004-06-14 Thread Johannes Franz
How do i dowlnoad the development version of FOP via CVS?
Could someone explain?

Ciao

- Original Message -
From: Chris Bowditch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 14, 2004 12:48 PM
Subject: Re: rtf conversion


 tango ray wrote:

  Have you any dates about the rtf conversion part in fop release?
  It would be great, I m looking forward having a ExampleFo2Rtf ( or xml
  to rtf ) file, as it exits for pdf.

 Take a look at JFor, a XSL-FO to RTF conversion tool, written in Java:

 http://www.jfor.org/

 JFor has been integrated into the development version of FOP. So
alternatively
 you can use CVS to download the FOP source and compile it yourself.
However,
 the development version of FOP is subject to change and not yet ready for
 production use.

 Chris



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




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



Re: rtf conversion

2004-06-14 Thread Chris Bowditch
Johannes Franz wrote:
How do i dowlnoad the development version of FOP via CVS?
Could someone explain?
This is described in detail on the website. See:
http://xml.apache.org/fop/dev/tools.html#cvs
snip/
Chris

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


RE: Need text to flow outside the block

2004-06-14 Thread Vinuta Nagaraddi
Thanks for your input.  I have run out of ideas trying to get the text
to fit and now looking into commercial formatters.  I have an issue with
images also. I am setting the content width and content height to fit
images within a certain boundaries.  This works great for images larger
than the area.  FOP shrinks it to the correct size.  But, now the images
smaller than the region are getting stretched.  I am using eps image
files.  Any way to shrink large images (which I have achieved) but avoid
smaller images from stretching?  


Vinuta Nagaraddi

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 14, 2004 9:28 AM
To: Vinuta Nagaraddi
Subject: Re: Need text to flow outside the block

Vinuta Nagaraddi wrote:

 Yes, I am using block container for absolute positioning. I am setting
 left, top, width, and height attributes which can not be changed.
There
 are two situations:
 1.  Text is too long and not all the text is being displayed. I have
put
 the text into a table because I wasn't able to use the display align
 property on the block container. Ex:

Huh? display-align should work on block-container according to
compliance page:

http://xml.apache.org/fop/compliance.html#fo-property-display-align

snip/

 I need to make the text in both situations overflow the block
container
 boundaries.

There is no easy way to get this working with FOP. The possible options
as I 
see them:

1) redesign your document so that absolutely positioned text doesn thave

variable height.
2) redesign your stylesheet/FO making use of an outer table with nested 
tables. This is difficult to explain in an e-mail, but I have had to do
this 
myself for a customers rather complicated statement with lots of
absolutely 
positioned items.
3) I hate to admit defeat, but you may have to consider a commercial
XSL-FO 
formatter.

snip/

Chris







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



Re: rtf conversion

2004-06-14 Thread Johannes Franz
When i follow these instructions step by step, i download the development
version?

- Original Message -
From: Chris Bowditch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 14, 2004 3:17 PM
Subject: Re: rtf conversion


 Johannes Franz wrote:

  How do i dowlnoad the development version of FOP via CVS?
  Could someone explain?

 This is described in detail on the website. See:

 http://xml.apache.org/fop/dev/tools.html#cvs

 snip/

 Chris



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




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



RE: Help me from Outmemory issue

2004-06-14 Thread KS.Bhaskar
Hi Glen,
Thanks for help.

Tell me elaborately what you mean by 'more page sequences'.
Is it more number of fo:simple-page-master or more number of
fo:page-sequence-master master-name=contents  referring to
single-page-master.  

With regards
Bhaskar

-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 14, 2004 3:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Help me from Outmemory issue

You can probably keep your XML the same.  However, you
*might* find it helpful you if you add a metadata row
for the number of rows you have--if you wish to rely
on that number for subsequent XSLT processing logic.

Your XSL stylesheet however--can you rewrite it to
use more page sequences, or more (but smaller) tables?
 Is there some key value in each record that you can
divide by 10, perhaps, to set up 10 page sequences or
10 different tables?  The Mulberry XSLT list can help
you with any XSLT programming that may require.

HTH,
Glen


--- [EMAIL PROTECTED] wrote:
 Hi all, 
 
 I am having out of memory issues when transforming
 my FO -  PDF using 
 fop-0.20.5rc2. I read that using multiple page
 sequences in the XSL and 
 therefore in the FO means that fop will release some
 memory. I don 't
 see how 
 I can do this. My XML file is generated dynamically
 from a database so I
 
 don 't know how big it will be. Is there any
 solutions I can use that
 uses 
 multiple page sequences or possible change the xml
 structure, if not is 
 there another FOP transformer that isn 't as memory
 intensive. Thanks in
 
 advanced for any help. If I havn 't provided enough
 info please ask and
 I can 
 get back to you.
 
  
 
 With regards
 
 Bhaskar
 
 


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




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



RE: Help me from Outmemory issue

2004-06-14 Thread Derek Schenk



From my recent investigations I can assure you there there is no FO 
rendering tool that is less memory intensive, and the current version of FOP is 
one of the best choices in terms of memory usage. I use FOP for report 
generation, and I can have source XML documents that can be from 20kb to 1.2GB 
(yes GB). This is do-able if your willing to accept that performance is 
not going to be stellar, and you have to accept a lot of restrictions in XSL and 
XML development.

Just to head off the inevitable question. Many of the reports are 
stored for future audit purpose, and the number of pages isn't an issue since 
the PDF is searchable. The information needs to be stored in a 
non-(easily)-editable format as at a point in time. The transforms must go 
through the XSL:FO transformation because the end user is able to edit the 
stylesheets and alter visual layout.

Here's some of my experience:
1. The first problem your run into is that none of the XML transformers 
are easily able to handle a 1.2GB XML for transformation. All of them seem 
to insist on loading the entire XML into memory, even when using a SAX or Stream 
input source. There are three solutions. a.) Use SAXON in the preview mode 
which allows you to process the document as you read it, or b.) Write a disk 
based XML DOM solution and extend out the NodeSource class in SAXON (see the 
JDOM input source example), or c) create the FO directly instead of creating XML 
for transformation. 
I choose option b, and I created a Disk based XML that allows DOM style 
access to an XML document of unlimited size. The memory footprint is about 12MB 
regardless of the XML size, but you pay with performance.

2. All of the current FOP tools I looked at usememory to store the 
the pre-rendered FO information. The onlyproduct that I could 
overcome this with was FOP, where after an end of page-sequence it renders to 
disk and free's the memory. In order to use this I determine a logic 
group-by that is frequent enough to reduce memory usage and break on that. It 
results in a new page at the end of every group-by selection, but it 
works. There are a lot of choices for this, you could use something like a 
break on change in first letter in an alpha-name sort (ie moving from A-B 
creates a new page).

By page sequence the fo:tag that is refered to is 
'fo:page-sequence'. Each time a '/fo:page-sequence' is 
encountered the in memory info is rendered.

!!!This means that you can no longer use page numbering, so I use iText 
to post-process the report and add the 'Page x of y' to the bottom of every 
page.

To date, my largest transformation was a 1.1GB FO document, resulting in 
a 378,000 page report. Total transform time, including XML - FO, then 
FO- PDF was about 45 minutes on a P4 2.8 with 512MB RAM. The upper JVM 
memory size was set at -Xmx128m, and during the transform the peak memory usage 
was about 110MB. (so under the maximum)

As a finally note, there is a FOP alternate design project that is 
underway that is addressing the memory usage, but it's not yet 
available

Hope these suggestions help.

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Sent: Monday, June 14, 2004 
  2:45 AMTo: [EMAIL PROTECTED]Subject: Help me from 
  Outmemory issue
  
  Hi all, I am having out of 
  memory issues when transforming my FO -  PDF using fop-0.20.5rc2. I 
  read that using multiple page sequences in the XSL and therefore in the FO 
  means that fop will release some memory. I don 't see how I can do this. 
  My XML file is generated dynamically from a database so I don 't know how 
  big it will be. Is there any solutions I can use that uses multiple page 
  sequences or possible change the xml structure, if not is there another 
  FOP transformer that isn 't as memory intensive. Thanks in advanced for 
  any help. If I havn 't provided enough info please ask and I can get back 
  to you.
  
  With 
  regards
  Bhaskar


Wrapping too long words?

2004-06-14 Thread Johannes Franz



Hi there,

i have the following problem. Perhaps you can help 
me.
Ok, since i am producing my fo file from an 
automatically created xml file, there are often words wich are too big for a 
table cell and so overflow in the next cell. Sometimes words are even to long 
for one line of the page. So is there a fo attribute to wrap the word and go 
forward in a new linewhen it  exceeds a predefined length? It has not to 
be an "intelligent" wrapping like hyphenation.

Ciao.


Re: Help me from Outmemory issue

2004-06-14 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
Tell me elaborately what you mean by 'more page sequences'.
Is it more number of fo:simple-page-master or more number of
fo:page-sequence-master master-name=contents  referring to
single-page-master.  
The latter. Use XSLT grouping techniques to achieve this.
The XSL FAQ has all the details zou need to know.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: main layout background color

2004-06-14 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
is it possible to change the color of the background in all pages,..
not in fo:region ..
instead a plain white, i might want to use gray for all my pdf 

i'm looking something like BODY background-color:gray. ..like in HTML..
Setting a background color on the regions in the page master
should work. Is there a reason why you can't use this?
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Wrapping too long words?

2004-06-14 Thread J.Pietschmann
Johannes Franz wrote:
Ok, since i am producing my fo file from an automatically created xml 
file, there are often words wich are too big for a table cell and so 
overflow in the next cell. Sometimes words are even to long for one line 
of the page. So is there a fo attribute to wrap the word and go forward 
in a new line when it exceeds a predefined length? It has not to be an 
intelligent wrapping like hyphenation.
This is one of the not-so-well written areas of the
specification. It's probably something of a bug that
FOP wont always wrap. All the other wisdom is in the
FAQ:
 http://xml.apache.org/fop/faq.html#cells-overflow
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Help me from Outmemory issue

2004-06-14 Thread Glen Mazza
Actually, neither--I'm referring to the
fo:page-sequence formatting object, which is an
immediate child of fo:root and positioned after
fo:layout-master-set, and (optionally)
fo:declarations.

Glen


--- [EMAIL PROTECTED] wrote:
 Hi Glen,
 Thanks for help.
 
 Tell me elaborately what you mean by 'more page
 sequences'.
 Is it more number of fo:simple-page-master or more
 number of
 fo:page-sequence-master master-name=contents 
 referring to
 single-page-master.  
 
 With regards
 Bhaskar
 
 -Original Message-
 From: Glen Mazza [mailto:[EMAIL PROTECTED] 
 Sent: Monday, June 14, 2004 3:33 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Help me from Outmemory issue
 
 You can probably keep your XML the same.  However,
 you
 *might* find it helpful you if you add a metadata
 row
 for the number of rows you have--if you wish to rely
 on that number for subsequent XSLT processing logic.
 
 Your XSL stylesheet however--can you rewrite it to
 use more page sequences, or more (but smaller)
 tables?
  Is there some key value in each record that you can
 divide by 10, perhaps, to set up 10 page sequences
 or
 10 different tables?  The Mulberry XSLT list can
 help
 you with any XSLT programming that may require.
 
 HTH,
 Glen
 
 
 --- [EMAIL PROTECTED] wrote:
  Hi all, 
  
  I am having out of memory issues when transforming
  my FO -  PDF using 
  fop-0.20.5rc2. I read that using multiple page
  sequences in the XSL and 
  therefore in the FO means that fop will release
 some
  memory. I don 't
  see how 
  I can do this. My XML file is generated
 dynamically
  from a database so I
  
  don 't know how big it will be. Is there any
  solutions I can use that
  uses 
  multiple page sequences or possible change the xml
  structure, if not is 
  there another FOP transformer that isn 't as
 memory
  intensive. Thanks in
  
  advanced for any help. If I havn 't provided
 enough
  info please ask and
  I can 
  get back to you.
  
   
  
  With regards
  
  Bhaskar
  
  
 
 

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

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


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