RTF parsing
- From: "Vikas" <vikas@xxxxxxxxxxxx>
- Date: Wed, 2 Aug 2006 13:31:06 +0530
Hello Everyone
I am trying to create a RTF parser which can automatically recoganize
the header and footer.
Infact one of my client uses our converstion software which converts
RTF to PDF. but the problem is if the rtf document has header and
footer it will not be automatically handled. User has to manually add a
code to add header and footer which infact is not recomended from user
point of View. So to make the story short what i am planning to do is
to automatically retrieve the header information from RTF and put it in
to PDF canvas. But i am not much sure how to do this.
When i open the RTF in notpad i can see the header inforamtion starts
from \Header and ends till /par}. But the problem is if I parse the
document from /Header to \par} it will solve the purpose if customer
has one line of header. But if say customer uses two lines of header
with an space between two lines then i can see two " \par}". This made
me totally confuse. could any one please point out me is this is right
way to do this
Any suggestion regarding this would be higly welcome and appreciated.
My platform is Delphi 7.
.
- Follow-Ups:
- Re: RTF parsing
- From: jeff
- Re: RTF parsing
- From: Joseph Gordon
- Re: RTF parsing
- From: FT
- Re: RTF parsing
- Prev by Date: Re: Data modelling tool - Seeking for recommendations
- Next by Date: ANN: ICARUS 2.5.3 - Uses List Analyzer for Delphi
- Previous by thread: Anybody patched FreeReport to work with BDS2006...
- Next by thread: Re: RTF parsing
- Index(es):
Relevant Pages
|