Re: Dynamic charts issues in batch PDF generation

2006-01-18 Thread Prakash R
Instead of running just the servlet, can you also pass
a unique number/string along with the servlet which
makes it a unique call.

eg. instead of using ChartServlet maybe you can use
ChartServlet?id=unique_id

where unique_id is different for each image.

The charts are probably being cached. This will force
it to generate the chart each time.

Hope this helps.
Prakash

--- vijay visu [EMAIL PROTECTED] wrote:

 hi 
 
 i am doing a code which generates the PDF in a batch
 process. 
 
 These PDFs include dynamically built charts by
 servlets. 
 I am making use of external-graphic tag to pick the
 images.
 These servlets throw jpeg image of the charts in the
 output stream.
 
 These servlets should be called for each PDFs
 generated since each chart will be unique.
 My problem is that the servlets which builds the
 dynamic charts are called 
 for the first time only. On the subsequent calls the
 old charts are 
 only built in PDF and the servlets are not getting
 called.
 
 Please help me out in this problem
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 

-
 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: Long Table repeat header

2005-11-22 Thread Prakash R
Isn't it true that fo:retrieve-marker can only be used
within a fo:static-content? If so, how will this work?
Are there any other options?

Thank you.
Prakash

--- Sascha Schmidt [EMAIL PROTECTED] wrote:

 Hi,
 
 fo:marker and fo:retrieve-marker are your best
 friends here. Example:
 
 fo:flow
   fo:marker
 marker-class-name=continued/fo:marker
   ...
   fo:table
fo:table-header
 fo:table-row
  fo:table-cellHeader fo:retrieve-marker
 retrieve-class-name=continued//fo:table-cell
 /fo:table-row
/fo:table-header   
fo:table-body
 fo:table-row
  fo:table-cell
   fo:marker
 marker-class-name=continuedcont./fo:marker
   content...
 /fo:table-row
/fo:table-body
   /fo:table
 /fo:flow
 
 Cheers,
 Sascha  
 
 -Original Message-
 From: Prakash R [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, November 19, 2005 8:23 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: Long Table repeat header
 
 I have a document (FO-PDF) made up of multiple
 tables.
 Some of these tables are long and span multiple
 pages.
 I want to be able to repeat the header on the next
 page. But at the same
 time I want to add the word continued for any
 subsequent pages. i.e.
 
 col1   col2   col3
 TABLE HEADER
 ---
 jjf   jflkds   jflkds
 fjs   jflsda   jklfds
 jjf   jflkds   jflkds
 fjs   jflsda   jklfds
 jjf   jflkds   jflkds
 fjs   jflsda   jklfds
 --- page break 
 col1   col2   col3
 TABLE HEADER (CONTD)
 ---
 fjs   jflsda   jklfds
 fjs   jflsda   jklfds
 
 col1   col2   col3
 TABLE HEADER2
 ---
 fjs   jflsda   jklfds
 fjs   jflsda   jklfds
 fjs   jflsda   jklfds
 --- page break 
 col1   col2   col3
 TABLE HEADER3
 ---
 fjs   jflsda   jklfds
 fjs   jflsda   jklfds
 fjs   jflsda   jklfds
 
 Is there anything in FO that will allow repeating of
 table header and also
 modification of table header in subsequent pages?
 
 Thank you.
 Prakash
 

-
 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]



RE: Long Table repeat header

2005-11-22 Thread Prakash R
Isn't it true that fo:retrieve-marker can only be used
within a fo:static-content? If so, how will this work?
Are there any other options?

Thank you.
Prakash

--- Sascha Schmidt [EMAIL PROTECTED] wrote:

 Hi,
 
 fo:marker and fo:retrieve-marker are your best
 friends here. Example:
 
 fo:flow
   fo:marker
 marker-class-name=continued/fo:marker
   ...
   fo:table
fo:table-header
 fo:table-row
  fo:table-cellHeader fo:retrieve-marker
 retrieve-class-name=continued//fo:table-cell
 /fo:table-row
/fo:table-header   
fo:table-body
 fo:table-row
  fo:table-cell
   fo:marker
 marker-class-name=continuedcont./fo:marker
   content...
 /fo:table-row
/fo:table-body
   /fo:table
 /fo:flow
 
 Cheers,
 Sascha  
 
 -Original Message-
 From: Prakash R [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, November 19, 2005 8:23 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: Long Table repeat header
 
 I have a document (FO-PDF) made up of multiple
 tables.
 Some of these tables are long and span multiple
 pages.
 I want to be able to repeat the header on the next
 page. But at the same
 time I want to add the word continued for any
 subsequent pages. i.e.
 
 col1   col2   col3
 TABLE HEADER
 ---
 jjf   jflkds   jflkds
 fjs   jflsda   jklfds
 jjf   jflkds   jflkds
 fjs   jflsda   jklfds
 jjf   jflkds   jflkds
 fjs   jflsda   jklfds
 --- page break 
 col1   col2   col3
 TABLE HEADER (CONTD)
 ---
 fjs   jflsda   jklfds
 fjs   jflsda   jklfds
 
 col1   col2   col3
 TABLE HEADER2
 ---
 fjs   jflsda   jklfds
 fjs   jflsda   jklfds
 fjs   jflsda   jklfds
 --- page break 
 col1   col2   col3
 TABLE HEADER3
 ---
 fjs   jflsda   jklfds
 fjs   jflsda   jklfds
 fjs   jflsda   jklfds
 
 Is there anything in FO that will allow repeating of
 table header and also
 modification of table header in subsequent pages?
 
 Thank you.
 Prakash
 

-
 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]



Long Table repeat header

2005-11-18 Thread Prakash R
I have a document (FO-PDF) made up of multiple tables.
Some of these tables are long and span multiple pages.
I want to be able to repeat the header on the next
page. But at the same time I want to add the word
continued for any subsequent pages. i.e.

col1   col2   col3
TABLE HEADER
---
jjf   jflkds   jflkds
fjs   jflsda   jklfds
jjf   jflkds   jflkds
fjs   jflsda   jklfds
jjf   jflkds   jflkds
fjs   jflsda   jklfds
--- page break 
col1   col2   col3
TABLE HEADER (CONTD)
---
fjs   jflsda   jklfds
fjs   jflsda   jklfds

col1   col2   col3
TABLE HEADER2
---
fjs   jflsda   jklfds
fjs   jflsda   jklfds
fjs   jflsda   jklfds
--- page break 
col1   col2   col3
TABLE HEADER3
---
fjs   jflsda   jklfds
fjs   jflsda   jklfds
fjs   jflsda   jklfds

Is there anything in FO that will allow repeating of
table header and also modification of table header in
subsequent pages?

Thank you.
Prakash

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



FOP font width for custom font (Arial)

2005-11-17 Thread Prakash R
I'm using Arial font with FOP. I installed the fonts
by following the step to install custom fonts from TTF
on the FOP website using the TTFReader and adding
entries in userconfig.xml.

When I generate a PDF which uses the Arial font, the
width of characters are different for uppercase and
lowercase. The lowercase being lesser width. Is there
anyway I can set any property so that the lowercase
characters are also the same width as the uppercase
characters?

Thank you.
Prakash

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



Re: FOP font width for custom font (Arial)

2005-11-17 Thread Prakash R
Thanks Manuel. I understand the difference now. Let me
rephrase my question.

I'm using Arial font in FOP and when I render it to
PDF with a specific font type and size (bold, size 12
pt) and I do the same with Microsoft word and print
both. It is exact same line and same font etc. The
Microsoft version of it is longer (when I overlay and
compare) than the FOP version even though both are
using the same fonts? Somehow the spacing of the
characters/words seems to be different in FOP than
with word. 

Is this a known issue? Can this be corrected? This is
causing some inconsistency between 2 formats namely
word and PDF. Please help.

Thank you.
Prakash

--- Manuel Mall [EMAIL PROTECTED] wrote:

 On Fri, 18 Nov 2005 04:46 am, Prakash R wrote:
  I'm using Arial font with FOP. I installed the
 fonts
  by following the step to install custom fonts from
 TTF
  on the FOP website using the TTFReader and adding
  entries in userconfig.xml.
 
  When I generate a PDF which uses the Arial font,
 the
  width of characters are different for uppercase
 and
  lowercase. The lowercase being lesser width. Is
 there
  anyway I can set any property so that the
 lowercase
  characters are also the same width as the
 uppercase
  characters?
 
 Arial is a so called proportional font. Not only
 have lowercase letters 
 different widths to uppercase letters but even
 within the same case 
 letters will have different widths, e.g. i will have
 a different width 
 to m and W is different in width to J.
 
 If a fixed character width is important to your
 layout you need to use a 
 fixed width (= non proportional) font. For example
 Courier.
 
  Thank you.
  Prakash
 
 Manuel
 

-
 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]



Image - Scale Width/Height

2005-10-21 Thread Prakash R
Can someone have a “box” (eg: table cell) set to a
specific height and width and say to have an image
scale to the size of that box??

If images are taller than the height, then scale by
height. But if images are wider than the widths, then
scale by width. But if both height and width are
higher, then scale it such that the image fits in the
box but still maintains its aspect ratio.

Thank you.
Prakas

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



hide header/footer

2005-10-04 Thread Prakash R
Is there a way to hide the header/footer for a
particular page within a page-sequence? I just want to
hide the header/footer for a particular page not the
last or any alternate page. I know there are ways to
do that. But is there a way to hide header/footer for
a random page in between?

Thank you.
Prakash



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



determine if block is before page-break

2005-09-27 Thread Prakash R
I have the following fo:

fo:block123/fo:block
fo:blockxyz/fo:block
fo:blockfo:leader//fo:block
fo:blockabc/fo:block
fo:blockdef/fo:block

I want to put the leader only if it is not followed by
a page break. Is there a way to determine if fo:leader
is followed by page break?

Thank you.
Prakash



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



multiple tables in same row on page

2005-09-22 Thread Prakash R
I have a fo which looks like this:

fo:block
   fo:table
  ...
   /fo:table
   fo:table
  ...
   /fo:table
   fo:table
  ...
   /fo:table
   fo:table
  ...
   /fo:table
/fo:block

The number of tables in the fo:block is variable. Is
there a way to lay the tables in a single row one
after the other and if it does not fit in the same row
to go on the next row.

table1 table2 table3
table4 table5

In the above example table1, table2 and table3 fit
across the width of the page. table4 and table5 are on
the next row.

Each of the individual pages would resize to content
and so in some cases 2 tables might be on one row
while in some other case it might be as much as 4 in a
row.

Thanks in advance.

Prakash



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Centering content with FO:LEADER

2005-09-18 Thread Prakash R
Hi,

I need to center text in a fo:block. At the same time
I need fo:leader on either side of the text. How can I
align the text and at the same time have fo:leader on
either side of equal length? Also the text is small
enough that it won't wrap.

Here is what I have. But it doesn't render right.

fo:block
align=centerfo:leader/TEXTfo:leader//fo:block


Thank you.
Prakash



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



XSL Question - Unique list

2005-08-31 Thread Prakash R
I have an xml document which looks like this:

products
product
nameshirt/name
metadata fieldid=1
fieldvaluelong sleeve/fieldvalue
metadata fieldid=2
fieldvaluered/fieldvalue
metadata fieldid=3
fieldvalueRG/fieldvalue
/metadata
metadata fieldid=3
fieldvalueLN/fieldvalue
/metadata
/metadata
/metadata
metadata fieldid=1
fieldvalueshort sleeve/fieldvalue
metadata fieldid=2
fieldvalueblue/fieldvalue
metadata fieldid=3
fieldvalueRG/fieldvalue
/metadata
metadata fieldid=3
fieldvalueSM/fieldvalue
/metadata
/metadata
/metadata
metadata fieldid=1
fieldvaluesleeveless/fieldvalue
metadata fieldid=2
fieldvaluered/fieldvalue
metadata fieldid=3
fieldvalueLN/fieldvalue
/metadata
metadata fieldid=3
fieldvalueSM/fieldvalue
/metadata
/metadata
/metadata
/product
product
namet-shirt/name
metadata fieldid=1
fieldvaluelong sleeve/fieldvalue
metadata fieldid=2
fieldvaluered/fieldvalue
metadata fieldid=3
fieldvalueAA/fieldvalue
/metadata
metadata fieldid=3
fieldvalueBB/fieldvalue
/metadata
/metadata
/metadata
metadata fieldid=1
fieldvalueshort sleeve/fieldvalue
metadata fieldid=2
fieldvalueblue/fieldvalue
metadata fieldid=3
fieldvalueCC/fieldvalue
/metadata
metadata fieldid=3
fieldvalueDD/fieldvalue
/metadata
/metadata
/metadata
metadata fieldid=1
fieldvaluesleeveless/fieldvalue
metadata fieldid=2
fieldvaluered/fieldvalue
metadata fieldid=3
fieldvalueAA/fieldvalue
/metadata
metadata fieldid=3
fieldvalueEE/fieldvalue
/metadata
/metadata
/metadata
/product
/products

Is there any way using XSL I can get the unique
[EMAIL PROTECTED]/fieldvalues for each product. I
know I can do it across the entire XML doc. In this
example for product(name=shirt) it would be RG,LN and
SM , product(name=t-shirt) it would be AA,BB,CC,DD,EE.
I want to be able to get these separately for each
product and iterate through it within the product if
possible.

Thank you.
Prakash

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: FO - Force Pages on same spread

2005-08-22 Thread Prakash R
I meant putting the two pages on two different pages
but making sure they are side by side like when you
open the book you can see the pages side by side(i.e.
on the same spread).

Thank you.
Prakash

--- Jeremias Maerki [EMAIL PROTECTED] wrote:

 Are you talking about imposition (two-up)? Putting
 two pages besides
 each other on one piece of paper? FOP can't do that,
 yet. You'd have to
 use a third-party tool to do that.
 
 On 20.08.2005 06:44:20 Prakash R wrote:
  Hi,
  
  I'm preparing a FO document in order to generate a
  catalog book. I would like to have two pages
 together
  such that they are on the same spread i.e. if the
  first page is an even page(left) then the next
 would
  be the following odd pages(right) making it on the
  same spread. On the other hand if the first page
 falls
  on an odd page(right), I would like to force a
 blank
  page and start it as an even page(left) so that
 the
  second page is an odd page(right) making it on the
  same spread.
  
  How can I achieve this? Any ideas would be greatly
  appreciated.
 
 
 
 Jeremias Maerki
 
 

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





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



RE: FO - Force Pages on same spread

2005-08-22 Thread Prakash R
No. I have two pages within my document(which has
pages preceding and following these pages) and I need
to make sure they end up side by side pages (as when
you open the book the two pages are next to each other
rather than having to turn pages). 

The first of these 2 pages needs to be on the left and
the second of these 2 pages on the right. In case the
first page ends up on the right then a blank page
needs to be inserted and the first page needs to be
forced to start on the left so that the second page
ends up on its side.

Hope that is clear.

Thank you.
Prakash

--- Rymasz Jacky [EMAIL PROTECTED] wrote:

 Do you mean using this property of fo:page-sequence:
  force-page-count=end-on-even
 
 This will give you a blank page at the end of your
 page sequence if the last page is odd... Making you
 last page even and blank.
 
 Is that what you're looking for?
 
 Jack
 
 -Message d'origine-
 De : Prakash R [mailto:[EMAIL PROTECTED] 
 Envoyé : lundi 22 août 2005 15:34
 À : fop-users@xmlgraphics.apache.org
 Objet : Re: FO - Force Pages on same spread
 
 I meant putting the two pages on two different pages
 but making sure they are side by side like when you
 open the book you can see the pages side by
 side(i.e.
 on the same spread).
 
 Thank you.
 Prakash
 
 --- Jeremias Maerki [EMAIL PROTECTED]
 wrote:
 
  Are you talking about imposition (two-up)? Putting
 two pages besides 
  each other on one piece of paper? FOP can't do
 that, yet. You'd have 
  to use a third-party tool to do that.
  
  On 20.08.2005 06:44:20 Prakash R wrote:
   Hi,
   
   I'm preparing a FO document in order to generate
 a catalog book. I 
   would like to have two pages
  together
   such that they are on the same spread i.e. if
 the first page is an 
   even page(left) then the next
  would
   be the following odd pages(right) making it on
 the same spread. On 
   the other hand if the first page
  falls
   on an odd page(right), I would like to force a
  blank
   page and start it as an even page(left) so that
  the
   second page is an odd page(right) making it on
 the same spread.
   
   How can I achieve this? Any ideas would be
 greatly appreciated.
  
  
  
  Jeremias Maerki
  
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
   
 
 Start your day with Yahoo! - make it your home page
 http://www.yahoo.com/r/hs 
  
 

-
 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]
 
 





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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