You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Yan, Chester (CBS)" <Ch...@cbs.gov.on.ca> on 2002/03/04 15:13:26 UTC
RE: How to draw a text box and a check box
Dear my friend,
Do you know how to draw a text box or check box by using FO?
Thank you very much.
Have a great day!
Chester
java and fop again
Posted by Fischer Tibor <fi...@freemail.hu>.
hi
i tried to implement using fop in java, like this:
Driver driver = new Driver();
driver.setRenderer(Driver.RENDER_PDF);
InputHandler inputHandler = new XSLTInputHandler(new
File(xmlFile), new File(xslFile));
XMLReader parser = inputHandler.getParser();
driver.setOutputStream(new FileOutputStream(outputFile));*/
driver.render(parser, inputHandler.getInputSource());
but after the 2nd row (driver.setRenderer(Driver.RENDER_PDF);) i got an
error message: [ERROR]: Logger not set
i'm using fop 20.1
what should i do to get this thing work??
Fishy
Re: How to draw a text box and a check box
Posted by TJ Smith <tj...@tjinc.com>.
Chester:
Easiest way is to use the Zapf-Dingbats font to represent checked/unchecked
radio buttons and check boxes. A checked radio button is created:
<fo:inline font-family="ZapfDingbats">l</fo:inline>
unchecked:
<fo:inline font-family="ZapfDingbats">m</fo:inline>
However, this seems to work only in FOP 0.20.1 :-( See my posting titled
"Disappearing fonts?"
TJ
----- Original Message -----
From: "Yan, Chester (CBS)" <Ch...@cbs.gov.on.ca>
To: <fo...@xml.apache.org>
Sent: Monday, March 04, 2002 9:13 AM
Subject: RE: How to draw a text box and a check box
> Dear my friend,
>
> Do you know how to draw a text box or check box by using FO?
> Thank you very much.
>
> Have a great day!
> Chester
>