Getting arial font on PDF.

2008-12-19 Thread Binod Garg
Hi ,
 I want the PDF to render the font in Arial font. However when I am
specifying font-family:Arial , then I am not getting the fonts in Arial.
When I give it as font-family:Helvetica , then I am getting the fonts in
arial. This is as per behaviour mentioned at
http://xmlgraphics.apache.org/fop/trunk/fonts.html#Base-14+Fonts . Can
someone please explain me the reason of such behaviour. Can't I get the
fonts as Arial by specifying font-family:Arial .


Thanks,
Binod


fo:block in fo:table-cell

2008-12-19 Thread mitroiasi


Hi,

I am totally new to xsl:fo and FOP, and right now I have a problem. Maybe
the answer is simple, but I cannot find it.

I have a fo:block in a fo:table-cell which doesn't flow inside the cell, but
it is displayed in a straight line.
fo:table-row keep-together=always
fo:table-cell 
border-width=0.5pt border-left-style=solid
border-bottom-style=solid border-top-style=solid padding=2pt
fo:block 
text-align=right5/fo:block
/fo:table-cell
fo:table-cell 
border-width=0.5pt border-left-style=solid
border-bottom-style=solid border-top-style=solid padding=2pt
fo:blockXA 
78/fo:block
fo:blockLa li lu lu 
li la La li lu lu li la La li lu lu li la La li
lu lu li la La li lu lu li la La li lu lu li la La li lu lu li la La li lu
lu li la La li lu lu li la 
La li lu lu li 
la La li lu lu li la La li lu lu li la La li lu lu li
la La li lu lu li la La li lu lu li la La li lu lu li la La li lu lu li la
La li lu lu li la La li lu lu li la 
La li lu lu li 
la La li lu lu li la La li lu lu li la La li lu lu li
la La li lu lu li la La li lu lu li la 
/fo:block
/fo:table-cell
fo:table-cell 
border-width=0.5pt border-bottom-style=solid
border-top-style=solid padding=2pt
fo:block 
text-align=right20/fo:block
/fo:table-cell
fo:table-cell 
border-width=0.5pt border-bottom-style=solid
border-top-style=solid padding=2pt

fo:blockPieces/fo:block
/fo:table-cell
fo:table-cell 
border-width=0.5pt border-bottom-style=solid
border-top-style=solid padding=2pt

fo:block19.09.2008/fo:block
/fo:table-cell
fo:table-cell 
border-width=0.5pt border-right-style=solid
border-bottom-style=solid border-top-style=solid padding=2pt
fo:block 
text-align=right10,12 EUR/fo:block
/fo:table-cell
/fo:table-row

Can someone tell me where is the problem?


-- 
View this message in context: 
http://www.nabble.com/fo%3Ablock-in-fo%3Atable-cell-tp21090351p21090351.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: fo:block in fo:table-cell

2008-12-19 Thread Philip V

Hi,

I think you need to set

keep-together.within-column=always

on your fo:table-cell

Regards,

Phil

-- 
View this message in context: 
http://www.nabble.com/fo%3Ablock-in-fo%3Atable-cell-tp21090351p21094825.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Log Messages in FOP.

2008-12-19 Thread Philip V

Jeremias,

in regards to logging errors, was this ever implemented?

http://www.nabble.com/ErrorListener--0.95--td19203830.html#a19218919


Thanks,

-- 
View this message in context: 
http://www.nabble.com/Log-Messages-in-FOP.-tp21071120p21095650.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: 0.95 Acrobat Performance Problems

2008-12-19 Thread egibler

The font configuration should be attached (I used the 'Upload File...'
button, but don't know where the file goes).

Thanks!!!
Ed



That's just a font metrics file. It could still be that your
configuration file is set up so you get a CID font. Can we see the font
configuration, too?

http://www.nabble.com/file/p21096930/configuration.xml configuration.xml 
-- 
View this message in context: 
http://www.nabble.com/0.95---Acrobat-Performance-Problems-tp20774481p21096930.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: fo:block in fo:table-cell

2008-12-19 Thread Jeremias Maerki
Right, instead of keep-together=always. See also
http://xmlgraphics.apache.org/fop/faq.html#cells-overflow

On 19.12.2008 18:12:44 Philip V wrote:
 
 Hi,
 
 I think you need to set
 
 keep-together.within-column=always
 
 on your fo:table-cell
 
 Regards,
 
 Phil
 
 -- 
 View this message in context: 
 http://www.nabble.com/fo%3Ablock-in-fo%3Atable-cell-tp21090351p21094825.html
 Sent from the FOP - Users mailing list archive at Nabble.com.
 
 



Jeremias Maerki


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: table overflow onto page 2 into specific region

2008-12-19 Thread Jeremias Maerki
Not sure I've understood exactly what it is you need. But I'll try.

First of all, you simple need fo:table-header [1] and fo:table-footer 
[2] before your fo:table-body. That gives you headers and footers for
the table that is repeated on each page.

[1] http://www.w3.org/TR/xsl11/#fo_table-header
[2] http://www.w3.org/TR/xsl11/#fo_table-footer

An example:
  fo:table table-layout=fixed width=100%
fo:table-column number-columns-repeated=2 
column-width=proportional-column-width(1)/
fo:table-header
  fo:table-row
fo:table-cell
  fo:blockheader1/fo:block
/fo:table-cell
fo:table-cell
  fo:blockheader2/fo:block
/fo:table-cell
  /fo:table-row
/fo:table-header
fo:table-footer
  fo:table-row
fo:table-cell
  fo:blockfooter1/fo:block
/fo:table-cell
fo:table-cell
  fo:blockfooter2/fo:block
/fo:table-cell
  /fo:table-row
/fo:table-footer
fo:table-body
  fo:table-row
fo:table-cell
  fo:blockcell1/fo:block
/fo:table-cell
fo:table-cell
  fo:blockcell2/fo:block
/fo:table-cell
  /fo:table-row
  fo:table-row
fo:table-cell
  fo:blockcell3/fo:block
/fo:table-cell
fo:table-cell
  fo:blockcell4/fo:block
/fo:table-cell
  /fo:table-row
/fo:table-body
  /fo:table

Only now, it's getting tricky. You say you need changing content in the
header and footer. That's what table-markers [3][4] from XSL 1.1 are for.
But unfortunately, this hasn't been implemented, yet. So the only thing
you can try is putting your header and footer content in the
region-before and the region-after of the page. There you can work with
fo:retrieve-marker [5] to access content you specify in fo:marker [6]
elements.

[3] http://www.w3.org/TR/xsl11/#fo_retrieve-table-marker
[4] http://www.w3.org/TR/xsl11/#d0e14681
[5] http://www.w3.org/TR/xsl11/#fo_retrieve-marker
[6] http://www.w3.org/TR/xsl11/#fo_marker

HTH

On 18.12.2008 16:24:11 Chakravarty, Abhishek wrote:
 Hi
 
 Is there a way to ensure in my stylesheet that a table overflows into
 second page into the area which is prespecified for it only?
 
 As in I have the page setup as the header followed by a table followed
 by footer. But if the table overflows then is it possible to have it
 onto the second page in the same region so that my second page would now
 look like header followed by table (the content of which is from the
 previous page table overflow) and then the footer.
 
 Also none of the info is static i.e. headers and footers can change
 depending on the content being pulled in from the xml (but the table
 layout remains the same).
 
 Regards
 Abhishek




Jeremias Maerki


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: XSL - FOP DOC (Word) - Zoom

2008-12-19 Thread Jeremias Maerki
This is not currently possible. First, we'd have to figure out whether
that's possible in RTF at all (I haven't checked) and then it would have
to be implemented (with a FO extension).

On 19.12.2008 07:33:07 Equatech / Toufic DIAB wrote:
 Hello,
 
  
 
 I am generating a RTF Document (.doc) by using FOP and an XSL.
 
  
 
 The generated  document has a default zoom of 100%.
 
 
 
  
 
 Can I change this zoom, and make the document always open with a 150% zoom ?
 
 If yes, please tell me what I have to add to my code.
 
 Here is a piece of the XSL used to generate the .doc :
 
  
 
  
 
 ?xml version=1.0 encoding=utf-8?
 
 xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
 
 xsl:output method=xml indent=yes/
 
 xsl:template match=/
 
 fo:root
 
 fo:layout-master-set
 
 fo:simple-page-master
 master-name=A4-portrait page-height=29.7cm page-width=21.0cm
 margin=2cm
 
  
 fo:region-body/
 
 /fo:simple-page-master
 
 /fo:layout-master-set
 
 fo:page-sequence
 master-reference=A4-portrait
 
 xsl:for-each
 select=//Produit
 
 fo:flow
 flow-name=xsl-region-body
 
  
 
  
 
  
 
 Toufic DIAB
 
 Equatech (Filiale IT d'Equadis SA)
 
 * :  +41228190746
 
 * : t.d...@equa-tech.com
 
  
 
  
 




Jeremias Maerki


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Getting arial font on PDF.

2008-12-19 Thread Jeremias Maerki
You can't just use any font. By default, only the base 14 fonts are
available. If you want to use additional fonts, you have to configure
them as described in http://xmlgraphics.apache.org/fop/latest/fonts.html.
In the simplest case, you just use the auto-detect/ element to let FOP
use all fonts available from your operating system.

HTH

On 19.12.2008 12:00:20 Binod Garg wrote:
 Hi ,
  I want the PDF to render the font in Arial font. However when I am
 specifying font-family:Arial , then I am not getting the fonts in Arial.
 When I give it as font-family:Helvetica , then I am getting the fonts in
 arial. This is as per behaviour mentioned at
 http://xmlgraphics.apache.org/fop/trunk/fonts.html#Base-14+Fonts . Can
 someone please explain me the reason of such behaviour. Can't I get the
 fonts as Arial by specifying font-family:Arial .
 
 
 Thanks,
 Binod




Jeremias Maerki


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: 0.95 Acrobat Performance Problems

2008-12-19 Thread Jeremias Maerki
Just as I thought. You're doing this:
font kerning=yes 
embed-url=file:///opt/sigma_tomcat/webapps/sigma/WEB-INF/fonts/ocra.ttf
  font-triplet name=ocra style=normal weight=normal/
/font

This bypasses the XML font metric files. Currently, it's not possible to
tell FOP this way to use WinAnsi encoding. You have to create an XML
font metrics file for each font as described in [1] (using -enc ansi,
just as in FOP 0.20.5 although you'll have to recreate the files).
Then you'll have to do this:

font 
metrics-url=file:///opt/sigma_tomcat/webapps/sigma/WEB-INF/fonts/ocra.ttf.xml
  kerning=yes
  embed-url=file:///opt/sigma_tomcat/webapps/sigma/WEB-INF/fonts/ocra.ttf
  font-triplet name=ocra style=normal weight=normal/
/font

HTH

[2] http://xmlgraphics.apache.org/fop/trunk/fonts.html#truetype-metrics

On 19.12.2008 20:20:01 egibler wrote:
 
 The font configuration should be attached (I used the 'Upload File...'
 button, but don't know where the file goes).
 
 Thanks!!!
 Ed
 
 
 
 That's just a font metrics file. It could still be that your
 configuration file is set up so you get a CID font. Can we see the font
 configuration, too?
 
 http://www.nabble.com/file/p21096930/configuration.xml configuration.xml 
 -- 
 View this message in context: 
 http://www.nabble.com/0.95---Acrobat-Performance-Problems-tp20774481p21096930.html
 Sent from the FOP - Users mailing list archive at Nabble.com.
 



Jeremias Maerki


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Log Messages in FOP.

2008-12-19 Thread bonekrusher

Hi Jeremias,

I did, forgot it was in the trunk.

Thanks,

Phil

-- 
View this message in context: 
http://www.nabble.com/Log-Messages-in-FOP.-tp21071120p21098035.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Log Messages in FOP.

2008-12-19 Thread Jeremias Maerki
I thought you tried it already. Not sure what you mean. The whole thing
is available in FOP Trunk and will be in the next release. It's
described here: http://xmlgraphics.apache.org/fop/trunk/events.html

On 19.12.2008 18:55:41 Philip V wrote:
 
 Jeremias,
 
 in regards to logging errors, was this ever implemented?
 
 http://www.nabble.com/ErrorListener--0.95--td19203830.html#a19218919
 
 
 Thanks,
 
 -- 
 View this message in context: 
 http://www.nabble.com/Log-Messages-in-FOP.-tp21071120p21095650.html
 Sent from the FOP - Users mailing list archive at Nabble.com.
 
 



Jeremias Maerki


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org