First, I wished to have a first hand idea of how an RTF source looks
like for a simple string like,
“PHP for rich text format”. Hold your breath, here it is….
like for a simple string like,
“PHP for rich text format”. Hold your breath, here it is….
{rtf1ansiansicpg1252uc1 deff0deflang1033deflangfe1033{fonttbl{f0fromanfcharset0fprq2 {*panose 02020603050405020304}Times New Roman;}{f16fromanfcharset238fprq2 Times New Roman CE;} {f17fromanfcharset204fprq2 Times New Roman Cyr;}{f19fromanfcharset161fprq2 Times New Roman Greek;} {f20fromanfcharset162fprq2 Times New Roman Tur;}{f21fromanfcharset186fprq2 Times New Roman Baltic;}} {colortbl;red0green0blue0;red0green0blue255;red0green255blue255; red0green255blue0; red255green0blue255;red255green0blue0;red255green255blue0; red255green255blue255; red0green0blue128;red0green128blue128;red0green128blue0; red128green0blue128; red128green0blue0;red128green128blue0;red128green128blue128; red192green192blue192;} {stylesheet{widctlparadjustright fs20cgrid snext0 Normal;}{*cs10 additive Default Paragraph Font;}} {info{title PHP for rich text format}{author sujith nair}{operator naukri.com} {creatimyr2002mo5dy3hr17min21}{revtimyr2002mo5dy3hr17min21} {version1}{edmins0}{nofpages1} {nofwords0}{nofchars0}{*company Info Edge (I) Pvt Ltd}{nofcharsws0}{vern89}} widowctrlftnbjaenddocformshadeviewkind1viewscale100 pgbrdrheadpgbrdrfoot fet0sectd linex0endnheresectdefaultcl {*pnseclvl1pnucrmpnstart1pnindent720pnhang{pntxta .}} {*pnseclvl2pnucltrpnstart1pnindent720pnhang{pntxta .}}{*pnseclvl3pndecpnstart1pnindent720pnhang {pntxta .}}{*pnseclvl4pnlcltrpnstart1pnindent720pnhang{pntxta )}}{*pnseclvl5pndecpnstart1 pnindent720pnhang{pntxtb (}{pntxta )}}{*pnseclvl6pnlcltrpnstart1pnindent720pnhang{pntxtb (} {pntxta )}}{*pnseclvl7pnlcrmpnstart1pnindent720pnhang{pntxtb (}{pntxta )}}{*pnseclvl8pnlcltr pnstart1pnindent720pnhang{pntxtb (}{pntxta )}}{*pnseclvl9pnlcrmpnstart1pnindent720pnhang {pntxtb (}{pntxta )}}pardplain widctlparadjustright fs20cgrid {PHP for rich text formatpar }}
(Please note that I have purposely added line brakes in the above RTF
source
for formatting.)
source
for formatting.)
I was interested only in
the generic syntax of header
and the document part, I decided to ignore the rest of it.
the generic syntax of header
and the document part, I decided to ignore the rest of it.