Re: Large table cell crashes fop92

2006-05-18 Thread Jeremias Maerki
Please send an FO-file (no XSLT!) that demonstrates the problem. My own
tests show no problems with table-cells longer than the available page
height.

On 17.05.2006 20:51:11 Arturo Perez wrote:
 Hi all,
 
 I have a very large table-cell that crashes fop-0.92beta.  The cell in 
 question
 seems to be 11.75 inches tall while the page is only allowed to be 8in in the
 page-sequence.  I found this out by playing with the page-sequence/region
 definitions.  Any suggestions on how to work around it?
 
 Here's the beginning of the stack trace.
 
 java.lang.NullPointerException
 at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:167)
 at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:114)
 at org.apache.fop.cli.Main.startFOP(Main.java:159)
 at org.apache.fop.cli.Main.main(Main.java:190)
 
 -
 
 java.lang.NullPointerException
 at 
 org.apache.fop.layoutmgr.AbstractLayoutManager.isFirst(AbstractLayout
 Manager.java:349)
 at 
 org.apache.fop.layoutmgr.AreaAdditionUtil.addAreas(AreaAdditionUtil.j
 ava:90)
 at 
 org.apache.fop.layoutmgr.table.TableCellLayoutManager.addAreas(TableC
 ellLayoutManager.java:418)
 at 
 org.apache.fop.layoutmgr.table.TableContentLayoutManager$RowPainter.a
 ddAreasForCell(TableContentLayoutManager.java:973)
 at 
 org.apache.fop.layoutmgr.table.TableContentLayoutManager$RowPainter.a
 ddAreasAndFlushRow(TableContentLayoutManager.java:925)
 at 
 org.apache.fop.layoutmgr.table.TableContentLayoutManager$RowPainter.h
 andleTableContentPosition(TableContentLayoutManager.java:782)
 at 
 org.apache.fop.layoutmgr.table.TableContentLayoutManager.iterateAndPa
 intPositions(TableContentLayoutManager.java:740)


Jeremias Maerki


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



Superscript and Subscript with custom fonts

2006-05-18 Thread Jordan Soet
I'm having a problem with superscripts and subscripts in fop 0.92beta when
using custom fonts. The superscripts and subscripts work fine with the
default fonts, but then not with the custom fonts that I'm using. I added
them in using the specified method, from the ttf files and they seem to work
fine otherwise. In the meantime I just worked around it by manually shifting
the baseline 5pt up or down. I've attached a sample file as well as my font
metric file.

Thanks,
Jordan


temp.fo
Description: Binary data
?xml version=1.0 encoding=UTF-8?font-metrics type=TRUETYPEfont-nameVerdana/font-nameembed/cap-height727/cap-heightx-height0/x-heightascender1005/ascenderdescender-209/descenderbboxleft-49/leftbottom-206/bottomright1446/righttop1000/top/bboxflags33/flagsstemv0/stemvitalicangle0/italicanglesubtypeTRUETYPE/subtypesinglebyte-extrasencodingWinAnsiEncoding/encodingfirst-char0/first-charlast-char255/last-charwidthschar idx=0 wdt=1000/char idx=1 wdt=1000/char idx=2 wdt=1000/char idx=3 wdt=1000/char idx=4 wdt=1000/char idx=5 wdt=1000/char idx=6 wdt=1000/char idx=7 wdt=1000/char idx=8 wdt=1000/char idx=9 wdt=1000/char idx=10 wdt=1000/char idx=11 wdt=1000/char idx=12 wdt=1000/char idx=13 wdt=1000/char idx=14 wdt=1000/char idx=15 wdt=1000/char idx=16 wdt=1000/char idx=17 wdt=1000/char idx=18 wdt=1000/char idx=19 wdt=1000/char idx=20 wdt=1000/char idx=21 wdt=1000/char idx=22 wdt=1000/char idx=23 wdt=1000/char idx=24 wdt=1000/char idx=25 wdt=1000/char idx=26 wdt=1000/char idx=27 wdt=1000/char idx=28 wdt=1000/char idx=29 wdt=1000/char idx=30 wdt=1000/char idx=31 wdt=1000/char idx=32 wdt=351/char idx=33 wdt=393/char idx=34 wdt=458/char idx=35 wdt=818/char idx=36 wdt=635/char idx=37 wdt=1076/char idx=38 wdt=726/char idx=39 wdt=268/char idx=40 wdt=454/char idx=41 wdt=454/char idx=42 wdt=635/char idx=43 wdt=818/char idx=44 wdt=363/char idx=45 wdt=454/char idx=46 wdt=363/char idx=47 wdt=454/char idx=48 wdt=635/char idx=49 wdt=635/char idx=50 wdt=635/char idx=51 wdt=635/char idx=52 wdt=635/char idx=53 wdt=635/char idx=54 wdt=635/char idx=55 wdt=635/char idx=56 wdt=635/char idx=57 wdt=635/char idx=58 wdt=454/char idx=59 wdt=454/char idx=60 wdt=818/char idx=61 wdt=818/char idx=62 wdt=818/char idx=63 wdt=545/char idx=64 wdt=1000/char idx=65 wdt=683/char idx=66 wdt=685/char idx=67 wdt=698/char idx=68 wdt=770/char idx=69 wdt=632/char idx=70 wdt=574/char idx=71 wdt=775/char idx=72 wdt=751/char idx=73 wdt=420/char idx=74 wdt=454/char idx=75 wdt=692/char idx=76 wdt=556/char idx=77 wdt=842/char idx=78 wdt=748/char idx=79 wdt=787/char idx=80 wdt=603/char idx=81 wdt=787/char idx=82 wdt=695/char idx=83 wdt=683/char idx=84 wdt=616/char idx=85 wdt=731/char idx=86 wdt=683/char idx=87 wdt=988/char idx=88 wdt=685/char idx=89 wdt=615/char idx=90 wdt=685/char idx=91 wdt=454/char idx=92 wdt=454/char idx=93 wdt=454/char idx=94 wdt=818/char idx=95 wdt=635/char idx=96 wdt=268/char idx=97 wdt=600/char idx=98 wdt=623/char idx=99 wdt=520/char idx=100 wdt=623/char idx=101 wdt=595/char idx=102 wdt=351/char idx=103 wdt=623/char idx=104 wdt=632/char idx=105 wdt=274/char idx=106 wdt=344/char idx=107 wdt=591/char idx=108 wdt=274/char idx=109 wdt=972/char idx=110 wdt=632/char idx=111 wdt=606/char idx=112 wdt=623/char idx=113 wdt=623/char idx=114 wdt=426/char idx=115 wdt=520/char idx=116 wdt=394/char idx=117 wdt=632/char idx=118 wdt=591/char idx=119 wdt=818/char idx=120 wdt=591/char idx=121 wdt=591/char idx=122 wdt=525/char idx=123 wdt=634/char idx=124 wdt=454/char idx=125 wdt=634/char idx=126 wdt=818/char idx=127 wdt=545/char idx=128 wdt=635/char idx=129 wdt=545/char idx=130 wdt=268/char idx=131 wdt=635/char idx=132 wdt=458/char idx=133 wdt=818/char idx=134 wdt=635/char idx=135 wdt=635/char idx=136 wdt=635/char idx=137 wdt=1521/char idx=138 wdt=683/char idx=139 wdt=454/char idx=140 wdt=1069/char idx=141 wdt=545/char idx=142 wdt=685/char idx=143 wdt=545/char idx=144 wdt=545/char idx=145 wdt=268/char idx=146 wdt=268/char idx=147 wdt=458/char idx=148 wdt=458/char idx=149 wdt=545/char idx=150 wdt=635/char idx=151 wdt=1000/char idx=152 wdt=818/char idx=153 wdt=976/char idx=154 wdt=520/char idx=155 wdt=454/char idx=156 wdt=981/char idx=157 wdt=545/char idx=158 wdt=525/char idx=159 wdt=615/char idx=160 wdt=351/char idx=161 wdt=393/char idx=162 wdt=635/char idx=163 wdt=635/char idx=164 wdt=635/char idx=165 wdt=635/char idx=166 wdt=454/char idx=167 wdt=635/char idx=168 wdt=635/char idx=169 wdt=1000/char idx=170 wdt=545/char idx=171 wdt=644/char idx=172 wdt=818/char idx=173 wdt=454/char idx=174 wdt=1000/char idx=175 wdt=635/char idx=176 wdt=541/char idx=177 wdt=818/char idx=178 wdt=541/char idx=179 wdt=541/char idx=180 wdt=635/char idx=181 wdt=641/char idx=182 wdt=635/char idx=183 wdt=363/char idx=184 wdt=635/char idx=185 wdt=541/char idx=186 wdt=545/char idx=187 wdt=644/char idx=188 wdt=1000/char idx=189 wdt=1000/char idx=190 wdt=1000/char idx=191 wdt=545/char idx=192 wdt=683/char idx=193 wdt=683/char idx=194 wdt=683/char idx=195 wdt=683/char idx=196 wdt=683/char 

Re: Superscript and Subscript with custom fonts

2006-05-18 Thread Jeremias Maerki
Please recreate the font metric file with FOP 0.92beta and try again.
Some TrueType fonts don't contain an explicit value for x-Height. This
value is used in the computation of the super- and subscript position.
If you look at your metrics file you'll see that x-height is 0.

I've added code in 0.92beta that derives the x-Height value from glyph
metrics inside the fonts. Recreating the font metrics will solve your
problem.

On 18.05.2006 09:51:27 Jordan Soet wrote:
 I'm having a problem with superscripts and subscripts in fop 0.92beta when
 using custom fonts. The superscripts and subscripts work fine with the
 default fonts, but then not with the custom fonts that I'm using. I added
 them in using the specified method, from the ttf files and they seem to work
 fine otherwise. In the meantime I just worked around it by manually shifting
 the baseline 5pt up or down. I've attached a sample file as well as my font
 metric file.


Jeremias Maerki


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



Scaling of Text

2006-05-18 Thread Kring, Rainer
We have a table-cell with a certain size defined by column-width and
table-row height (example below). Now we want to scale the xsl:value-of
output to maximum size of the cell. Is there any chances to get this done
with FOP 0.20.5?

Thank you very much!
Rainer



fo:table-column column-width=238pt/


fo:table-row height=94.0pt
fo:table-cell
/fo:table-cell
fo:table-cell border-bottom-style=solid border-bottom-width=1.0pt
border-left-style=solid border-left-width=1.0pt
border-right-style=solid border-right-width=1.0pt
border-top-style=solid border-top-width=1.0pt text-align=center
display-align=before
fo:block white-space-collapse=true  text-align=center color=#ff
font-family=Kerstin1 font-size=12.0pt
xsl:value-of disable-output-escaping=no select=price_outlet_entire/
/fo:block
/fo:table-cell
fo:table-cell
/fo:table-cell
/fo:table-row


Rainer Kring
IT Analyst Applications
mailto:[EMAIL PROTECTED]


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



Re: Scaling of Text

2006-05-18 Thread Jimmy Dixon
this is a nasty one - basically the answer is no, if the value of the 
table cell is text the best you can do is to insert non breaking spaces 
between the letters t ensure it wraps and doesnt overflow.


this template does the trick:

xsl:template name=zero-length-spaces
   xsl:param name=string/
   xsl:param name=len select=string-length($string)/
   xsl:choose
   xsl:when test=$len = 1
   xsl:value-of select=$string/xsl:text#x200B;/xsl:text
   /xsl:when
   xsl:when test=$len = 0
   xsl:text-/xsl:text
   /xsl:when
   xsl:otherwise
   xsl:call-template name=zero-length-spaces
   xsl:with-param name=string 
select=substring($string,1,floor($len div 2))/

   xsl:with-param name=len select=floor($len div 2)/
   /xsl:call-template
   xsl:call-template name=zero-length-spaces
   xsl:with-param name=string 
select=substring($string,floor($len div 2) + 1)/

   xsl:with-param name=len select=ceiling($len div 2)/
   /xsl:call-template
   /xsl:otherwise
   /xsl:choose
/xsl:template

Kring, Rainer wrote:


We have a table-cell with a certain size defined by column-width and
table-row height (example below). Now we want to scale the xsl:value-of
output to maximum size of the cell. Is there any chances to get this done
with FOP 0.20.5?

Thank you very much!
Rainer



fo:table-column column-width=238pt/


fo:table-row height=94.0pt
fo:table-cell
/fo:table-cell
fo:table-cell border-bottom-style=solid border-bottom-width=1.0pt
border-left-style=solid border-left-width=1.0pt
border-right-style=solid border-right-width=1.0pt
border-top-style=solid border-top-width=1.0pt text-align=center
display-align=before
fo:block white-space-collapse=true  text-align=center color=#ff
font-family=Kerstin1 font-size=12.0pt
xsl:value-of disable-output-escaping=no select=price_outlet_entire/
/fo:block
/fo:table-cell
fo:table-cell
/fo:table-cell
/fo:table-row


Rainer Kring
IT Analyst Applications
mailto:[EMAIL PROTECTED]


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


 



--
Jimmy Dixon, Perfiliate Technologies

email   :  [EMAIL PROTECTED]
phone   :  +44 (0)191 241 6500

Registered Office:
Perfiliate Technologies Limited
7-15 Pink Lane,
Newcastle upon Tyne. NE1 5DW
Registered No. 3783384 in the UK

Telephone +44 (0)191 241 6500
Facsimile +44 (0)191 241 9302

www.perfiliate.com

Please note that electronic mail may be monitored.

This e-mail is confidential. If you received it by mistake, please let us know 
and then delete it from your system; you should not copy, disclose, or 
distribute its contents to anyone nor act in reliance on this e-mail, as this 
is prohibited and may be unlawful. We check all emails for viruses, but please 
note that we do not accept liability for any viruses which may be transmitted 
in or with this email.


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



Re: disable-output-escaping in xsl

2006-05-18 Thread Chris Bowditch

Edward McMasters wrote:

snip/


paramString=fo:block/fo:block

and then in my XSL:

xsl:value-of select=$paramString /

but I see the fo:block and /fo:block in my PDF.  I
tried setting the value-of to disable-output-escaping
(this works in HTML) but this did not help:


This is really a pure XSLT question, so you would have got a faster 
response on the XSL Mulberry list, linked from FOP's website:


http://xmlgraphics.apache.org/fop/maillist.html#xslt-mulberry



xsl:value-of select=$paramString
disable-output-escaping=yes /


This works for HTML because the result tree is serialized to disk 
immediately, but when generating PDF the process is XML+XSL--FO--PDF. 
So the result tree is not serialized before it is presented to FOP for 
processing. So whilst the text has fo:block inside it the memory 
representation is still text not markup. Its only the process of 
serialization and re-parsing that will change the fo:block into 
markup. I'm not sure of a workaround. Ask on the mulberry list.


Chris



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



AW: Scaling of Text

2006-05-18 Thread Kring, Rainer
Hi Jimmy,

thanks for the quick answer.

I think you got me wrong. We don't want to cut or wrap the string. We have
to resize the font. The font-size must be altered to fit the string into the
cell, so that the the string is neither bigger nor smaller then the cell.




-Ursprüngliche Nachricht-
Von: Jimmy Dixon [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 18. Mai 2006 10:15
An: fop-users@xmlgraphics.apache.org
Betreff: Re: Scaling of Text

this is a nasty one - basically the answer is no, if the value of the table
cell is text the best you can do is to insert non breaking spaces between
the letters t ensure it wraps and doesnt overflow.

this template does the trick:

xsl:template name=zero-length-spaces
xsl:param name=string/
xsl:param name=len select=string-length($string)/
xsl:choose
xsl:when test=$len = 1
xsl:value-of select=$string/xsl:text#x200B;/xsl:text
/xsl:when
xsl:when test=$len = 0
xsl:text-/xsl:text
/xsl:when
xsl:otherwise
xsl:call-template name=zero-length-spaces
xsl:with-param name=string 
select=substring($string,1,floor($len div 2))/
xsl:with-param name=len select=floor($len div 2)/
/xsl:call-template
xsl:call-template name=zero-length-spaces
xsl:with-param name=string 
select=substring($string,floor($len div 2) + 1)/
xsl:with-param name=len select=ceiling($len div 2)/
/xsl:call-template
/xsl:otherwise
/xsl:choose
/xsl:template

Kring, Rainer wrote:

We have a table-cell with a certain size defined by column-width and 
table-row height (example below). Now we want to scale the xsl:value-of 
output to maximum size of the cell. Is there any chances to get this 
done with FOP 0.20.5?

Thank you very much!
Rainer



fo:table-column column-width=238pt/


fo:table-row height=94.0pt
fo:table-cell
/fo:table-cell
fo:table-cell border-bottom-style=solid border-bottom-width=1.0pt
border-left-style=solid border-left-width=1.0pt
border-right-style=solid border-right-width=1.0pt
border-top-style=solid border-top-width=1.0pt text-align=center
display-align=before
fo:block white-space-collapse=true  text-align=center color=#ff
font-family=Kerstin1 font-size=12.0pt xsl:value-of 
disable-output-escaping=no select=price_outlet_entire/ /fo:block 
/fo:table-cell fo:table-cell /fo:table-cell /fo:table-row


   Rainer Kring
   IT Analyst Applications
   mailto:[EMAIL PROTECTED]


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


  


-- 
Jimmy Dixon, Perfiliate Technologies

email   :  [EMAIL PROTECTED]
phone   :  +44 (0)191 241 6500

Registered Office:
Perfiliate Technologies Limited
7-15 Pink Lane,
Newcastle upon Tyne. NE1 5DW
Registered No. 3783384 in the UK
 
Telephone +44 (0)191 241 6500
Facsimile +44 (0)191 241 9302
 
www.perfiliate.com
 
Please note that electronic mail may be monitored.
 
This e-mail is confidential. If you received it by mistake, please let us
know and then delete it from your system; you should not copy, disclose, or
distribute its contents to anyone nor act in reliance on this e-mail, as
this is prohibited and may be unlawful. We check all emails for viruses, but
please note that we do not accept liability for any viruses which may be
transmitted in or with this email.


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



space-after at 0.92b

2006-05-18 Thread Dirk Bromberg

Hi all,

when i need some space after some fo elements i set a space-after=x mm 
to these elements.


but at 0.92b there are no spaces in output. (like 
http://xmlgraphics.apache.org/fop/compliance.html#fo-property-space-after 
says...)

so i use margin-bottom=x mm.
is this a good workaround? is there a better one?


Thanks.

Dirk

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



RE: Scaling of Text

2006-05-18 Thread Pascal Sancho
Hi,

As a workaround, you can use svg, witch allows to scale content, using 
preserveAspectRatio:

fo:instream-foreign-object width={$width_unit} height={$height_unit} 
xmlns=http://www.w3.org/2000/svg;
svg width={$width_unit} height={$height_unit} 
preserveAspectRatio=xMidYMid meet viewBox=0 0 {$max_x} {$max_y}
text x=0 y={$font_size} text-anchor={$alignement}your 
text here/text
/svg
/fo:instream-foreign-object

 
Pascal
 
 

 -Original Message-
 From: Kring, Rainer [mailto:[EMAIL PROTECTED] 
 
 thanks for the quick answer.
 
 I think you got me wrong. We don't want to cut or wrap the 
 string. We have to resize the font. The font-size must be 
 altered to fit the string into the cell, so that the the 
 string is neither bigger nor smaller then the cell.
 
 -Ursprüngliche Nachricht-
 Von: Jimmy Dixon [mailto:[EMAIL PROTECTED]
 
 this is a nasty one - basically the answer is no, if the 
 value of the table cell is text the best you can do is to 
 insert non breaking spaces between the letters t ensure it 
 wraps and doesnt overflow.
 
 this template does the trick:
 
 xsl:template name=zero-length-spaces
 xsl:param name=string/
 xsl:param name=len select=string-length($string)/
 xsl:choose
 xsl:when test=$len = 1
 xsl:value-of 
 select=$string/xsl:text#x200B;/xsl:text
 /xsl:when
 xsl:when test=$len = 0
 xsl:text-/xsl:text
 /xsl:when
 xsl:otherwise
 xsl:call-template name=zero-length-spaces
 xsl:with-param name=string 
 select=substring($string,1,floor($len div 2))/
 xsl:with-param name=len select=floor($len 
 div 2)/
 /xsl:call-template
 xsl:call-template name=zero-length-spaces
 xsl:with-param name=string 
 select=substring($string,floor($len div 2) + 1)/
 xsl:with-param name=len 
 select=ceiling($len div 2)/
 /xsl:call-template
 /xsl:otherwise
 /xsl:choose
 /xsl:template
 
 Kring, Rainer wrote:
 
 We have a table-cell with a certain size defined by column-width and 
 table-row height (example below). Now we want to scale the 
 xsl:value-of 
 output to maximum size of the cell. Is there any chances to get this 
 done with FOP 0.20.5?
 
 Thank you very much!
 Rainer
 
 
 
 fo:table-column column-width=238pt/
 
 
 fo:table-row height=94.0pt
 fo:table-cell
 /fo:table-cell
 fo:table-cell border-bottom-style=solid 
 border-bottom-width=1.0pt
 border-left-style=solid border-left-width=1.0pt
 border-right-style=solid border-right-width=1.0pt
 border-top-style=solid border-top-width=1.0pt text-align=center
 display-align=before
 fo:block white-space-collapse=true  text-align=center 
 color=#ff
 font-family=Kerstin1 font-size=12.0pt xsl:value-of 
 disable-output-escaping=no select=price_outlet_entire/ 
 /fo:block 
 /fo:table-cell fo:table-cell /fo:table-cell /fo:table-row


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



RE: Superscript and Subscript with custom fonts

2006-05-18 Thread Jordan Soet
Hmm, actually, I did that now, but with the new font metrics the character 'β' 
has stopped showing up correctly (it's shown as #). I'm not sure if I was just 
lucky that this was working before or if it's a bug now, and I'm not sure what 
other characters don't show up properly.

Thanks,
Jordan

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 18, 2006 4:00 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Superscript and Subscript with custom fonts

Please recreate the font metric file with FOP 0.92beta and try again.
Some TrueType fonts don't contain an explicit value for x-Height. This
value is used in the computation of the super- and subscript position.
If you look at your metrics file you'll see that x-height is 0.

I've added code in 0.92beta that derives the x-Height value from glyph
metrics inside the fonts. Recreating the font metrics will solve your
problem.

On 18.05.2006 09:51:27 Jordan Soet wrote:
 I'm having a problem with superscripts and subscripts in fop 0.92beta when
 using custom fonts. The superscripts and subscripts work fine with the
 default fonts, but then not with the custom fonts that I'm using. I added
 them in using the specified method, from the ttf files and they seem to work
 fine otherwise. In the meantime I just worked around it by manually shifting
 the baseline 5pt up or down. I've attached a sample file as well as my font
 metric file.


Jeremias Maerki


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



AW: space-after at 0.92b

2006-05-18 Thread andrei . meleschkin
I use padding-bottom=x mm
It works with 0.20.5 and 0.92 too.

Regards 

Andrei 

-Ursprüngliche Nachricht-
Von: Dirk Bromberg [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 18. Mai 2006 10:45
An: fop-users@xmlgraphics.apache.org
Betreff: space-after at 0.92b

Hi all,

when i need some space after some fo elements i set a space-after=x mm 
to these elements.

but at 0.92b there are no spaces in output. (like 
http://xmlgraphics.apache.org/fop/compliance.html#fo-property-space-after 
says...)
so i use margin-bottom=x mm.
is this a good workaround? is there a better one?


Thanks.

Dirk

-
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: space-after at 0.92b

2006-05-18 Thread Chris Bowditch

Dirk Bromberg wrote:


Hi all,

when i need some space after some fo elements i set a space-after=x mm 
to these elements.


but at 0.92b there are no spaces in output. (like 
http://xmlgraphics.apache.org/fop/compliance.html#fo-property-space-after 
says...)


spaces will be collapsed if they are the last space in a reference area. 
 This is the correct behaviour defined in the XSL-FO specification.



so i use margin-bottom=x mm.
is this a good workaround? is there a better one?


You can override the behaviour by setting 
space-after.conditionality=retain


Chris



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



AW: Scaling of Text

2006-05-18 Thread Kring, Rainer
Hi Pascal,

how do you know the values for $width_unit, $height_unit and especially
$max_x, $max_y. Could please give me an example?

Here is what we tried:

fo:table-row height=94.0pt
fo:table-cell
/fo:table-cell
fo:table-cell border-bottom-style=solid border-bottom-width=1.0pt
border-left-style=solid border-left-width=1.0pt
border-right-style=solid border-right-width=1.0pt
border-top-style=solid border-top-width=1.0pt text-align=center
display-align=before
fo:block white-space-collapse=true text-align=center color=#ff
font-family=Kerstin1 font-size=10.0pt


fo:instream-foreign-object width=238pt height=94.0pt
xmlns=http://www.w3.org/2000/svg;
svg width=238pt height=94.0pt preserveAspectRatio=xMidYMid
meet viewBox=0 0 238 94
text x=0 y=10.0pt xsl:value-of
disable-output-escaping=no select=price_outlet_entire//text
/svg
/fo:instream-foreign-object
 

Thank you very much!

Rainer






-Ursprüngliche Nachricht-
Von: Pascal Sancho [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 18. Mai 2006 11:33
An: fop-users@xmlgraphics.apache.org
Betreff: RE: Scaling of Text

Hi,

As a workaround, you can use svg, witch allows to scale content, using
preserveAspectRatio:

fo:instream-foreign-object width={$width_unit} height={$height_unit}
xmlns=http://www.w3.org/2000/svg;
svg width={$width_unit} height={$height_unit}
preserveAspectRatio=xMidYMid meet viewBox=0 0 {$max_x} {$max_y}
text x=0 y={$font_size}
text-anchor={$alignement}your text here/text
/svg
/fo:instream-foreign-object

 
Pascal
 
 

 -Original Message-
 From: Kring, Rainer [mailto:[EMAIL PROTECTED]
 
 thanks for the quick answer.
 
 I think you got me wrong. We don't want to cut or wrap the string. We 
 have to resize the font. The font-size must be altered to fit the 
 string into the cell, so that the the string is neither bigger nor 
 smaller then the cell.
 
 -Ursprüngliche Nachricht-
 Von: Jimmy Dixon [mailto:[EMAIL PROTECTED]
 
 this is a nasty one - basically the answer is no, if the value of the 
 table cell is text the best you can do is to insert non breaking 
 spaces between the letters t ensure it wraps and doesnt overflow.
 
 this template does the trick:
 
 xsl:template name=zero-length-spaces
 xsl:param name=string/
 xsl:param name=len select=string-length($string)/
 xsl:choose
 xsl:when test=$len = 1
 xsl:value-of
 select=$string/xsl:text#x200B;/xsl:text
 /xsl:when
 xsl:when test=$len = 0
 xsl:text-/xsl:text
 /xsl:when
 xsl:otherwise
 xsl:call-template name=zero-length-spaces
 xsl:with-param name=string 
 select=substring($string,1,floor($len div 2))/
 xsl:with-param name=len select=floor($len div 
 2)/
 /xsl:call-template
 xsl:call-template name=zero-length-spaces
 xsl:with-param name=string 
 select=substring($string,floor($len div 2) + 1)/
 xsl:with-param name=len 
 select=ceiling($len div 2)/
 /xsl:call-template
 /xsl:otherwise
 /xsl:choose
 /xsl:template
 
 Kring, Rainer wrote:
 
 We have a table-cell with a certain size defined by column-width and 
 table-row height (example below). Now we want to scale the
 xsl:value-of
 output to maximum size of the cell. Is there any chances to get this 
 done with FOP 0.20.5?
 
 Thank you very much!
 Rainer
 
 
 
 fo:table-column column-width=238pt/
 
 
 fo:table-row height=94.0pt
 fo:table-cell
 /fo:table-cell
 fo:table-cell border-bottom-style=solid 
 border-bottom-width=1.0pt
 border-left-style=solid border-left-width=1.0pt
 border-right-style=solid border-right-width=1.0pt
 border-top-style=solid border-top-width=1.0pt text-align=center
 display-align=before
 fo:block white-space-collapse=true  text-align=center 
 color=#ff
 font-family=Kerstin1 font-size=12.0pt xsl:value-of 
 disable-output-escaping=no select=price_outlet_entire/
 /fo:block
 /fo:table-cell fo:table-cell /fo:table-cell /fo:table-row


-
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: Superscript and Subscript with custom fonts

2006-05-18 Thread Jeremias Maerki
Verdana works fine for me with FOP 0.92beta and FOP Trunk. Must be
something else that's wrong on your side.

On 18.05.2006 11:36:57 Jordan Soet wrote:
 Hmm, actually, I did that now, but with the new font metrics the
 character 'â' has stopped showing up correctly (it's shown as #). I'm
 not sure if I was just lucky that this was working before or if it's a
 bug now, and I'm not sure what other characters don't show up properly.
 
 Thanks,
 Jordan
 
 -Original Message-
 From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, May 18, 2006 4:00 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: Superscript and Subscript with custom fonts
 
 Please recreate the font metric file with FOP 0.92beta and try again.
 Some TrueType fonts don't contain an explicit value for x-Height. This
 value is used in the computation of the super- and subscript position.
 If you look at your metrics file you'll see that x-height is 0.
 
 I've added code in 0.92beta that derives the x-Height value from glyph
 metrics inside the fonts. Recreating the font metrics will solve your
 problem.
 
 On 18.05.2006 09:51:27 Jordan Soet wrote:
  I'm having a problem with superscripts and subscripts in fop 0.92beta when
  using custom fonts. The superscripts and subscripts work fine with the
  default fonts, but then not with the custom fonts that I'm using. I added
  them in using the specified method, from the ttf files and they seem to work
  fine otherwise. In the meantime I just worked around it by manually shifting
  the baseline 5pt up or down. I've attached a sample file as well as my font
  metric file.



Jeremias Maerki


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



RE: Scaling of Text

2006-05-18 Thread Pascal Sancho
 -Original Message-
 From: Kring, Rainer [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, May 18, 2006 12:56 PM
 
 Hi Pascal,
 
 how do you know the values for $width_unit, $height_unit and 
 especially $max_x, $max_y. Could please give me an example?

That is your job! And you did it!

$width_unit and $height_unit should be = your cell content size, including 
unit.
$max_x and $max_y depend on the text nested in svg snippet.
You can make it dependant on text length and font-size if needed.

Pascal

 Here is what we tried:
 
 fo:table-row height=94.0pt
 fo:table-cell
 /fo:table-cell
 fo:table-cell border-bottom-style=solid border-bottom-width=1.0pt
 border-left-style=solid border-left-width=1.0pt
 border-right-style=solid border-right-width=1.0pt
 border-top-style=solid border-top-width=1.0pt text-align=center
 display-align=before
 fo:block white-space-collapse=true text-align=center 
 color=#ff
 font-family=Kerstin1 font-size=10.0pt
 
 fo:instream-foreign-object width=238pt height=94.0pt
 xmlns=http://www.w3.org/2000/svg;
   svg width=238pt height=94.0pt 
 preserveAspectRatio=xMidYMid meet viewBox=0 0 238 94
   text x=0 y=10.0pt xsl:value-of
 disable-output-escaping=no select=price_outlet_entire//text
   /svg
 /fo:instream-foreign-object
  
 -Ursprüngliche Nachricht-
 Von: Pascal Sancho [mailto:[EMAIL PROTECTED]
 
 As a workaround, you can use svg, witch allows to scale content, using
 preserveAspectRatio:
 
 fo:instream-foreign-object width={$width_unit} 
 height={$height_unit}
 xmlns=http://www.w3.org/2000/svg;
   svg width={$width_unit} height={$height_unit}
 preserveAspectRatio=xMidYMid meet viewBox=0 0 {$max_x} {$max_y}
   text x=0 y={$font_size}
 text-anchor={$alignement}your text here/text
   /svg
 /fo:instream-foreign-object
 
  -Original Message-
  From: Kring, Rainer [mailto:[EMAIL PROTECTED]
  
  thanks for the quick answer.
  
  I think you got me wrong. We don't want to cut or wrap the 
 string. We 
  have to resize the font. The font-size must be altered to fit the 
  string into the cell, so that the the string is neither bigger nor 
  smaller then the cell.
  
  -Ursprüngliche Nachricht-
  Von: Jimmy Dixon [mailto:[EMAIL PROTECTED]
  
  this is a nasty one - basically the answer is no, if the 
 value of the 
  table cell is text the best you can do is to insert non breaking 
  spaces between the letters t ensure it wraps and doesnt overflow.
  
  this template does the trick:
  
  xsl:template name=zero-length-spaces
  xsl:param name=string/
  xsl:param name=len select=string-length($string)/
  xsl:choose
  xsl:when test=$len = 1
  xsl:value-of
  select=$string/xsl:text#x200B;/xsl:text
  /xsl:when
  xsl:when test=$len = 0
  xsl:text-/xsl:text
  /xsl:when
  xsl:otherwise
  xsl:call-template name=zero-length-spaces
  xsl:with-param name=string 
  select=substring($string,1,floor($len div 2))/
  xsl:with-param name=len select=floor($len div 
  2)/
  /xsl:call-template
  xsl:call-template name=zero-length-spaces
  xsl:with-param name=string 
  select=substring($string,floor($len div 2) + 1)/
  xsl:with-param name=len 
  select=ceiling($len div 2)/
  /xsl:call-template
  /xsl:otherwise
  /xsl:choose
  /xsl:template
  
  Kring, Rainer wrote:
  
  We have a table-cell with a certain size defined by 
 column-width and 
  table-row height (example below). Now we want to scale the
  xsl:value-of
  output to maximum size of the cell. Is there any chances 
 to get this 
  done with FOP 0.20.5?
  
  
  fo:table-column column-width=238pt/
  
  
  fo:table-row height=94.0pt
  fo:table-cell
  /fo:table-cell
  fo:table-cell border-bottom-style=solid 
  border-bottom-width=1.0pt
  border-left-style=solid border-left-width=1.0pt
  border-right-style=solid border-right-width=1.0pt
  border-top-style=solid border-top-width=1.0pt 
 text-align=center
  display-align=before
  fo:block white-space-collapse=true  text-align=center 
  color=#ff
  font-family=Kerstin1 font-size=12.0pt xsl:value-of 
  disable-output-escaping=no select=price_outlet_entire/
  /fo:block
  /fo:table-cell fo:table-cell /fo:table-cell /fo:table-row


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



AW: Scaling of Text

2006-05-18 Thread Kring, Rainer
Hi Pascal,

it's me again.

That is your job! And you did it!

Bad job! It doesn't work.  :-|


$width_unit and $height_unit should be = your cell content size, including
unit.

This part seems OK.


$max_x and $max_y depend on the text nested in svg snippet.

That's the point.


You can make it dependant on text length and font-size if needed.

What's the correlation between the two values ($max_x, $max_y), the text
length and the font size?
Could you give as an example, please? Did you try it yourself?


Thanks for your help!
Rainer

 

-Ursprüngliche Nachricht-
Von: Pascal Sancho [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 18. Mai 2006 14:32
An: fop-users@xmlgraphics.apache.org
Betreff: RE: Scaling of Text

 -Original Message-
 From: Kring, Rainer [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 18, 2006 12:56 PM
 
 Hi Pascal,
 
 how do you know the values for $width_unit, $height_unit and 
 especially $max_x, $max_y. Could please give me an example?

That is your job! And you did it!

$width_unit and $height_unit should be = your cell content size, including
unit.
$max_x and $max_y depend on the text nested in svg snippet.
You can make it dependant on text length and font-size if needed.

Pascal

 Here is what we tried:
 
 fo:table-row height=94.0pt
 fo:table-cell
 /fo:table-cell
 fo:table-cell border-bottom-style=solid border-bottom-width=1.0pt
 border-left-style=solid border-left-width=1.0pt
 border-right-style=solid border-right-width=1.0pt
 border-top-style=solid border-top-width=1.0pt text-align=center
 display-align=before
 fo:block white-space-collapse=true text-align=center 
 color=#ff
 font-family=Kerstin1 font-size=10.0pt
 
 fo:instream-foreign-object width=238pt height=94.0pt
 xmlns=http://www.w3.org/2000/svg;
   svg width=238pt height=94.0pt 
 preserveAspectRatio=xMidYMid meet viewBox=0 0 238 94
   text x=0 y=10.0pt xsl:value-of
disable-output-escaping=no 
 select=price_outlet_entire//text
   /svg
 /fo:instream-foreign-object
  
 -Ursprüngliche Nachricht-
 Von: Pascal Sancho [mailto:[EMAIL PROTECTED]
 
 As a workaround, you can use svg, witch allows to scale content, using
 preserveAspectRatio:
 
 fo:instream-foreign-object width={$width_unit} 
 height={$height_unit}
 xmlns=http://www.w3.org/2000/svg;
   svg width={$width_unit} height={$height_unit}
 preserveAspectRatio=xMidYMid meet viewBox=0 0 {$max_x} {$max_y}
   text x=0 y={$font_size}
 text-anchor={$alignement}your text here/text
   /svg
 /fo:instream-foreign-object
 
  -Original Message-
  From: Kring, Rainer [mailto:[EMAIL PROTECTED]
  
  thanks for the quick answer.
  
  I think you got me wrong. We don't want to cut or wrap the
 string. We
  have to resize the font. The font-size must be altered to fit the 
  string into the cell, so that the the string is neither bigger nor 
  smaller then the cell.
  
  -Ursprüngliche Nachricht-
  Von: Jimmy Dixon [mailto:[EMAIL PROTECTED]
  
  this is a nasty one - basically the answer is no, if the
 value of the
  table cell is text the best you can do is to insert non breaking 
  spaces between the letters t ensure it wraps and doesnt overflow.
  
  this template does the trick:
  
  xsl:template name=zero-length-spaces
  xsl:param name=string/
  xsl:param name=len select=string-length($string)/
  xsl:choose
  xsl:when test=$len = 1
  xsl:value-of
  select=$string/xsl:text#x200B;/xsl:text
  /xsl:when
  xsl:when test=$len = 0
  xsl:text-/xsl:text
  /xsl:when
  xsl:otherwise
  xsl:call-template name=zero-length-spaces
  xsl:with-param name=string 
  select=substring($string,1,floor($len div 2))/
  xsl:with-param name=len select=floor($len div 
  2)/
  /xsl:call-template
  xsl:call-template name=zero-length-spaces
  xsl:with-param name=string 
  select=substring($string,floor($len div 2) + 1)/
  xsl:with-param name=len 
  select=ceiling($len div 2)/
  /xsl:call-template
  /xsl:otherwise
  /xsl:choose
  /xsl:template
  
  Kring, Rainer wrote:
  
  We have a table-cell with a certain size defined by
 column-width and
  table-row height (example below). Now we want to scale the
  xsl:value-of
  output to maximum size of the cell. Is there any chances
 to get this
  done with FOP 0.20.5?
  
  
  fo:table-column column-width=238pt/
  
  
  fo:table-row height=94.0pt
  fo:table-cell
  /fo:table-cell
  fo:table-cell border-bottom-style=solid 
  border-bottom-width=1.0pt
  border-left-style=solid border-left-width=1.0pt
  border-right-style=solid border-right-width=1.0pt
  border-top-style=solid border-top-width=1.0pt 
 text-align=center
  display-align=before
  fo:block white-space-collapse=true  text-align=center 
  color=#ff
  font-family=Kerstin1 font-size=12.0pt xsl:value-of 
  disable-output-escaping=no 

RE: Scaling of Text

2006-05-18 Thread Pascal Sancho
 -Original Message-
 From: Kring, Rainer [mailto:[EMAIL PROTECTED] 
 
 Hi Pascal,
 it's me again.
 
 That is your job! And you did it!
 
 Bad job! It doesn't work.  :-|
 
 
 $width_unit and $height_unit should be = your cell content size, 
 including
 unit.
 This part seems OK.
 
 $max_x and $max_y depend on the text nested in svg snippet.
 That's the point.
 
 You can make it dependant on text length and font-size if needed.
 
 What's the correlation between the two values ($max_x, 
 $max_y), the text length and the font size?
 Could you give as an example, please? Did you try it yourself?

IMHO, viewBox attribute specifies 2 things:
 - the svg frame that should be visible
 - initial coordinates system of your drawing.

Therefore, viewBox size should be greater or equal to text box.
If not, your text should appear truncated.
In your case,
 - $max_x should be = text-length
 - $max_y should be = font-size.

I've also made some annotations in your snippet.
(I've tested it successfully when corrected)

HTH,
Pascal

 -Ursprüngliche Nachricht-
 Von: Pascal Sancho [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 18. Mai 2006 14:32
 An: fop-users@xmlgraphics.apache.org
 Betreff: RE: Scaling of Text
 
  -Original Message-
  From: Kring, Rainer [mailto:[EMAIL PROTECTED]
  Sent: Thursday, May 18, 2006 12:56 PM
  
  Hi Pascal,
  
  how do you know the values for $width_unit, $height_unit and 
  especially $max_x, $max_y. Could please give me an example?
 
 That is your job! And you did it!
 
 $width_unit and $height_unit should be = your cell content 
 size, including unit.
 $max_x and $max_y depend on the text nested in svg snippet.
 You can make it dependant on text length and font-size if needed.
 
 Pascal
 
  Here is what we tried:
  
  fo:table-row height=94.0pt
  fo:table-cell
  /fo:table-cell
  fo:table-cell border-bottom-style=solid 
 border-bottom-width=1.0pt
  border-left-style=solid border-left-width=1.0pt
  border-right-style=solid border-right-width=1.0pt
  border-top-style=solid border-top-width=1.0pt 
 text-align=center
  display-align=before
  fo:block white-space-collapse=true text-align=center 
  color=#ff
  font-family=Kerstin1 font-size=10.0pt
  
  fo:instream-foreign-object width=238pt height=94.0pt
  xmlns=http://www.w3.org/2000/svg;
  svg width=238pt height=94.0pt 
  preserveAspectRatio=xMidYMid meet viewBox=0 0 238 94

Need to close the openning quote --^


  text x=0 y=10.0pt xsl:value-of

Unit is not required here -^
(same as viewBox attribute)

 disable-output-escaping=no 
  select=price_outlet_entire//text
  /svg
  /fo:instream-foreign-object
   
  -Ursprüngliche Nachricht-
  Von: Pascal Sancho [mailto:[EMAIL PROTECTED]
  
  As a workaround, you can use svg, witch allows to scale 
 content, using
  preserveAspectRatio:
  
  fo:instream-foreign-object width={$width_unit} 
  height={$height_unit}
  xmlns=http://www.w3.org/2000/svg;
  svg width={$width_unit} height={$height_unit}
  preserveAspectRatio=xMidYMid meet viewBox=0 0 {$max_x} {$max_y}
  text x=0 y={$font_size}
  text-anchor={$alignement}your text here/text
  /svg
  /fo:instream-foreign-object
  
   -Original Message-
   From: Kring, Rainer [mailto:[EMAIL PROTECTED]
   
   thanks for the quick answer.
   
   I think you got me wrong. We don't want to cut or wrap the
  string. We
   have to resize the font. The font-size must be altered to fit the 
   string into the cell, so that the the string is neither 
 bigger nor 
   smaller then the cell.
   
   -Ursprüngliche Nachricht-
   Von: Jimmy Dixon [mailto:[EMAIL PROTECTED]
   
   this is a nasty one - basically the answer is no, if the
  value of the
   table cell is text the best you can do is to insert non breaking 
   spaces between the letters t ensure it wraps and doesnt overflow.
   
   this template does the trick:
   
   xsl:template name=zero-length-spaces
   xsl:param name=string/
   xsl:param name=len select=string-length($string)/
   xsl:choose
   xsl:when test=$len = 1
   xsl:value-of
   select=$string/xsl:text#x200B;/xsl:text
   /xsl:when
   xsl:when test=$len = 0
   xsl:text-/xsl:text
   /xsl:when
   xsl:otherwise
   xsl:call-template name=zero-length-spaces
   xsl:with-param name=string 
   select=substring($string,1,floor($len div 2))/
   xsl:with-param name=len select=floor($len div 
   2)/
   /xsl:call-template
   xsl:call-template name=zero-length-spaces
   xsl:with-param name=string 
   select=substring($string,floor($len div 2) + 1)/
   xsl:with-param name=len 
   select=ceiling($len div 2)/
   /xsl:call-template
   /xsl:otherwise
   /xsl:choose
   /xsl:template
   
   Kring, Rainer wrote:
   
   We have a table-cell with a certain size defined by
 

AW: Scaling of Text

2006-05-18 Thread Kring, Rainer
... 
???
How should this work?
How can I calculate $max_x, $max_y
The text can vary.

 - $max_x should be = text-length

isn't text-length returning the letters count?

 - $max_y should be = font-size.

Why? Then font-size has a maximal value. We want to maximize the font size.

The syntax was not the problem. 

I think you can't do it this way.
 

-Ursprüngliche Nachricht-
Von: Pascal Sancho [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 18. Mai 2006 16:01
An: fop-users@xmlgraphics.apache.org
Betreff: RE: Scaling of Text

 -Original Message-
 From: Kring, Rainer [mailto:[EMAIL PROTECTED]
 
 Hi Pascal,
 it's me again.
 
 That is your job! And you did it!
 
 Bad job! It doesn't work.  :-|
 
 
 $width_unit and $height_unit should be = your cell content size, 
 including
 unit.
 This part seems OK.
 
 $max_x and $max_y depend on the text nested in svg snippet.
 That's the point.
 
 You can make it dependant on text length and font-size if needed.
 
 What's the correlation between the two values ($max_x, $max_y), the 
 text length and the font size?
 Could you give as an example, please? Did you try it yourself?

IMHO, viewBox attribute specifies 2 things:
 - the svg frame that should be visible
 - initial coordinates system of your drawing.

Therefore, viewBox size should be greater or equal to text box.
If not, your text should appear truncated.
In your case,
 - $max_x should be = text-length
 - $max_y should be = font-size.

I've also made some annotations in your snippet.
(I've tested it successfully when corrected)

HTH,
Pascal

 -Ursprüngliche Nachricht-
 Von: Pascal Sancho [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 18. Mai 2006 14:32
 An: fop-users@xmlgraphics.apache.org
 Betreff: RE: Scaling of Text
 
  -Original Message-
  From: Kring, Rainer [mailto:[EMAIL PROTECTED]
  Sent: Thursday, May 18, 2006 12:56 PM
  
  Hi Pascal,
  
  how do you know the values for $width_unit, $height_unit and 
  especially $max_x, $max_y. Could please give me an example?
 
 That is your job! And you did it!
 
 $width_unit and $height_unit should be = your cell content size, 
 including unit.
 $max_x and $max_y depend on the text nested in svg snippet.
 You can make it dependant on text length and font-size if needed.
 
 Pascal
 
  Here is what we tried:
  
  fo:table-row height=94.0pt
  fo:table-cell
  /fo:table-cell
  fo:table-cell border-bottom-style=solid 
 border-bottom-width=1.0pt
  border-left-style=solid border-left-width=1.0pt
  border-right-style=solid border-right-width=1.0pt
  border-top-style=solid border-top-width=1.0pt 
 text-align=center
  display-align=before
  fo:block white-space-collapse=true text-align=center 
  color=#ff
  font-family=Kerstin1 font-size=10.0pt
  
  fo:instream-foreign-object width=238pt height=94.0pt
  xmlns=http://www.w3.org/2000/svg;
  svg width=238pt height=94.0pt 
  preserveAspectRatio=xMidYMid meet viewBox=0 0 238 94

Need to close the openning quote --^


  text x=0 y=10.0pt xsl:value-of

Unit is not required here -^
(same as viewBox attribute)

 disable-output-escaping=no 
  select=price_outlet_entire//text
  /svg
  /fo:instream-foreign-object
   
  -Ursprüngliche Nachricht-
  Von: Pascal Sancho [mailto:[EMAIL PROTECTED]
  
  As a workaround, you can use svg, witch allows to scale
 content, using
  preserveAspectRatio:
  
  fo:instream-foreign-object width={$width_unit} 
  height={$height_unit}
  xmlns=http://www.w3.org/2000/svg;
  svg width={$width_unit} height={$height_unit}
  preserveAspectRatio=xMidYMid meet viewBox=0 0 {$max_x} {$max_y}
  text x=0 y={$font_size}
  text-anchor={$alignement}your text here/text
  /svg
  /fo:instream-foreign-object
  
   -Original Message-
   From: Kring, Rainer [mailto:[EMAIL PROTECTED]
   
   thanks for the quick answer.
   
   I think you got me wrong. We don't want to cut or wrap the
  string. We
   have to resize the font. The font-size must be altered to fit the 
   string into the cell, so that the the string is neither
 bigger nor
   smaller then the cell.
   
   -Ursprüngliche Nachricht-
   Von: Jimmy Dixon [mailto:[EMAIL PROTECTED]
   
   this is a nasty one - basically the answer is no, if the
  value of the
   table cell is text the best you can do is to insert non breaking 
   spaces between the letters t ensure it wraps and doesnt overflow.
   
   this template does the trick:
   
   xsl:template name=zero-length-spaces
   xsl:param name=string/
   xsl:param name=len select=string-length($string)/
   xsl:choose
   xsl:when test=$len = 1
   xsl:value-of
   select=$string/xsl:text#x200B;/xsl:text
   /xsl:when
   xsl:when test=$len = 0
   xsl:text-/xsl:text
   /xsl:when
   xsl:otherwise
   xsl:call-template name=zero-length-spaces
   xsl:with-param name=string 
   

-print option to specific printer

2006-05-18 Thread Rick Roen
FOP 0.92b

How do I specify a specific printer when using the command line.

This works to the Windows default printer:

   FOP file.fo -print
   
This brings up the following error information, but does not print anything:

FOP file.fo -print \\lvsserver0\Kyocera Mita KM-4035 KX

May 18, 2006 8:31:55 AM org.apache.fop.cli.Main startFOP
SEVERE: Exception
org.apache.fop.apps.FOPException: Don't know what to do with
\\lvsserver0\Kyocer
a
at
org.apache.fop.cli.CommandLineOptions.parseUnknownOption(CommandLineO
ptions.java:534)
at
org.apache.fop.cli.CommandLineOptions.parseOptions(CommandLineOptions
.java:267)
at
org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:1
32)
at org.apache.fop.cli.Main.startFOP(Main.java:147)
at org.apache.fop.cli.Main.main(Main.java:190)


It seems like it cannot handle a printer name with embedded spaces, but when
I try

FOP file.fo \\servername\hpoj OR \hpoj OR hpoj

I get the same error don't know what to do with...

Can someone advise?

Rick


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



Re: AW: Scaling of Text

2006-05-18 Thread Jeremias Maerki
FWIW, I think SVG is the right approach here. SVG should be powerful
enough to make that possible. How about this?

svg xmlns=http://www.w3.org/2000/svg; viewBox=0 0 100 100
  text x=0 y=100 font-size=100 textLength=100 
lengthAdjust=spacingAndGlyphs19.95/text
/svg

See the textLength property.

On 18.05.2006 16:19:14 Kring, Rainer wrote:
snip/


Jeremias Maerki


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



Re: -print option to specific printer

2006-05-18 Thread Jeremias Maerki
At the moment, you cannot specify the printer to print on for -print.
It always prints to the default printer. We're glad for any patch to
improve that.

The alternative is to use fop -fo file.fo -ps \\servername\printer if
you're on Windows and the printer is shared.

If you download FOP Trunk from Subversion you can also use -pcl
instead of -ps, but -ps is preferred for quality reasons if the
printer supports PostScript.

On 18.05.2006 16:43:10 Rick Roen wrote:
 FOP 0.92b
 
 How do I specify a specific printer when using the command line.
 
 This works to the Windows default printer:
 
FOP file.fo -print

 This brings up the following error information, but does not print anything:
 
   FOP file.fo -print \\lvsserver0\Kyocera Mita KM-4035 KX
 
 May 18, 2006 8:31:55 AM org.apache.fop.cli.Main startFOP
 SEVERE: Exception
 org.apache.fop.apps.FOPException: Don't know what to do with
 \\lvsserver0\Kyocer
 a
 at
 org.apache.fop.cli.CommandLineOptions.parseUnknownOption(CommandLineO
 ptions.java:534)
 at
 org.apache.fop.cli.CommandLineOptions.parseOptions(CommandLineOptions
 .java:267)
 at
 org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:1
 32)
 at org.apache.fop.cli.Main.startFOP(Main.java:147)
 at org.apache.fop.cli.Main.main(Main.java:190)
 
 
 It seems like it cannot handle a printer name with embedded spaces, but when
 I try
 
   FOP file.fo \\servername\hpoj OR \hpoj OR hpoj
 
 I get the same error don't know what to do with...
 
 Can someone advise?
 
 Rick


Jeremias Maerki


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



RE: Scaling of Text

2006-05-18 Thread Pascal Sancho
 -Original Message-
 From: Kring, Rainer [mailto:[EMAIL PROTECTED] 
 
 How should this work?
 How can I calculate $max_x, $max_y
 The text can vary.

2 options here,
1. choose an approximate mean value for character width and then multiply it 
with number of caracters (what I should do)
2. use precises values of each caracter width (a bit longer job)

  - $max_x should be = text-length
 isn't text-length returning the letters count?
Text-length means here the total horizontal size of your text.

  - $max_y should be = font-size.
 Why? Then font-size has a maximal value. We want to maximize 
 the font size.
If not, the bottom of each char will be truncated.
The actual final font-size depend on the ratio between initial viewPort size 
and available room (indicated with width and height properties for the svg 
element).

You just need to choose a couple of (viewPort size, svg font-size) that allows 
to display the whole text.
FOP will do the rest! 

 The syntax was not the problem. 

Ok

 I think you can't do it this way.

That can.

Pascal

 -Ursprüngliche Nachricht-
 Von: Pascal Sancho [mailto:[EMAIL PROTECTED]
 
  -Original Message-
  From: Kring, Rainer [mailto:[EMAIL PROTECTED]
  
  Hi Pascal,
  it's me again.
  
  That is your job! And you did it!
  
  Bad job! It doesn't work.  :-|
  
  
  $width_unit and $height_unit should be = your cell content size, 
  including
  unit.
  This part seems OK.
  
  $max_x and $max_y depend on the text nested in svg snippet.
  That's the point.
  
  You can make it dependant on text length and font-size if needed.
  
  What's the correlation between the two values ($max_x, $max_y), the 
  text length and the font size?
  Could you give as an example, please? Did you try it yourself?
 
 IMHO, viewBox attribute specifies 2 things:
  - the svg frame that should be visible
  - initial coordinates system of your drawing.
 
 Therefore, viewBox size should be greater or equal to text box.
 If not, your text should appear truncated.
 In your case,
  - $max_x should be = text-length
  - $max_y should be = font-size.
 
 I've also made some annotations in your snippet.
 (I've tested it successfully when corrected)
 
 HTH,
 Pascal
 
  -Ursprüngliche Nachricht-
  Von: Pascal Sancho [mailto:[EMAIL PROTECTED]
  
   -Original Message-
   From: Kring, Rainer [mailto:[EMAIL PROTECTED]
   
   Hi Pascal,
   
   how do you know the values for $width_unit, $height_unit and 
   especially $max_x, $max_y. Could please give me an example?
  
  That is your job! And you did it!
  
  $width_unit and $height_unit should be = your cell content size, 
  including unit.
  $max_x and $max_y depend on the text nested in svg snippet.
  You can make it dependant on text length and font-size if needed.
  
  Pascal
  
   Here is what we tried:
   
   fo:table-row height=94.0pt
   fo:table-cell
   /fo:table-cell
   fo:table-cell border-bottom-style=solid 
  border-bottom-width=1.0pt
   border-left-style=solid border-left-width=1.0pt
   border-right-style=solid border-right-width=1.0pt
   border-top-style=solid border-top-width=1.0pt 
  text-align=center
   display-align=before
   fo:block white-space-collapse=true text-align=center 
   color=#ff
   font-family=Kerstin1 font-size=10.0pt
   
   fo:instream-foreign-object width=238pt height=94.0pt
   xmlns=http://www.w3.org/2000/svg;
 svg width=238pt height=94.0pt 
   preserveAspectRatio=xMidYMid meet viewBox=0 0 238 94
 
 Need to close the openning quote --^
 
 
 text x=0 y=10.0pt xsl:value-of
 
 Unit is not required here -^
 (same as viewBox attribute)
 
  disable-output-escaping=no 
   select=price_outlet_entire//text
 /svg
   /fo:instream-foreign-object

   -Ursprüngliche Nachricht-
   Von: Pascal Sancho [mailto:[EMAIL PROTECTED]
   
   As a workaround, you can use svg, witch allows to scale
  content, using
   preserveAspectRatio:
   
   fo:instream-foreign-object width={$width_unit} 
   height={$height_unit}
   xmlns=http://www.w3.org/2000/svg;
 svg width={$width_unit} height={$height_unit}
   preserveAspectRatio=xMidYMid meet viewBox=0 0 {$max_x} 
 {$max_y}
 text x=0 y={$font_size}
   text-anchor={$alignement}your text here/text
 /svg
   /fo:instream-foreign-object
   
-Original Message-
From: Kring, Rainer [mailto:[EMAIL PROTECTED]

thanks for the quick answer.

I think you got me wrong. We don't want to cut or wrap the
   string. We
have to resize the font. The font-size must be altered 
 to fit the 
string into the cell, so that the the string is neither
  bigger nor
smaller then the cell.

-Ursprüngliche Nachricht-
Von: Jimmy Dixon [mailto:[EMAIL PROTECTED]

this is a nasty one - basically the answer is no, if the
   value of the
table cell is text the best you can do is to insert non 
 breaking 
spaces between the letters t ensure it wraps and 

resolution on PS files

2006-05-18 Thread Camilakill

Hi,

I am using PSDocumentGraphics2D to create a postscript file.
I draw a label in which I use a barcode font (IDAutomation).
When I run it in Windows it prints perfect, but when I run the same code,
with the same fonts, in Linux I am not being able to scan the barcode.

Is there any command on the PSDocumentGraphics2D or GraphicContext which I
could do to make the resolution of the file better.

Maybe it is a problem with the fonts (the way they have been installed in
Linux) but I just wanted to make sure that I am using the API correctly.

My code is like follow:
OutputStream out = new java.io.FileOutputStream(new File(targetDir,
ps-barcode.ps));
out = new java.io.BufferedOutputStream(out);

PSDocumentGraphics2D g2d = new PSDocumentGraphics2D(false);
g2d.setGraphicContext(new org.apache.xmlgraphics.java2d.GraphicContext());
g2d.setupDocument(out, 815, 415); 

Font barcode = new Font(IDAutomationSC39XL, Font.PLAIN, 10);//14
g2d.setFont(barcode);
g2d.drawString(!SALFL359F78999078!,50,50);

g2d.finish();

Thank you,

Camila

--
View this message in context: 
http://www.nabble.com/resolution-on-PS-files-t1644209.html#a4453344
Sent from the FOP - Users forum at Nabble.com.


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



Re: resolution on PS files

2006-05-18 Thread Jeremias Maerki
There's no resolution setting for this. In your case, the text is
painted as shapes (vector graphics). The painting is delegated to the
Java2D subsystem. If the output is not readable you can't do much here.

I'd also verify if your barcode is not a little bit too small. In my
experience, unreadable barcodes are often a result of a mismatch between
barcode settings and printer resolution.

In case you didn't know, Barcode4J can generate high-quality barcodes as
EPS files. No font necessary. Might be an alternative for you.

On 18.05.2006 17:45:09 Camilakill wrote:
 
 Hi,
 
 I am using PSDocumentGraphics2D to create a postscript file.
 I draw a label in which I use a barcode font (IDAutomation).
 When I run it in Windows it prints perfect, but when I run the same code,
 with the same fonts, in Linux I am not being able to scan the barcode.
 
 Is there any command on the PSDocumentGraphics2D or GraphicContext which I
 could do to make the resolution of the file better.
 
 Maybe it is a problem with the fonts (the way they have been installed in
 Linux) but I just wanted to make sure that I am using the API correctly.
 
 My code is like follow:
 OutputStream out = new java.io.FileOutputStream(new File(targetDir,
 ps-barcode.ps));
 out = new java.io.BufferedOutputStream(out);
   
 PSDocumentGraphics2D g2d = new PSDocumentGraphics2D(false);
 g2d.setGraphicContext(new org.apache.xmlgraphics.java2d.GraphicContext());
 g2d.setupDocument(out, 815, 415); 
   
 Font barcode = new Font(IDAutomationSC39XL, Font.PLAIN, 10);//14
 g2d.setFont(barcode);
 g2d.drawString(!SALFL359F78999078!,50,50);
 
 g2d.finish();
 
 Thank you,
 
 Camila



Jeremias Maerki


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



Re: Large table cell crashes fop92

2006-05-18 Thread Jeremias Maerki
I was able to commit a change that avoids the NullPointerException.
However, there's a problem remaining that I cannot fix quickly. Your
markers may not be treated correctly or in other words: They won't be
added for the cases a table-cell produces an empty area as on page 9 in
your example. retrieve-marker might return the wrong values. Due to the
obfuscation of your document I cannot easily see if it affects you.

Note to fop-devs: If there are no Position instances returned by the
Iterator in AreaAdditionUtil.addAreas(), there's currently no way to
determine the first/last conditions for the addMarker calls. We have a
similar problem for page-number-citation-last where it's difficult to
know when the last area of an element is painted and the element is
essentially finished. We will need to find a way around that. Don't know
how, yet. I've added a test case that shows the problem.

http://svn.apache.org/viewvc?rev=407614view=rev

On 18.05.2006 17:53:00 Arturo Perez wrote:
 Here's a zipped obfuscated fo file.  I did try removing the 
 keep-together=always on the table rows but that resulted in a slightly 
 different crash.
 
 Thanks so much for helping me with this.
 
  dir.zip 
 
 -arturo
 



Jeremias Maerki


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



integrating Barcode4j into FOP 0.92b

2006-05-18 Thread Rick Roen








FOP 0.92b

Barcode4j (whatever the latest is from SF)



Win XP



I have Barcode4j working from the command line and want to
integrate it into FOP.



I have modified the FOP.bat and have the following:





set LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-sandbox.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-hyph.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis-1.3.02.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.7.1.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.7.0.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\serializer-2.7.0.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik-all-1.6.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xmlgraphics-commons-1.0.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\avalon-framework-4.2.0.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-io-1.1.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-logging-1.0.4.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\fop-hyph.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%FOP_HYPHENATION_PATH%

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\barcode4j-fop-ext-0.20.5.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\barcode4j.jar



I have the last two jar files copied into the FOP\lib
folder.



When I run FOP from the command line I get:



C:\PROGRA~1\FOPfop c:\temp\invoice.fo
c:\temp\invoice.pdf

May 18, 2006 2:06:46 PM
org.apache.fop.fo.ElementMappingRegistry findFOMaker

WARNING: Unknown formatting object
http://barcode4j.krysalis.org/ns^barcode

May 18, 2006 2:06:46 PM org.apache.fop.fo.ElementMappingRegistry
findFOMaker

WARNING: Unknown formatting object
http://barcode4j.krysalis.org/ns^postnet

May 18, 2006 2:06:47 PM
org.apache.fop.fo.flow.InstreamForeignObject prepareIntr

insicSize

SEVERE: Intrinsic dimensions of instream-foreign-object
could not be determined



May 18, 2006 2:06:47 PM
org.apache.fop.fo.flow.InstreamForeignObject prepareIntr

insicSize

SEVERE: Intrinsic dimensions of instream-foreign-object
could not be determined



What else to I need to set?



Thanks,



Rick








FW: integrating Barcode4j into FOP 0.92b

2006-05-18 Thread Rick Roen
FOP 0.92b
Barcode4j (whatever the latest is from SF)

Win XP

I have Barcode4j working from the command line and want to integrate it into
FOP.

I have modified the FOP.bat and have the following:


set LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-sandbox.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-hyph.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis-1.3.02.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.7.1.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.7.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\serializer-2.7.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik-all-1.6.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xmlgraphics-commons-1.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\avalon-framework-4.2.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-io-1.1.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-logging-1.0.4.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\fop-hyph.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%FOP_HYPHENATION_PATH%
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\barcode4j-fop-ext-0.20.5.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\barcode4j.jar

I have the last two jar files copied into the FOP\lib folder.

When I run FOP from the command line I get:

C:\PROGRA~1\FOPfop  c:\temp\invoice.fo c:\temp\invoice.pdf
May 18, 2006 2:06:46 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker
WARNING: Unknown formatting object http://barcode4j.krysalis.org/ns^barcode
May 18, 2006 2:06:46 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker
WARNING: Unknown formatting object http://barcode4j.krysalis.org/ns^postnet
May 18, 2006 2:06:47 PM org.apache.fop.fo.flow.InstreamForeignObject
prepareIntr
insicSize
SEVERE: Intrinsic dimensions of  instream-foreign-object could not be
determined

May 18, 2006 2:06:47 PM org.apache.fop.fo.flow.InstreamForeignObject
prepareIntr
insicSize
SEVERE: Intrinsic dimensions of  instream-foreign-object could not be
determined

What else to I need to set?

Thanks,

Rick


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



use java from server

2006-05-18 Thread Rick Roen








Fop 0.92b



I am calling FOP from a command line bat file. The actual
FOP folder is located on a server on a Win 2000 server with mainly XP pro
clients.



On occasion a client does not have java installed locally,
so fop errors with 



'java' is not recognized as an internal or external command,

operable program or batch file.





Can I tell fop to use the server version of java, or does it
have to be installed on each client?



Rick








Re: use java from server

2006-05-18 Thread Daniel Noll

Rick Roen wrote:
Can I tell fop to use the server version of java, or does it have to be 
installed on each client?


Assuming you're running it from a batch file, you could trivially modify 
the batch file to point at another location.


Daniel


--
Daniel Noll

Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +61 2 9280 0699
Web: http://www.nuix.com.au/Fax: +61 2 9212 6902

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.

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



Re: Large table cell crashes fop92

2006-05-18 Thread Perez
In article [EMAIL PROTECTED],
 Jeremias Maerki [EMAIL PROTECTED] wrote:

 I was able to commit a change that avoids the NullPointerException.
 However, there's a problem remaining that I cannot fix quickly. Your
 markers may not be treated correctly or in other words: They won't be
 added for the cases a table-cell produces an empty area as on page 9 in
 your example. retrieve-marker might return the wrong values. Due to the
 obfuscation of your document I cannot easily see if it affects you.
 
 http://svn.apache.org/viewvc?rev=407614view=rev
 Jeremias Maerki

Is there anything I can do differently?  The marker thing I put in for 
0.92 but I think I get the same crash under 0.20.5.  Does that mean that 
the fox: extension has the same problem?

thanks again,
-arturo


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



Re: Location of xsltfile

2006-05-18 Thread CalvinD

Update. I found I had to place /xml/xslt/phonelist2fo.xsl in the src folder. 
If I did not and cleaned the project, it removed it from the build/classes/
folder.  Once I move it to the src, everything worked fine.
Calvin
--
View this message in context: 
http://www.nabble.com/Location-of-xsltfile-t1617801.html#a4461472
Sent from the FOP - Users forum at Nabble.com.


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



Re: integrating Barcode4j into FOP 0.92b

2006-05-18 Thread Jeremias Maerki
As is mentioned in [1] FOP extensions written for FOP 0.20.5 don't work
with 0.92beta anymore. Barcode4J contains an updated extension for
0.92beta but you'll have to get the sources from SourceForge's CVS und
build it yourself for now because I'm so busy with FOP that I haven't
had time, yet, to prepare a new release of Barcode4J.

[1] http://xmlgraphics.apache.org/fop/0.92/upgrading.html#important

On 18.05.2006 22:13:43 Rick Roen wrote:
 FOP 0.92b
 Barcode4j (whatever the latest is from SF)
  
 Win XP
  
 I have Barcode4j working from the command line and want tointegrate it into 
 FOP.
  
 I have modified the FOP.bat and have the following:
  
  
 set LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jar
 setLOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-sandbox.jar
 setLOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-hyph.jar
 setLOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis-1.3.02.jar
 setLOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.7.1.jar
 set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.7.0.jar
 setLOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\serializer-2.7.0.jar
 set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik-all-1.6.jar
 setLOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xmlgraphics-commons-1.0.jar
 setLOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\avalon-framework-4.2.0.jar
 setLOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-io-1.1.jar
 setLOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-logging-1.0.4.jar
 set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar
 set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jar
 set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jar
 set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\fop-hyph.jar
 set LOCALCLASSPATH=%LOCALCLASSPATH%;%FOP_HYPHENATION_PATH%
 setLOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\barcode4j-fop-ext-0.20.5.jar
 set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\barcode4j.jar
  
 I have the last two jar files copied into the FOP\libfolder.
  
 When I run FOP from the command line I get:
  
 C:\PROGRA~1\FOPfop  c:\temp\invoice.foc:\temp\invoice.pdf
 May 18, 2006 2:06:46 PMorg.apache.fop.fo.ElementMappingRegistry findFOMaker
 WARNING: Unknown formatting objecthttp://barcode4j.krysalis.org/ns^barcode
 May 18, 2006 2:06:46 PM org.apache.fop.fo.ElementMappingRegistryfindFOMaker
 WARNING: Unknown formatting objecthttp://barcode4j.krysalis.org/ns^postnet
 May 18, 2006 2:06:47 PMorg.apache.fop.fo.flow.InstreamForeignObject 
 prepareIntr
 insicSize
 SEVERE: Intrinsic dimensions of  instream-foreign-objectcould not be 
 determined
  
 May 18, 2006 2:06:47 PMorg.apache.fop.fo.flow.InstreamForeignObject 
 prepareIntr
 insicSize
 SEVERE: Intrinsic dimensions of  instream-foreign-objectcould not be 
 determined
  
 What else to I need to set?
  
 Thanks,
  
 Rick
 



Jeremias Maerki


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



Re: Large table cell crashes fop92

2006-05-18 Thread Jeremias Maerki

On 19.05.2006 01:09:32 Perez wrote:
 In article [EMAIL PROTECTED],
  Jeremias Maerki [EMAIL PROTECTED] wrote:
 
  I was able to commit a change that avoids the NullPointerException.
  However, there's a problem remaining that I cannot fix quickly. Your
  markers may not be treated correctly or in other words: They won't be
  added for the cases a table-cell produces an empty area as on page 9 in
  your example. retrieve-marker might return the wrong values. Due to the
  obfuscation of your document I cannot easily see if it affects you.
  
  http://svn.apache.org/viewvc?rev=407614view=rev
  Jeremias Maerki
 
 Is there anything I can do differently?

It depends on the requirements for your document. Since I don't know
them I can't tell. You'll have to figure out yourself whether this
limitation is a problem for you.

 The marker thing I put in for 
 0.92 but I think I get the same crash under 0.20.5.

Really? 0.20.5's layout engine is working completely differently. I
can't imagine you get the same error.

  Does that mean that 
 the fox: extension has the same problem?

That's something else. The fox: extension have all not been
reimplemented in FOP 0.92beta. fox:outline has been replaced by the XSL
1.1 fo:bookmarks.


Jeremias Maerki


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



pdf x3

2006-05-18 Thread duschhaube

Hallo!



It is possible to create x3 pdf with fop? Or are there any plan to implemente 
this feature?



mfg thorsten

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