RE: Checkbox in the pdf doc

2004-03-09 Thread Andreas L. Delmelle
 -Original Message-
 From: Nishma Jain [mailto:[EMAIL PROTECTED]

 By the way, do you happen to know any font that supports
 glyph for a checked checkbox?


Hi,

Sorry, haven't found any yet (must admit I didn't actually search a lot for
them...), but last night the possibility entered my mind of combining two
Unicode cp's --an empty check-box and an 'X' or something (?)

Cheers,

Andreas


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



Re: Checkbox in the pdf doc

2004-03-08 Thread Clay Leeds
On Mar 8, 2004, at 12:20 PM, Nishma Jain wrote:
Does anybody know how to generate check boxes in the pdf document? I 
have a
boolean data which I want to show as on or off checkbox just as HTML 
check
box.

Thanks,
Nishma
This has been asked before. Unfortunately, FOP (and the XSL-FO 1.0 
spec) currently does not accommodate for checkboxes (as in FORM 
element: checkbox). These can be added using a post-processor (such as 
iText, listed toward the bottom of the FOP Other Resources page [1]). 
If you just want a character which looks like a check box, you can 
check into the FOP Special Characters page[2].

Good luck!
Web Maestro Clay
[1]
http://xml.apache.org/fop/resources.html
[2]
http://xml.apache.org/fop/fo.html#xml-special-chars
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Checkbox in the pdf doc

2004-03-08 Thread Nishma Jain
Thanks Andreas. It helped a lot.

By the way, do you happen to know any font that supports 
glyph for a checked checkbox?

Nishma


-Original Message-
From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 1:42 PM
To: [EMAIL PROTECTED]
Subject: RE: Checkbox in the pdf doc


 -Original Message-
 From: Nishma Jain [mailto:[EMAIL PROTECTED]

 Does anybody know how to generate check boxes in the pdf
 document? I have a
 boolean data which I want to show as on or off checkbox just as HTML check
 box.


Hi,

There are several options:

- use SVG to draw a checked and a non-checked box depending the boolean
value
- find a font that has glyphs for the related Unicode cp's (enough basic
non-checked boxes, but the checked ones don't seem to be readily available
in the basic fonts)

As for myself, I mainly use the latter and my imagination --for example: the
basic ZapfDingbats font supports a lot of empty checkboxes from which you
can choose one, and for the 'checked' checkbox, you have a choice of many
other symbols...

Hope this helps!

Cheers,

Andreas


-
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: checkbox

2003-07-10 Thread Torsten Erler
This is the address where the glyph is located in the pdf-fonts
'ZapfDingbats' and has nothing to do with your System Fonts (WingDings...)
and the Windows encoding Table.
The Character Map can be used for locating characters inside system fonts
(like TrueType Font inside your Windows-Font folder).

For special Characters inside the PDF Fonts
see: http://xml.apache.org/fop/fo.html#xml-special-chars


or: http://xml.apache.org/fop/fo/fonts.fo.pdf
for characters and its hex value in the Base14 fonts, delivered by the base
fop version.

cu Torsten

 -Original Message-
 From: Todtenhaupt, Susann
 [mailto:[EMAIL PROTECTED]
 Sent: Donnerstag, 10. Juli 2003 11:28
 To: '[EMAIL PROTECTED]'
 Subject: AW: checkbox


 Correct, this view is also possible through the
 office-programs like word,
 ppt etc. but can you explain to me, where the value 274F (see
 further below)
 results from?

 -Ursprüngliche Nachricht-
 Von: Müller, Markus [mailto:[EMAIL PROTECTED]
 Gesendet: Thursday, July 10, 2003 10:47 AM
 An: '[EMAIL PROTECTED]'
 Betreff: AW: checkbox

 Hi,

 First, #x means character code in hexadecimal, correct.
 Second, using Windows' charmap.exe you can browse your fonts.
 In Wingdings the characters 0x70 and 0x78 show an unchecked / checked
 checkbox.

 Markus


 $ -Ursprüngliche Nachricht-
 $ Von: Todtenhaupt, Susann
 $ [mailto:[EMAIL PROTECTED]
 $ Gesendet: Donnerstag, 10. Juli 2003 10:39
 $ An: '[EMAIL PROTECTED]'
 $ Cc: '[EMAIL PROTECTED]'
 $ Betreff: AW: checkbox
 $
 $
 $ Hello!
 $
 $ I've never before embedded special symbols in fo. Why do you
 $ write #x?
 $ Does the x mean hexadecimal? I'm wondering because I've
 $ tried to find the
 $ symbol by looking for a symbol from ZapfDingbats with 274F
 $ (hex) in my
 $ window-system, but couldn't find it. Can you give more
 $ support, please? :-)
 $ thanx in advance!!
 $
 $ suse
 $
 $ -Ursprüngliche Nachricht-
 $ Von: Torsten Erler [mailto:[EMAIL PROTECTED]
 $ Gesendet: Tuesday, July 08, 2003 9:42 AM
 $ An: [EMAIL PROTECTED]
 $ Betreff: RE: checkbox
 $
 $ Hi,
 $
 $ either you use the (unchecked) checkbox from ZapfDingbats Font
 $
 $ fo:inline font-family=ZapfDingbats
 $ font-size=10pt#x274F;/fo:inline
 $
 $ or draw it by yourself (svg requires batik.jar) like that:
 $
 $ !-- checked checkbox (50% scaled down) --
 $ fo:instream-foreign-object width=11pt height=11pt
 $   svg:svg width=22 height=22 xml:space=preserve
 $ svg:g transform=scale(.5) style=fill:none; stroke:black;
 $ stroke-width:2
 $   svg:rect x=0 y=2 fill=black width=20 height=20
 $ stroke-width=1/
 $   svg:rect x=2 y=0 fill=white width=20 height=20
 $ stroke-width=1/
 $   svg:line x1=6 y1=10 x2=12 y2=17/
 $   svg:line x1=12 y1=17 x2=20 y2=3/
 $ /svg:g
 $   /svg:svg
 $ /fo:instream-foreign-object
 $
 $ cu Torsten
 $
 $  -Original Message-
 $  From: Todtenhaupt, Susann
 $  [mailto:[EMAIL PROTECTED]
 $  Sent: Dienstag, 8. Juli 2003 08:39
 $  To: '[EMAIL PROTECTED]'
 $  Subject: checkbox
 $ 
 $ 
 $  Hi @ all!
 $ 
 $  How is it possible to create with xsl:fo checkboxes in a
 pdf-file?
 $ 
 $  Thanx in advance!
 $ 
 $ 
 $ 
 $
 -
 $  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]
 $

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



RE: checkbox

2003-07-08 Thread Torsten Erler
Hi,

either you use the (unchecked) checkbox from ZapfDingbats Font

fo:inline font-family=ZapfDingbats font-size=10pt#x274F;/fo:inline

or draw it by yourself (svg requires batik.jar) like that:

!-- checked checkbox (50% scaled down) --
fo:instream-foreign-object width=11pt height=11pt
  svg:svg width=22 height=22 xml:space=preserve
svg:g transform=scale(.5) style=fill:none; stroke:black;
stroke-width:2
  svg:rect x=0 y=2 fill=black width=20 height=20
stroke-width=1/
  svg:rect x=2 y=0 fill=white width=20 height=20
stroke-width=1/
  svg:line x1=6 y1=10 x2=12 y2=17/
  svg:line x1=12 y1=17 x2=20 y2=3/
/svg:g
  /svg:svg
/fo:instream-foreign-object

cu Torsten

 -Original Message-
 From: Todtenhaupt, Susann
 [mailto:[EMAIL PROTECTED]
 Sent: Dienstag, 8. Juli 2003 08:39
 To: '[EMAIL PROTECTED]'
 Subject: checkbox


 Hi @ all!

 How is it possible to create with xsl:fo checkboxes in a pdf-file?

 Thanx in advance!


 -
 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: checkbox in pdf

2003-06-18 Thread Torsten Erler
Hi

AFAIK neither Helvetica nor the other fonts youv'e tried out, contain this
glyph so U've to use a font which has this character at this address.
Unfortunality I cant help you which font has it

but I think another solution would be to create a simple graphic (box.gif)
which can be scaled to your requested font size and use it with
fo:external-graphic tag.

hope it helps

 -Original Message-
 From: Zmitko, Jan [mailto:[EMAIL PROTECTED]
 Sent: Mittwoch, 18. Juni 2003 12:59
 To: [EMAIL PROTECTED]
 Subject: 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: checkbox in pdf

2003-06-18 Thread Torsten Erler
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-
 From: Zmitko, Jan [mailto:[EMAIL PROTECTED]
 Sent: Mittwoch, 18. Juni 2003 13:57
 To: '[EMAIL PROTECTED]'
 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


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



RE: checkbox in pdf

2003-06-18 Thread Victor Mote
Zmitko, Jan wrote:

 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


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