Re: FOP Memory issues - please help

2007-01-05 Thread Andreas L Delmelle

On Jan 4, 2007, at 21:34, Cliff wrote:

Hi Cliff,

I'm facing FOP memory issues that I fought with a long time ago. I  
lost the
battle back then and had to resort to some ugly manual page  
breaking logic

and now I'm wondering the current status of the FOP project.
My immediate question is:
Do either FOP 0.20.5 or FOP Trunk address/improve on the memory issue
regarding auto page breaks?


I remember you... It was something like a second XSLT pass over the  
FO input, right?


Since that time, some memory leaks have been fixed, so it could  
already help you. OTOH, the issue concerning large page-sequences has  
not yet been addressed, unfortunately.


Problem still remains at this point: FOP needs to build an internal  
representation of the entire page-sequence before it can start any  
formatting. (= due to the current architecture: the whole layout-loop  
is triggered by AreaTreeHandler.endPageSequence()).
I've some ideas on how to improve the situation, but they're not  
trivial adjustments, so I can't say when or even if these ideas will  
make it into the codebase...



Cheers,

Andreas

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



how to put image in Background

2007-01-05 Thread Prashant Saraf
Hello all,

I need to put *background* image in PDF, can some one tell me how to do it. If 
u give any example thanks for that. Tell any doc or link  which is helpful.

 

 

 

 

Thanks and Regards

प्रशांत सराफ

(Prashant Saraf)

SE-I

Cross Country Infotech

Ext : 72543

 

BEGIN:VCARD
VERSION:2.1
N:Saraf;Prashant
FN:Prashant Saraf
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20061129T082513Z
END:VCARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Update from Trunk Errors with FOP

2007-01-05 Thread Chris Bowditch

Jeremias Maerki wrote:


On 04.01.2007 15:33:45 leeloo5e79-docbook wrote:


snip/


WARNING: Warning(Unknown location): fo:table, table-layout=auto is currently 
not supported by FOP
04.01.2007 11:11:34 org.apache.fop.fo.PropertyList convertAttributeToProperty
FATAL: Ignoring property: column-width=proportional-column-width(1) 
(proportional-column-width() function may only be used when fo:table has 
table-layout=fixed.; property:'column-width')
What does this mean? Using column-with in fo:table which is supported by FOP 
(http://xmlgraphics.apache.org/fop/compliance.html#fo-property-column-width) without 
table-layout=fixed produces an error. And using it with table-layout=fixed because 
this is not support produces also an error. Somebody is understanding this? And table-layout=auto 
are also not supported.



Not an error, a warning. table-layout=auto is indeed not implemented,
yet, but fixed is. We're just nitpickers concerning your not
specifying column-widths in this case. :-)


I agree with what Jeremias says in principal. However, there is a 
FATAL message above, which is puzzling me somewhat. Clearly it should 
be just a warning when trying to use proportional-column-width function 
and not an error let alone SEVERE or even FATAL.


Looking in the code reveals even more of a mystery. This message seems 
to originate from PropertyList class in the line:


log.error(Ignoring property: 

Next question is how does an error get promoted 2 level to FATAL? And 
should the exceptions being thrown by the Properties code be extended to 
 allow them to be differentiated between warnings and errors and then 
logged appropriately.


snip/

Chris




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



Re: how to put image in Background

2007-01-05 Thread Chris Bowditch

Prashant Saraf wrote:


Hello all,

I need to put *background* image in PDF, can some one tell me how to do 
it. If u give any example thanks for that. Tell any doc or link  which 
is helpful.


background-image is the relevant property. It can be added to any of the 
fo:region-* elements that are children of fo:simple-page-master.


It might be an idea to review some of the online resources listed on 
FOP's website to give you a grasp of the FO basics.


http://xmlgraphics.apache.org/fop/resources.html#documents-xslfo

Chris




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



Re: altova stylevision fop rtf

2007-01-05 Thread Chris Bowditch

rns30 wrote:


Hi,
 I am also trying to create rtf. with Altova wht type of xslt r u
generating? I am creating XSLT-FO file, when I pass this file to fop , I can
produce the rtf.
but, when I use tables for formatting in xslt , I am getting a error


THe RTF renderer is not as complete or mature as the PDF and PS 
Renderers in FOP. I know that nested tables don't work in RTF. Can you 
check to see if you are generating nested tables in your XSL-FO?


Thanks,

Chris





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



RE: how to put image in Background

2007-01-05 Thread Prashant Saraf
Hi

It gives me following error 


-
C:\fop-0.20.3fop.bat cert.fo cert.pdf
C:\fop-0.20.3java -cp
build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib
\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar
org.apache.fop.apps.Fop cert.fo cert.pdf
[INFO]: FOP 0.20.3
[INFO]: building formatting object tree
[ERROR]: Error in background-image property value 'url:2.jpg':
org.apache.fop.fo.expr.PropertyException: illegal character
[WARN]: property - background-repeat is not implemented yet.
[INFO]: [1]
[INFO]: Parsing of document complete, stopping renderer
-
This is my code

?xml version=1.0 encoding=UTF-8?
fo:root font-family=Times Roman font-size=12pt
text-align=center xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
fo:simple-page-master
master-name=default-page page-height=8in page-width=10in
fo:region-body
background-image=url:2.jpg background-repeat=no-repeat /
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference=default-page
initial-page-number=1 format=1 
fo:flow flow-name=xsl-region-body
fo:block-container 
sdgdfgdfg
/fo:block-container
   fo:block id=SV_RefID_PageTotal /
/fo:flow
/fo:page-sequence
/fo:root



-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 05, 2007 5:35 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: how to put image in Background

Prashant Saraf wrote:

 Hello all,
 
 I need to put *background* image in PDF, can some one tell me how to
do 
 it. If u give any example thanks for that. Tell any doc or link  which

 is helpful.

background-image is the relevant property. It can be added to any of the

fo:region-* elements that are children of fo:simple-page-master.

It might be an idea to review some of the online resources listed on 
FOP's website to give you a grasp of the FO basics.

http://xmlgraphics.apache.org/fop/resources.html#documents-xslfo

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: Update from Trunk Errors with FOP

2007-01-05 Thread Chris Bowditch

Chris Bowditch wrote:


Jeremias Maerki wrote:



snip/

Next question is how does an error get promoted 2 level to FATAL? And 
should the exceptions being thrown by the Properties code be extended to 
 allow them to be differentiated between warnings and errors and then 
logged appropriately.


I have raised this as bug 
http://issues.apache.org/bugzilla/show_bug.cgi?id=41300 so it is not lost.


Chris




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



Re[2]: how to put image in Background

2007-01-05 Thread Igor Istomin




Hello Prashant,

Background image is specified in following form:

background-image="url(URL)"

f.x.

background-image="url(2.jpg)"
background-image="url(file:/C:/images/2.jpg)"

___
Best regards,
Igor Istomin - Developer.
e-mail: mailto:[EMAIL PROTECTED]





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



Re: Re: how to put image in Background

2007-01-05 Thread Igor Istomin




Hello Prashant,

Background image is specified in following form:

background-image="url(URL)"

f.x.

background-image="url(2.jpg)"
background-image="url(file:/C:/images/2.jpg)"

___
Best regards,
Igor Istomin - Developer.
e-mail: mailto:[EMAIL PROTECTED]





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



RE: Re: how to put image in Background

2007-01-05 Thread Prashant Saraf
Hi Igor

It gives following error

C:\fop-0.20.3java -cp
build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib
\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar
org.apache.fop.apps.Fop cert.fo cert.pdf

[INFO]: FOP 0.20.3

[INFO]: building formatting object tree

[ERROR]: Error in background-image property value
'url(file:/C:/images/2.jpg)': org.apache.fop.fo.expr.PropertyException:
no such function: url

[WARN]: property - background-repeat is not implemented yet.

[INFO]: [1]

[INFO]: Parsing of document complete, stopping renderer

 

C:\fop-0.20.3

 



From: Igor Istomin [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 05, 2007 5:55 PM
To: Prashant Saraf
Subject: Re: Re: how to put image in Background

 

Hello Prashant,

 

Background image is specified in following form:

 

background-image=url(URL)

 

f.x.

 

background-image=url(2.jpg)

background-image=url(file:/C:/images/2.jpg)

 

___

Best regards,

Igor Istomin - Developer.

e-mail: mailto:[EMAIL PROTECTED]

 

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


Re: how to put image in Background

2007-01-05 Thread Chris Bowditch

Prashant Saraf wrote:


Hi Igor

It gives following error

C:\fop-0.20.3java -cp 
build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar 
org.apache.fop.apps.Fop cert.fo cert.pdf


[INFO]: FOP 0.20.3


:o This version is at least 5 years old! If you can't upgrade to a 
recent release such as 0.92beta, please at least try using 0.20.5, which 
is just 0.20.3 with a few bugs fixed.




[INFO]: building formatting object tree

[ERROR]: Error in background-image property value 
'url(file:/C:/images/2.jpg)': org.apache.fop.fo.expr.PropertyException: 
no such function: url


Have you tried background-image=C:\images\2.jpg?

snip/

Chris







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



Re: FOP Memory issues - please help

2007-01-05 Thread Cliff

Hi Andreas,

I remember you too. You helped me way back and I thank you. Yes, I'm in the
throws of introducing more manual page breaks. I was just hoping, praying
really, that something may have changed that would get me outta this hell
I'm in. Doesn't look that way though. My current XSL was causing random
overflow warnings on the console so I made some adjustments to get rid of
them but the memory heap stayed the same when I re-ran it with jconsole
monitoring. It's a 330+ page report and it causes the memory to shoot right
up into the 500MB range which is completely unacceptable for a single report
run by a single user. Maybe I can come up with something else clever in the
interim. Thank you for all of your help.

Cliff
Hollaback...
http://codeforfun.wordpress.com


Andreas L Delmelle wrote:
 
 On Jan 4, 2007, at 21:34, Cliff wrote:
 
 Hi Cliff,
 
 I'm facing FOP memory issues that I fought with a long time ago. I  
 lost the
 battle back then and had to resort to some ugly manual page  
 breaking logic
 and now I'm wondering the current status of the FOP project.
 My immediate question is:
 Do either FOP 0.20.5 or FOP Trunk address/improve on the memory issue
 regarding auto page breaks?
 
 I remember you... It was something like a second XSLT pass over the  
 FO input, right?
 
 Since that time, some memory leaks have been fixed, so it could  
 already help you. OTOH, the issue concerning large page-sequences has  
 not yet been addressed, unfortunately.
 
 Problem still remains at this point: FOP needs to build an internal  
 representation of the entire page-sequence before it can start any  
 formatting. (= due to the current architecture: the whole layout-loop  
 is triggered by AreaTreeHandler.endPageSequence()).
 I've some ideas on how to improve the situation, but they're not  
 trivial adjustments, so I can't say when or even if these ideas will  
 make it into the codebase...
 
 
 Cheers,
 
 Andreas
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/FOP-Memory-issues---please-help-tf2921893.html#a8179152
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: altova stylevision fop rtf

2007-01-05 Thread rns30

no.. I don't have nested tables. The code generated by altova
stylesheet for table is

xsl:variable name=tablewidth0 select=$maxwidth * 0.85000/
xsl:variable name=sumcolumnwidths0 select=2.5 + 0.04167 + 0.30208 +
0.04167 + 8.79167 + 0.04167/
xsl:variable name=factor0
xsl:choose
xsl:when test=$sumcolumnwidths0 gt; 0.0 and $sumcolumnwidths0 gt;
$tablewidth0
xsl:value-of select=$tablewidth0 div $sumcolumnwidths0/
/xsl:when
xsl:otherwise
xsl:value-of select=1.000/
/xsl:otherwise
/xsl:choose
/xsl:variable
xsl:variable name=columnwidth0_0 select=2.5 * $factor0/
xsl:variable name=columnwidth0_1 select=0.30208 * $factor0/
xsl:variable name=columnwidth0_2 select=8.79167 * $factor0/
fo:table width={$maxwidth}in
fo:table-column column-width={($maxwidth - $tablewidth0) div 2.000}in/
fo:table-column column-width={$tablewidth0}in/
fo:table-column column-width={($maxwidth - $tablewidth0) div 2.000}in/
fo:table-body
fo:table-row
fo:table-cell
fo:block/
/fo:table-cell
fo:table-cell
fo:block
fo:table width={$tablewidth0}in border-collapse=separate
border-separation=0.04167in text-align=center color=black
display-align=center
fo:table-column column-width={$columnwidth0_0}in/
fo:table-column column-width={$columnwidth0_1}in/
fo:table-column column-width={$columnwidth0_2}in/
fo:table-body
fo:table-row
fo:table-cell padding-top=0.02083in padding-bottom=0.02083in
padding-left=0.02083in padding-right=0.02083in
fo:block padding-top=1pt padding-bottom=1pt
fo:inline font-size=6pt font-weight=bold text-align=justify
xsl:textTracking ID#160;#160;#160;#160;#160; /xsl:text
/fo:inline
/fo:block
/fo:table-cell
fo:table-cell padding-top=0.02083in padding-bottom=0.02083in
padding-left=0.02083in padding-ght=0.02083in
fo:block padding-top=1pt padding-bottom=1pt
fo:inline font-size=6pt font-weight=bold text-align=justify
xsl:text: /xsl:text
/fo:inline

fo:inline font-size=6pt text-align=justify

xsl:text#160;/xsl:text

/fo:inline
/fo:block
/fo:table-cell

fo:table-cell padding-top=0.02083in padding-bottom=0.02083in
padding-left=0.02083in padding-right=0.02083in
fo:block padding-top=1pt padding-bottom=1pt
xsl:for-each select=FOA
xsl:for-each select=Tracking_Id
fo:inline font-size=6pt font-weight=normal
xsl:apply-templates
xsl:with-param name=maxwidth select=$columnwidth0_2 - 0.02083 -
0.02083/
/xsl:apply-templates
/fo:inline
/xsl:for-each
/xsl:for-each
/fo:block
/fo:table-cell
/fo:table-row

cbowditch wrote:
 
 
 Can u please check this code and let me know wht's the problem. I
 appreciate ur help . I am new to this work.
 Some thing is wrong is table tag which fop is not recognising ,  i am not
 able to figure it out.
 thanks
 rns
 rns30 wrote:
 
 Hi,
  I am also trying to create rtf. with Altova wht type of xslt r u
 generating? I am creating XSLT-FO file, when I pass this file to fop , I
 can
 produce the rtf.
 but, when I use tables for formatting in xslt , I am getting a error
 
 THe RTF renderer is not as complete or mature as the PDF and PS 
 Renderers in FOP. I know that nested tables don't work in RTF. Can you 
 check to see if you are generating nested tables in your XSL-FO?
 
 Thanks,
 
 Chris
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/altova-stylevision-fop-rtf-tf1930320.html#a8179668
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: FOP Memory issues - please help

2007-01-05 Thread Jeremias Maerki
Any chance you can make this report available to us for testing (FO plus 
resources)?

Adding page breaks will not be enough, BTW. But you already noticed that.
FOP can currently only release memory at the end of a page-sequence. So
instead of creating page-breaks, try to restart a new page-sequence. The
memory usage should drop considerably.

There's also a little class (CachedRenderPagesModel) which could
theoretically be used instead of the default RenderPagesModel. It allows
to temporarily off-load rendered pages to disk if they can't be rendered
right away. But this is not actively tested and does not help with the
memory consumption of the FO tree which probably is representing the
largest part in your case.

On 05.01.2007 15:48:08 Cliff wrote:
 
 Hi Andreas,
 
 I remember you too. You helped me way back and I thank you. Yes, I'm in the
 throws of introducing more manual page breaks. I was just hoping, praying
 really, that something may have changed that would get me outta this hell
 I'm in. Doesn't look that way though. My current XSL was causing random
 overflow warnings on the console so I made some adjustments to get rid of
 them but the memory heap stayed the same when I re-ran it with jconsole
 monitoring. It's a 330+ page report and it causes the memory to shoot right
 up into the 500MB range which is completely unacceptable for a single report
 run by a single user. Maybe I can come up with something else clever in the
 interim. Thank you for all of your help.
 
 Cliff
 Hollaback...
 http://codeforfun.wordpress.com
 
 
 Andreas L Delmelle wrote:
  
  On Jan 4, 2007, at 21:34, Cliff wrote:
  
  Hi Cliff,
  
  I'm facing FOP memory issues that I fought with a long time ago. I  
  lost the
  battle back then and had to resort to some ugly manual page  
  breaking logic
  and now I'm wondering the current status of the FOP project.
  My immediate question is:
  Do either FOP 0.20.5 or FOP Trunk address/improve on the memory issue
  regarding auto page breaks?
  
  I remember you... It was something like a second XSLT pass over the  
  FO input, right?
  
  Since that time, some memory leaks have been fixed, so it could  
  already help you. OTOH, the issue concerning large page-sequences has  
  not yet been addressed, unfortunately.
  
  Problem still remains at this point: FOP needs to build an internal  
  representation of the entire page-sequence before it can start any  
  formatting. (= due to the current architecture: the whole layout-loop  
  is triggered by AreaTreeHandler.endPageSequence()).
  I've some ideas on how to improve the situation, but they're not  
  trivial adjustments, so I can't say when or even if these ideas will  
  make it into the codebase...
  
  
  Cheers,
  
  Andreas
  



Jeremias Maerki


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



Re: altova stylevision fop rtf

2007-01-05 Thread Jeremias Maerki
Yes, you do. If you pretty-print this XML content you'll see that a
second table is started within a table-cell. But with only seeing part
of a stylesheet there's no big chance we can help. It's better to
attach a full FO file generated from the stylesheet. That, we can easily
run ourselves and test.

On 05.01.2007 16:14:49 rns30 wrote:
 
 no.. I don't have nested tables. The code generated by altova
 stylesheet for table is
 
 xsl:variable name=tablewidth0 select=$maxwidth * 0.85000/
 xsl:variable name=sumcolumnwidths0 select=2.5 + 0.04167 + 0.30208 +
 0.04167 + 8.79167 + 0.04167/
 xsl:variable name=factor0
 xsl:choose
 xsl:when test=$sumcolumnwidths0 gt; 0.0 and $sumcolumnwidths0 gt;
 $tablewidth0
 xsl:value-of select=$tablewidth0 div $sumcolumnwidths0/
 /xsl:when
 xsl:otherwise
 xsl:value-of select=1.000/
 /xsl:otherwise
 /xsl:choose
 /xsl:variable
 xsl:variable name=columnwidth0_0 select=2.5 * $factor0/
 xsl:variable name=columnwidth0_1 select=0.30208 * $factor0/
 xsl:variable name=columnwidth0_2 select=8.79167 * $factor0/
 fo:table width={$maxwidth}in
 fo:table-column column-width={($maxwidth - $tablewidth0) div 2.000}in/
 fo:table-column column-width={$tablewidth0}in/
 fo:table-column column-width={($maxwidth - $tablewidth0) div 2.000}in/
 fo:table-body
 fo:table-row
 fo:table-cell
 fo:block/
 /fo:table-cell
 fo:table-cell
 fo:block
 fo:table width={$tablewidth0}in border-collapse=separate
 border-separation=0.04167in text-align=center color=black
 display-align=center
 fo:table-column column-width={$columnwidth0_0}in/
 fo:table-column column-width={$columnwidth0_1}in/
 fo:table-column column-width={$columnwidth0_2}in/
 fo:table-body
 fo:table-row
 fo:table-cell padding-top=0.02083in padding-bottom=0.02083in
 padding-left=0.02083in padding-right=0.02083in
 fo:block padding-top=1pt padding-bottom=1pt
 fo:inline font-size=6pt font-weight=bold text-align=justify
 xsl:textTracking ID#160;#160;#160;#160;#160; /xsl:text
 /fo:inline
 /fo:block
 /fo:table-cell
 fo:table-cell padding-top=0.02083in padding-bottom=0.02083in
 padding-left=0.02083in padding-ght=0.02083in
 fo:block padding-top=1pt padding-bottom=1pt
 fo:inline font-size=6pt font-weight=bold text-align=justify
 xsl:text: /xsl:text
 /fo:inline
   
 fo:inline font-size=6pt text-align=justify
 
 xsl:text#160;/xsl:text
   
 /fo:inline
 /fo:block
 /fo:table-cell
   
 fo:table-cell padding-top=0.02083in padding-bottom=0.02083in
 padding-left=0.02083in padding-right=0.02083in
 fo:block padding-top=1pt padding-bottom=1pt
 xsl:for-each select=FOA
 xsl:for-each select=Tracking_Id
 fo:inline font-size=6pt font-weight=normal
 xsl:apply-templates
 xsl:with-param name=maxwidth select=$columnwidth0_2 - 0.02083 -
 0.02083/
 /xsl:apply-templates
 /fo:inline
 /xsl:for-each
 /xsl:for-each
 /fo:block
 /fo:table-cell
 /fo:table-row
 
 cbowditch wrote:
  
  
  Can u please check this code and let me know wht's the problem. I
  appreciate ur help . I am new to this work.
  Some thing is wrong is table tag which fop is not recognising ,  i am not
  able to figure it out.
  thanks
  rns
  rns30 wrote:
  
  Hi,
   I am also trying to create rtf. with Altova wht type of xslt r u
  generating? I am creating XSLT-FO file, when I pass this file to fop , I
  can
  produce the rtf.
  but, when I use tables for formatting in xslt , I am getting a error
  
  THe RTF renderer is not as complete or mature as the PDF and PS 
  Renderers in FOP. I know that nested tables don't work in RTF. Can you 
  check to see if you are generating nested tables in your XSL-FO?
  
  Thanks,
  
  Chris
  
  
  



Jeremias Maerki


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



Re: Problem change layout page size

2007-01-05 Thread fabio76

Hi
Thanks for your reply.
I have correct only  
xsl:variable name=current-figure-node  select=./ 
with 
xsl:variable name=current-figure-node 
select=preceding-sibling::figure[1]/ 
Is correct?
Regards
Fabio


J.Pietschmann wrote:
 
 fabio76 wrote:
 I have the following file xml :
 
 document
  pThis is a test/p
  table
  tr
  tdFirst TD/td
  tdSecond TD/td
  /tr
  /table
  figure
  titleFigure Title/title
  /figure
  pContinue paragraf etc.etc./p
 /document
 
 Is possible to change the layout of the page when is applied the template
 xsl:template match=figure ?
 I would like to have the page in A3 only for the template 'figure', for
 the
 other template in A4 format
 
 You can start a new page sequence with an A3 page master. The
 unfortunate embedding of the 'figure' element will, however, lead
 to some not quite trivial XSLT code in order to generate the
 page sequences for the not-figure content. Note that this also
 means that 'figure' content gets its own page(s). XSL FO does
 not have the possibility to do page master change for pages
 containing some specific content embedded as usual in the flow.
 
 Try something along the following if you use an XSLT 1.0 processor
 (the solution in case of a 2.0 processor might be much simpler):
 xsl:template match=document
fo:root
  fo:layout-master-set
 fo:simple-page-master master-name=A4 ...
 ...
 /fo:simple-page-master
 fo:simple-page-master master-name=A3-landscape ...
 ...
 /fo:simple-page-master
  fo:layout-master-set
  fo:root
!-- content before the first figure element, or perhaps
  the only content --
fo:page-sequence master-reference=A4
  ... define static content ...
  fo:flow
xsl:apply-templates select=node()[
  not(preceding-sibling::figure)]/
  /fo:flow
/fo:page-sequence
!-- now on for the figure elemets and groups of non-figure
 content after  each figure element --
xsl:for-each select=figure
  !-- the figure element itself --
  fo:page-sequence master-reference=A3-landscape
... define static content ...
fo:flow
  xsl:apply-templates select=./
/fo:flow
  /fo:page-sequence
  xsl:variable name=current-figure-node
select=./
  !-- the content after the figure element --
  fo:page-sequence master-reference=A4
... define static content ...
fo:flow
  xsl:apply-templates select=node()[
generate-id(preceding-sibling::figure[1])=
generate-id($current-figure-node)]/
/fo:flow
  /fo:page-sequence
/xsl:for-each
 /fo:root
 /xsl:template
 
 The code above is untested, non-optimal and may contain syntax errors.
 For more help, consult the XSLT FAQ and/or the XSL mailing list:
http://www.mulberrytech.com/xsl/xsl-list/
 
 J.Pietschmann
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Problem-change-layout-page-size-tf2912574.html#a8179849
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: altova stylevision fop rtf

2007-01-05 Thread rns30

I attached my xslt file . I need help with this its urgent.
thank u very much.

Jeremias Maerki-2 wrote:
 
 Yes, you do. If you pretty-print this XML content you'll see that a
 second table is started within a table-cell. But with only seeing part
 of a stylesheet there's no big chance we can help. It's better to
 attach a full FO file generated from the stylesheet. That, we can easily
 run ourselves and test.
 
 On 05.01.2007 16:14:49 rns30 wrote:
 
 no.. I don't have nested tables. The code generated by altova
 stylesheet for table is
 
 xsl:variable name=tablewidth0 select=$maxwidth * 0.85000/
 xsl:variable name=sumcolumnwidths0 select=2.5 + 0.04167 + 0.30208
 +
 0.04167 + 8.79167 + 0.04167/
 xsl:variable name=factor0
 xsl:choose
 xsl:when test=$sumcolumnwidths0 gt; 0.0 and $sumcolumnwidths0 gt;
 $tablewidth0
 xsl:value-of select=$tablewidth0 div $sumcolumnwidths0/
 /xsl:when
 xsl:otherwise
 xsl:value-of select=1.000/
 /xsl:otherwise
 /xsl:choose
 /xsl:variable
 xsl:variable name=columnwidth0_0 select=2.5 * $factor0/
 xsl:variable name=columnwidth0_1 select=0.30208 * $factor0/
 xsl:variable name=columnwidth0_2 select=8.79167 * $factor0/
 fo:table width={$maxwidth}in
 fo:table-column column-width={($maxwidth - $tablewidth0) div
 2.000}in/
 fo:table-column column-width={$tablewidth0}in/
 fo:table-column column-width={($maxwidth - $tablewidth0) div
 2.000}in/
 fo:table-body
 fo:table-row
 fo:table-cell
 fo:block/
 /fo:table-cell
 fo:table-cell
 fo:block
 fo:table width={$tablewidth0}in border-collapse=separate
 border-separation=0.04167in text-align=center color=black
 display-align=center
 fo:table-column column-width={$columnwidth0_0}in/
 fo:table-column column-width={$columnwidth0_1}in/
 fo:table-column column-width={$columnwidth0_2}in/
 fo:table-body
 fo:table-row
 fo:table-cell padding-top=0.02083in padding-bottom=0.02083in
 padding-left=0.02083in padding-right=0.02083in
 fo:block padding-top=1pt padding-bottom=1pt
 fo:inline font-size=6pt font-weight=bold text-align=justify
 xsl:textTracking ID#160;#160;#160;#160;#160; /xsl:text
 /fo:inline
 /fo:block
 /fo:table-cell
 fo:table-cell padding-top=0.02083in padding-bottom=0.02083in
 padding-left=0.02083in padding-ght=0.02083in
 fo:block padding-top=1pt padding-bottom=1pt
 fo:inline font-size=6pt font-weight=bold text-align=justify
 xsl:text: /xsl:text
 /fo:inline
  
 fo:inline font-size=6pt text-align=justify
 
 xsl:text#160;/xsl:text
  
 /fo:inline
 /fo:block
 /fo:table-cell
  
 fo:table-cell padding-top=0.02083in
 padding-bottom=0.02083in
 padding-left=0.02083in padding-right=0.02083in
 fo:block padding-top=1pt padding-bottom=1pt
 xsl:for-each select=FOA
 xsl:for-each select=Tracking_Id
 fo:inline font-size=6pt font-weight=normal
 xsl:apply-templates
 xsl:with-param name=maxwidth select=$columnwidth0_2 - 0.02083 -
 0.02083/
 /xsl:apply-templates
 /fo:inline
 /xsl:for-each
 /xsl:for-each
 /fo:block
 /fo:table-cell
 /fo:table-row
 
 cbowditch wrote:
  
  
  Can u please check this code and let me know wht's the problem. I
  appreciate ur help . I am new to this work.
  Some thing is wrong is table tag which fop is not recognising ,  i am
 not
  able to figure it out.
  thanks
  rns
  rns30 wrote:
  
  Hi,
   I am also trying to create rtf. with Altova wht type of xslt r u
  generating? I am creating XSLT-FO file, when I pass this file to fop ,
 I
  can
  produce the rtf.
  but, when I use tables for formatting in xslt , I am getting a error
  
  THe RTF renderer is not as complete or mature as the PDF and PS 
  Renderers in FOP. I know that nested tables don't work in RTF. Can you 
  check to see if you are generating nested tables in your XSL-FO?
  
  Thanks,
  
  Chris
  
  
  
 
 
 
 Jeremias Maerki
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
http://www.nabble.com/file/5310/reference.xslt reference.xslt 
-- 
View this message in context: 
http://www.nabble.com/altova-stylevision-fop-rtf-tf1930320.html#a8179921
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: altova stylevision fop rtf

2007-01-05 Thread Jeremias Maerki
Well, I wanted the FO not the stylesheet. So all I can say is that there
are nested tables. If you get rid of them you have a good chance of
making it work. The outer table only seems to be used to do indenting
which can be achieved in a regular fashion with the latest FOP, rather
than with this hack which was necessary in 0.20.5.

On 05.01.2007 16:31:29 rns30 wrote:
 
 I attached my xslt file . I need help with this its urgent.
 thank u very much.
 
 Jeremias Maerki-2 wrote:
  
  Yes, you do. If you pretty-print this XML content you'll see that a
  second table is started within a table-cell. But with only seeing part
  of a stylesheet there's no big chance we can help. It's better to
  attach a full FO file generated from the stylesheet. That, we can easily
  run ourselves and test.
  
  On 05.01.2007 16:14:49 rns30 wrote:
  
  no.. I don't have nested tables. The code generated by altova
  stylesheet for table is
  
snip/
  
  cbowditch wrote:
   
   
   Can u please check this code and let me know wht's the problem. I
   appreciate ur help . I am new to this work.
   Some thing is wrong is table tag which fop is not recognising ,  i am
  not
   able to figure it out.
   thanks
   rns
   rns30 wrote:
   
   Hi,
I am also trying to create rtf. with Altova wht type of xslt r u
   generating? I am creating XSLT-FO file, when I pass this file to fop ,
  I
   can
   produce the rtf.
   but, when I use tables for formatting in xslt , I am getting a error
   
   THe RTF renderer is not as complete or mature as the PDF and PS 
   Renderers in FOP. I know that nested tables don't work in RTF. Can you 
   check to see if you are generating nested tables in your XSL-FO?
   
   Thanks,
   
   Chris
   
   
   
  

Jeremias Maerki


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



Re: altova stylevision fop rtf

2007-01-05 Thread rns30

Thank u for ur help. I fixed the problem . u were right it was bcoz of nested
tables. I appreciate ur time and help.
thanks
rns


Jeremias Maerki-2 wrote:
 
 Well, I wanted the FO not the stylesheet. So all I can say is that there
 are nested tables. If you get rid of them you have a good chance of
 making it work. The outer table only seems to be used to do indenting
 which can be achieved in a regular fashion with the latest FOP, rather
 than with this hack which was necessary in 0.20.5.
 
 On 05.01.2007 16:31:29 rns30 wrote:
 
 I attached my xslt file . I need help with this its urgent.
 thank u very much.
 
 Jeremias Maerki-2 wrote:
  
  Yes, you do. If you pretty-print this XML content you'll see that a
  second table is started within a table-cell. But with only seeing part
  of a stylesheet there's no big chance we can help. It's better to
  attach a full FO file generated from the stylesheet. That, we can
 easily
  run ourselves and test.
  
  On 05.01.2007 16:14:49 rns30 wrote:
  
  no.. I don't have nested tables. The code generated by altova
  stylesheet for table is
  
 snip/
  
  cbowditch wrote:
   
   
   Can u please check this code and let me know wht's the problem. I
   appreciate ur help . I am new to this work.
   Some thing is wrong is table tag which fop is not recognising ,  i
 am
  not
   able to figure it out.
   thanks
   rns
   rns30 wrote:
   
   Hi,
I am also trying to create rtf. with Altova wht type of xslt r u
   generating? I am creating XSLT-FO file, when I pass this file to
 fop ,
  I
   can
   produce the rtf.
   but, when I use tables for formatting in xslt , I am getting a
 error
   
   THe RTF renderer is not as complete or mature as the PDF and PS 
   Renderers in FOP. I know that nested tables don't work in RTF. Can
 you 
   check to see if you are generating nested tables in your XSL-FO?
   
   Thanks,
   
   Chris
   
   
   
  
 
 Jeremias Maerki
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/altova-stylevision-fop-rtf-tf1930320.html#a8180575
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Adding ttf font to a PDF using FOP 0.92 beta

2007-01-05 Thread Richard King
Hi all,
I wish to add a font via java rather than a configuration file.
I have tried the below code.  How do I include the metrics info?
Does anyone know how to add a font without using the setUserConfig(File) 
method?

FopFactory fopFactory = FopFactory.newInstance();
FOUserAgent userAgent = fopFactory.newFOUserAgent();

PDFRenderer pdfrenderer = new PDFRenderer();
pdfrenderer.setUserAgent(userAgent);
FontInfo fontinfo = new FontInfo();
fontinfo.addFontProperties(Wingdings,Wingdings,normal, 
Font.NORMAL);
pdfrenderer.setupFontInfo(fontinfo);
userAgent.setRendererOverride(pdfrenderer);

out = new java.io.FileOutputStream(fopOutputDir + fileRoot + 
.pdf);
out = new java.io.BufferedOutputStream(out);
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, userAgent, out);

Source xsltSrc = new StreamSource(fopDirectory + xslName);
TransformerFactory transformerFactory = 
TransformerFactory.newInstance();
Transformer transformer = 
transformerFactory.newTransformer(xsltSrc);

Cheers,
Richard

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



Em Space - UTF8

2007-01-05 Thread Oliver Müller

Hi,

does anyone's got an idea why the Em Space #8195; is
not displayed in a pdf generated with FOP ?

http://unicode.e-workers.de/unicode3.php

--
Olli

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



Re: Em Space - UTF8

2007-01-05 Thread Manuel Mall
On Saturday 06 January 2007 03:29, Oliver Müller wrote:
 Hi,

 does anyone's got an idea why the Em Space #8195; is
 not displayed in a pdf generated with FOP ?

 http://unicode.e-workers.de/unicode3.php
Oliver,

you didn't state the version of fop you have the problem with nor the 
font you are using. I just tested this with the latest fop version and 
all the spaces (#x2000; to #x200b;) display fine using the PDF 
default fonts.

Manuel

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