Re: Vertical alignment

2005-07-26 Thread Dirk Bromberg

Hi,

display-align=center at the cell works!


fo:table-cell  display-align=center padding-start=1pt  
border-style=solid
   fo:block   color=#38528D 
font-family={$font.family} font-size=14pt 

   Text1
   /fo:block
/fo:table-cell

Dirk


Renan Collin wrote:


Hello,

It seems this functionnality is not implemented yet on fop 0.20.5.

Renan

Samuel Remacle a écrit:


Hello,
 
My problem is the following, I'd like to align vertically a text 
inside a table-cell but after searching the web I couldn't find the 
property to do that. So I would be glad if you could help me, how do 
I put the text in a table-cell, at the middle of that table-cell?
 
Thanks
 
Samuel
- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 







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



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



Arabic PDF

2005-07-26 Thread mohamed salah
Hello , 
Can any body tell me how to create arabic PDF using fop?I created one by empeding Arabic font. but the text is not ordered or shaped. Why this happens? 
How is responsible for these tasks (ordering and shaping for arabic text) adobe reader or fop?
Please Advise!Thanks,vvEng. Mohamed Salah SayedComputer and System EngineereMail: [EMAIL PROTECTED]Tel: 
0124075487^^Express yourself instantly with MSN Messenger! MSN Messenger Download today it's FREE!


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



Re: Resizing SVG

2005-07-26 Thread J.Pietschmann

Samuel Remacle wrote:
application is ok. But after when I generate a PDF file from my application the 
SVG image is too big for an A4 document. So I'd like to know if there's a way to 
resize my SVG image keeping the proportions.


Generate your SVG with a width and heigth attribute on your to level
svg:svg element, both in either cm, in or pt but not in pixel (no
measurement unit). The height and width should represent the actual
measurements in the PDF. Use the same heigth and width on the
fo:external-graphic or fo:instream-foreign-object in the FO source.

J.Pietschmann

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



Re: Problems with embedded font

2005-07-26 Thread Jeremias Maerki
I think your problem simply is about not having a font-triplet for the
bold variant of the font (see error message). You will need to create an
additional XML font metric file from arialbd.ttf and register it
separately like this.

font metrics-file=ttfcyrillic-bold.xml kerning=yes 
embed-file=file:///C:/WINNT/Fonts/arialbd.ttf
   font-triplet name=Cyrillic style=normal weight=bold/
/font

On 26.07.2005 13:53:17 Dobri Kitipov wrote:
snip/
 font metrics-file=ttfcyrillic.xml kerning=yes 
 embed-file=file:///C:/WINNT/Fonts/arial.ttf
 
 font-triplet name=Cyrillic style=normal weight=normal/
 
  /font

snip/

 [ERROR] unknown font Cyrillic,normal,bold so defaulted font to any


Jeremias Maerki


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



Re: AW: build dynamic tables with FOP

2005-07-26 Thread Andreas L Delmelle

On Jul 26, 2005, at 19:13, [EMAIL PROTECTED] wrote:

Hi,

... something still seems to be wrong, when i do so, the PDF gets  
generated, but no table is build, and i found this exception in the  
logs:


java.lang.ArrayIndexOutOfBoundsException: -2
at  
org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.java 
:130)

snip /


Where is this exception thrown and why ?! The XSL:FO code is:

xsl:template match=table
  fo:table border=0.5pt solid black table-layout=auto
width=100% space-before.optimum=1pt
space-after.optimum=2pt
xsl:param name=columnsCounter  
select=/child::tr/attribute::maxCols/
fo:table-column width=30  
number-columns-repeated={$columnsCounter}/


FOP 0.20.5 doesn't implement 'number-columns-repeated' --nor  
table-layout=auto--, but this just isn't at all clear from the  
exception.


Apart from implementing the property yourself in FOP 0.20.5 --which  
isn't hard to do actually-- your only option seems to be to create  
separate fo:table-columns via XSLT. Based on your example, this can be  
achieved like so:


xsl:template match=table
  fo:table ...
xsl:call-template name=columns
  xsl:with-param name=pCols select=/tr/@maxCols /
/xsl:call-template
!-- remainder of table definition --
  /fo:table
/xsl:template

xsl:template name=columns
  xsl:param name=pCols select=1 /

  xsl:if test=$pCols gt; 0
fo:table-column ...
xsl:call-template name=columns
  xsl:with-param name=pCols select=$pCols - 1 /
/xsl:call-template
  /xsl:if
/xsl:template

The $pCols parameter could just as easily be derived from the structure  
of the table, say:


  xsl:with-param name=pCols select=count(tr[1]/*) /

to have it match the number of child elements in the first row of the  
table in scope.



HTH!

Greetz,

Andreas


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



getPageCount and FOP 1.0dev

2005-07-26 Thread Manuel Mall
Jeremias post on fop-dev suggesting to push for a release made me curious to
check out if the new trunk code will work with our application. Downloading
it with subversion and building it with ant was not a big problem (These
things never seem to be 100% straightforward). Some of the interfaces have
changed and what was ...apps.Driver is now sort of ...apps.Fop. Not such a
big deal especially as examples exist, just a nuisance if you only want to
see if the new trunk code works with what we have got as it means code
changes to existing code. However I am stuck with how to replace the old
driver.getResults().getPageCount(). Is there something equivalent in
1.0dev?

Manuel


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