Re: RTF parsing
- From: FT <FT@xxxxxxxxx>
- Date: Wed, 02 Aug 2006 15:37:08 +0200
Hello Vikas,
you definely need to parse the RTF file (some implementations (like M$)
are very ugly ...) I did something similar some time ago, pretty easy if
you only need to extract specific information.
Read some documentation on RTF (www.biblioscape.com/rtf15_spec.htm) and
handle only the tags you need.
For example the header should always end before the document begins
which starts with an obligatory "<document>" ...
Have fun
Florian
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: Matthew Jones
- Re: RTF parsing
- References:
- RTF parsing
- From: Vikas
- RTF parsing
- Prev by Date: Changing TImage Background color
- Next by Date: Dream Collection with Delphi 2006
- Previous by thread: RTF parsing
- Next by thread: Re: RTF parsing
- Index(es):
Relevant Pages
|