Hi,

Steffen Stundzig wrote:

>Hi bruno,
>
>On Thu, 07 Mar 2002 08:36:38 GMT
>[EMAIL PROTECTED] wrote:
>
>>Steffen Stundzig writes:
>>
>>>Perhaps could we push this in the super class HeaderFooter?
>>>
>>But what if different writers are listening to the same
>>Document object. The HTML writer doesn't know about pagenumbers,
>>but the PDF writer could be on a whole different page than the
>>RTF writer... If they all use the same HeaderFooter class,
>>this would lead to errors... 
>>
>
>If the page number is the only problem, than it could be solved by an special 
>'PageNumber' class as 'Element' in iText.
>In RTF I've coded this as RTFPageNumber.
>
>So, if I wish to insert a pagenumber in the table in my footer, I must adding an 
>instance of this special 'PageNumber' class and the
>writers can decide what is to do for it.
>
>E.g. the HTMLWriter ignores it, the PdfWriter writes the current concrete pagenumber 
>and the RtfWriter writes an RtfField.
>
I think I agree with Bruno on this one. If you want simple 
headers/footers then you can use the basic HeaderFooter object.
If you want more complex headers/footers you have to use the rtf 
specific classes. But these classes are built around the rtf document 
model. Therefore I would say that they don't belong in the more general 
iText base system.

Greetings,
Mark


_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to