Re: RTF parsing



You might look at www.wptools.com the read RTF and you can
then access the parts.

Thanks,
Joe

"Vikas" <vikas@xxxxxxxxxxxx> wrote in message
news:44d05ac4@xxxxxxxxxxxxxxxxxxxxxxxxx
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.





.



Relevant Pages

  • Re: Footer gone when doc saved as rtf
    ... She sends it to me and when I open it, the header displays but not the footer, and the header/footer margins change ... I have only very seldom used RTF for document interchange, so cannot comment specifically. ... So, if your "header" information is not really in the header but on the top of the page, then I could imagine that Word does show it to you but not the footer information. ...
    (microsoft.public.word.docmanagement)
  • Re: How to load rtf in richtextbox with header and footer
    ... RTF codes that specify a header and footer to work inside a RichTextBox? ... That _does_ operate basically on a page level, and if you embed it into your own control that could produce the visual results you're looking for. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: RTF parsing
    ... you definely need to parse the RTF file ... For example the header should always end before the document begins ... footer it will not be automatically handled. ...
    (borland.public.delphi.thirdpartytools.general)
  • RTF parsing
    ... the header and footer. ... Infact one of my client uses our converstion software which converts ... RTF to PDF. ... footer it will not be automatically handled. ...
    (borland.public.delphi.thirdpartytools.general)
  • parsing RTF header and footer
    ... the header and footer. ... Infact one of my client uses our converstion software which converts ... RTF to PDF. ... footer it will not be automatically handled. ...
    (borland.public.delphi.thirdpartytools.general)