RE: [iText-questions] Fix for xml horizontalline

2004-04-15 Thread Bruno
Quoting Steven Balthazor <[EMAIL PROTECTED]>: > Taking your note about allowing a Graphic object to be added to > something else, I looked through the source code I have available and it > looks like Phrase might be a good place. Specifically, the > Phrase.add(int index, Object o) method allows a

RE: [iText-questions] Fix for xml horizontalline

2004-04-14 Thread Steven Balthazor
Quoting Bruno: > > What if your Section spans multiple pages? > Aren't you adding the Graphic object on the wrong page? > I don't have a lot of time to look into the problem, > but maybe it would be better to allow a Graphic object > to be added to a Section, or even better: to implement > 'horiz

Re: [iText-questions] Fix for xml horizontalline

2004-04-14 Thread Bruno
Quoting Steven Balthazor <[EMAIL PROTECTED]>: > === > if (ElementTags.HORIZONTALRULE.equals(name)) { > Graphic hr = new Graphic(); > hr.setHorizontalLine(1.0f, 100.0f); > try { > document.add(hr); > } > cat

[iText-questions] Fix for xml horizontalline

2004-04-13 Thread Steven Balthazor
I was having problems getting horizontalline's working using the xml input technique. I have managed to get it working for my needs; however I do not know if it is technically correct. I post this as a possible solution. Passing the following xml would error out when passed to SAXiTextHandler: