margins

2006-06-15 Thread Rick Roen








FOP trunk

 

I’m confused by the page margins I am
getting with the xslt below.

 

I would like to get 1cm margins on all sides with
the footer taking 5mm and the body above that by 5mm.

 

What I am getting when I render to a pdf is 1cm
top, approx 1.5cm right and left, and about 2.5cm bottom. The printer has a
small margin, but it is an ink-jet, so it is minimal.

 

Can someone tell me where I am going wrong?

 

Thanks,

 

Rick

 

 

    

    

    

    

    

    

    fo:simple-page-master>

    fo:layout-master-set>

    

    

    

    

    

    

    fo:flow>

    fo:page-sequence>

    fo:root>

    xsl:template>








Re: fo:page-number

2006-06-15 Thread Chris Bowditch

[EMAIL PROTECTED] wrote:


Hello List,

I'm trying to get a alphabetic character instead of a number as
fo:page-number. I think I saw it once somewhere, but can'nt find it yet
where it is needed.
For Instance instead of 1, 2, 3 I want to have A, B, C written on my FOP
generated pages.


You need to set the format property on fo:page-sequence, i.e.




Chris



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



RE: page-number

2006-06-15 Thread Pascal Sancho
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> 
> Hello List,
> 
> I'm trying to get a alphabetic character instead of a number 
> as fo:page-number. I think I saw it once somewhere, but 
> can'nt find it yet where it is needed.
> For Instance instead of 1, 2, 3 I want to have A, B, C 
> written on my FOP generated pages.

Under FOP 0.9x, you can use the format property on (same as in xslt on
xsl:number)

Under FOP 0.2x... Need to upgrade!

Pascal

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



fo:page-number

2006-06-15 Thread news
Hello List,

I'm trying to get a alphabetic character instead of a number as
fo:page-number. I think I saw it once somewhere, but can'nt find it yet
where it is needed.
For Instance instead of 1, 2, 3 I want to have A, B, C written on my FOP
generated pages.

Thanks your!

with best regards,
jan

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



Re: variable containing the page number

2006-06-15 Thread Glen Mazza

Eivind Andreassen wrote:


Hi

I want to put the value of fo:page-number into a variable because i 
have different static-content depending on what page number it is. I 
want to use this variable to check what page number it is. Do anyone 
know how to do this?






http://marc.theaimsgroup.com/?l=fop-user&m=113078517606736&w=2

Glen



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



Re: FOP or batik problems to convert fo files

2006-06-15 Thread harinisrinivas
I am encountering a problem while generating the pdf..
This is the error i am getting..

org/apache/batik/util/XMLResourceDescriptor 
org.apache.fop.svg.SVGElementMapping.setupSVG SVGElementMapping.java(72) 
org.apache.fop.svg.SVGElementMapping.addToBuilder SVGElementMapping.java(134) 
org.apache.fop.apps.Driver.addElementMapping Driver.java(439) 
org.apache.fop.apps.Driver.addElementMapping Driver.java(450) 
org.apache.fop.apps.Driver.setupDefaultMappings Driver.java(314) 
org.apache.fop.apps.Driver. Driver.java(222) 

I earlier encountered a similar NoClassDef Found error for a different file.For 
which i replaced the existing batik.jar with the version 1.5-fop-0.20-5. Now i 
am getting this.Any suggestions?

--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/message/fop-users@xmlgraphics.apache.org/1754866.html

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



RE: TTF and OTF fonts in FOP 0.92

2006-06-15 Thread Debasish Jana
Hi:

Many thanks for your prompt reply. We have another observation. If we embed
a TTF font while rendering PDF through FOP, and if don't embed the TTF font,
there is a difference noticed. If the PDF reader takes up font from
installed fonts (in case desired font is not embedded), the font looks
better (and different) than the case when the font is embedded.

Our question is whether during rendering embedding is causing this
difference. What could be a workaround in case we want embedding of the
desired font looking like exactly same when picked up from installed fonts
(unembedded case).

Thanking you in advance,

Regards,

Debasish Jana


-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 14, 2006 3:36 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: TTF and OTF fonts in FOP 0.92

Debasish Jana wrote:
> While rendering fonts (TTF) from XSl-fo to PDF, the fonts are not shown as
> smooth as it should be.
...
> After seeing it in Acrobat Reader, by making smooth text option off, the
> texts look much better. 

Is this "smooth text" option an option in Acrobat Reader? If so,
that's not a problem with FOP but rather with the combination of the
font, your display and/or the graphics driver, and perhaps Acrobat
Reader itself.


> It seems somehow the smoothening of the characters in the specified font
is
> not happening properly.

Well, I used to associate "smoothing" for fonts with "anti-aliasing".
This is known to give bad results under for some fonts on mainstream
computer displays and certain other circumstances. A font with
"Condensed" in its name is a candidate for such a situation, for
reasons given further down.

The print-out should be ok, because printers generally have a much
higher resolution than computer displays.

> What could be the reason? Are we missing something in setting up the
> configurations?

I don't think there is anything FOP can do in this situation. If you
want good results on a computer display, use a font which has a stroke 
width of at least one display pixel for mainstream displays (a 19"
at 1280x1024 has ~84dpi) for common font sizes (12pt). The letters
should mainly use exactly horizontal and vertical strokes. Thin,
slightly slanted lines fare horrible if anti-aliasing is enabled.

> Another question, is FOP 0.92 using SVG to render fonts in PDF?

That's a strange question. Why do you ask this? And no, FOP doesn't
render fonts in regular FO content at all; rather, the glyph definitions
are embedded (for user fonts) into the PDF. Rendering is done by the PDF
viewer, which usually delegates the job to the graphics system on the
host machine.

> Also, how do I incorporate OTF?

OTF is an enhancement of the TTF format. You can try to handle it
exactly like a TTF, i.e. generating a metrics file using TTFFile
etc. If you get an error (likely), the answer is "no chance, pal".
Note that not getting an error while generating a metrics file
doesn't necessarily mean all is well.
Some font editors are said to be able to downgrade OTF fonts to TTF
automatically with reasonably good results, you might want to ask
on an appropriate forum.

J.Pietschmann



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