Re: Checkboxes, ThinkThin borders, Cell attributes
Bertrand Delacretaz <[email protected]> Sat, 28 Jun 2003 07:39:48 +0200
| Newsgroups | gmane.text.xml.jfor.general |
|---|---|
| Message-ID | <[email protected]> |
Le Samedi, 28 juin 2003, =E0 02:01 Europe/Zurich, Bruce Wexler a =E9crit = : > ...We are just using the JFor for rtf output only and not using=20 > Cocoon.... You don't need to use Cocoon - my point was that the RTF API examples=20 of jfor are weak, while the XSL-FO examples are much more complete. If=20= you want to know more about the RTF API, you might have to study what=20 happens when the XSL-FO examples are converted (from the command line). You can also have a look at how the converter package uses the RTF API,=20= as examples. I'm copying the rest of your questions to the list in case someone=20 wants to have a look at them - I think there are few people using the=20 RTF API directly though, so you might need to dig deeper yourself in=20 case no one wants to answer (see also=20 http://codeconsult.ch/bertrand/archives/000072.html). -Bertrand > I am having problems with: > > Trying to set the page margins. RtfFile doesn't appear to be able to=20= > work with RtfPage/RtfPageArea. I tried many things, this was the=20 > closest I came: > > RtfFile f =3D new RtfFile(out); > RtfAttributes pattr =3D new RtfAttributes(); > pattr.set(RtfPage.MARGIN_LEFT);=09 > //RtfPageArea pa =3D f.startPageArea(pattr); > RtfDocumentArea rda =3D f.startDocumentArea(); > RtfSection sect =3D rda.newSection(); > RtfParagraph para =3D sect.newParagraph(); > RtfParagraph p =3D null; > > Trying to set a border style on a table row: > > RtfAttributes tableAttr =3D new RtfAttributes(); > tableAttr.set(BorderAttributesConverter.BORDER_THIN_THICK_SMALL); > tbl =3D sect.newTable(new DummyTableColumnsInfo()); > RtfTableRow row =3D tbl.newTableRow(tableAttr); > > I've also tried to see if I could change a bullet to a checkbox but=20 > can't see where the library provides for characters like that. The=20 > javadocs I created are sparse, and your examples aren't very complete. > ... ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01