Discussion:
AW: checkbox in pdf
Zmitko, Jan
2003-06-18 11:56:37 UTC
Permalink
thanks, this is that i need. I´ve tried it with image, but i need some
checkboxes and i think it´s not so perfermant and so i´ll choose the way
with unicode.

Have a nice day,

Jan

-----Ursprüngliche Nachricht-----
Von: RBonazzo [mailto:***@sardiniapoint.it]
Gesendet: Mittwoch, 18. Juni 2003 13:43
An: fop-***@xml.apache.org
Betreff: R: checkbox in pdf
Wichtigkeit: Hoch


Hello,
Here the code I use to implement checkboxes in my application.

<fo:block top="6pt" line-height="20pt" space-after="0pt">
<fo:inline space-after.optimum="10pt" font-family="ZapfDingbats"
font-size="10pt">&#x274F;</fo:inline>
</fo:block>
I hope this help you
Regards
Rinaldo
***@sardiniapoint.it

-----Messaggio originale-----
Da: Zmitko, Jan [mailto:***@Dresdner-Bank.com]
Inviato: mercoledì 18 giugno 2003 12.59
A: fop-***@xml.apache.org
Oggetto: checkbox in pdf


Hello,

I´ve read in FAQ about embeding special characters. I have to implement
some checkboxes. I´ve tried the following code:

<fo:block>
<fo:inline font-family="Helvetica">&#x2612;</fo:inline>
<fo:inline font-family="ITC Zapf Dingbats">&#x2612;</fo:inline>
<fo:inline font-family="Symbol">&#x2612;</fo:inline>
</fo:block>

But in all cases I see #. Can anybody help me?

Thank a lot,

Jan Zmitko

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-***@xml.apache.org
For additional commands, e-mail: fop-user-***@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-***@xml.apache.org
For additional commands, e-mail: fop-user-***@xml.apache.org
Torsten Erler
2003-06-18 13:25:52 UTC
Permalink
I thought do you need SOME checkboxes but afaik Zapf contains only the
unchecked one (with different dropping shadow).

To use external graphic shouldn't be a perfomance problem I think (the glyph
must also been read from the font file!).
For best quality you can use SVG to draw the boxes your'e need.

e.g. a checked one:

<fo:instream-foreign-object>
<svg:svg width="25" height="25" xml:space="preserve">
<svg:g style="fill:none; stroke:black; stroke-width:2">
<svg:rect x="0" y="0" width="20" height="20"/>
<svg:line x1="4" y1="10" x2="10" y2="17"/>
<svg:line x1="10" y1="17" x2="17" y2="3"/>
</svg:g>
</svg:svg>
</fo:instream-foreign-object>

On the first look it will be a few more code in your template against only
'&#x274F;'. But at the end, SVG does basically the same as the font. It
describes how to draw the character.

Store it in a seperate file and refer it via external-graphic or insert it
directly into your template.
Draw your own checkboxes as you need it and U're without any handicap from
font-side.

gReetZ Torsten
-----Original Message-----
Sent: Mittwoch, 18. Juni 2003 13:57
Subject: AW: checkbox in pdf
thanks, this is that i need. I´ve tried it with image, but i need some
checkboxes and i think it´s not so perfermant and so i´ll
choose the way
with unicode.
Have a nice day,
Jan
Victor Mote
2003-06-18 15:34:39 UTC
Permalink
Post by Zmitko, Jan
thanks, this is that i need. I´ve tried it with image, but i need some
checkboxes and i think it´s not so perfermant and so i´ll choose the way
with unicode.
The following document (available from the Examples menu item on the FOP web
site) shows the glyphs available in the base-14 fonts, and their equivalent
code-points:
http://xml.apache.org/fop/fo/fonts.fo.pdf

Victor Mote

Loading...