Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

Using PHP for RTF
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....
{\rtf1\ansi\ansicpg1252\uc1
\deff0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fcharset0\fprq2
{\*\panose 02020603050405020304}Times New
Roman;}{\f16\froman\fcharset238\fprq2 Times New Roman CE;}
{\f17\froman\fcharset204\fprq2 Times New Roman
Cyr;}{\f19\froman\fcharset161\fprq2 Times New Roman Greek;}
{\f20\froman\fcharset162\fprq2 Times New Roman
Tur;}{\f21\froman\fcharset186\fprq2 Times New Roman Baltic;}}
{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;
\red0\green255\blue0;
\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;
\red255\green255\blue255;
\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;
\red128\green0\blue128;
\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;
\red192\green192\blue192;}
{\stylesheet{\widctlpar\adjustright \fs20\cgrid \snext0 Normal;}{\*\cs10
\additive Default Paragraph Font;}}

{\info{\title PHP for rich text format}{\author sujith nair}{\operator
naukri.com}
{\creatim\yr2002\mo5\dy3\hr17\min21}{\revtim\yr2002\mo5\dy3\hr17\min21}
{\version1}{\edmins0}{\nofpages1}
{\nofwords0}{\nofchars0}{\*\company Info Edge (I) Pvt
Ltd}{\nofcharsws0}{\vern89}}
\widowctrl\ftnbj\aenddoc\formshade\viewkind1\viewscale100
\pgbrdrhead\pgbrdrfoot
\fet0\sectd
\linex0\endnhere\sectdefaultcl
{\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang{\pntxta .}}
{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnhang{\pntxta
.}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang
{\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang{\pntxta
)}}{\*\pnseclvl5\pndec\pnstart1
\pnindent720\pnhang{\pntxtb (}{\pntxta
)}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}
{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb
(}{\pntxta )}}{\*\pnseclvl8\pnlcltr
\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta
)}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang
{\pntxtb (}{\pntxta )}}\pard\plain \widctlpar\adjustright \fs20\cgrid
{PHP for rich text format\par }}
(Please note that I have purposely added line brakes in the above RTF 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.
[ Next Page ]

[Page 1]  [Page 2]  


Comments:
RE: Reading .doc file in phpJayant Ochani06/21/05 09:07
Reading .doc file in phpsruti ranjan nanda04/26/05 06:50
transform xml to rtfzarathoustra03/11/05 04:15
Great helpJayvee Vibar03/10/05 03:37
Great helpJayvee Vibar03/10/05 03:36
Great helpJayvee Vibar03/10/05 03:36
Rading .doc file in phpSunil 02/02/05 01:39
Goood Work !ksshan03/02/04 22:58
Wordpad v.s WordMark Armendariz11/26/02 12:57
Create a RTF using phpHaik09/25/02 10:07
RE: Another way to use PHP and RTFPierre Chabanier08/22/02 09:09
for those who want to go deeper.....david08/06/02 04:56
RE: Use MS Word to view rtf syntax - How ?Jason07/31/02 11:22
OpenOffice.org XML FormatScott Carr07/30/02 15:49
OpenOffice.org XML FormatScott Carr07/30/02 15:46
RE: Use MS Word to view rtf syntax - How ?paggard07/30/02 05:25
Use MS Word to view rtf syntax - How ?Sean07/26/02 14:50
RE: Another way to use PHP and RTFpaulsim07/26/02 14:38
I challenge you - RTFpaulsim07/17/02 04:08
Paggard RTF ClassAlex Schlup07/09/02 11:27
IS .bmp or .gif possible?Melissa07/04/02 00:47
RE: if I was youSaravanan07/02/02 11:22
RE: if I was youc.w.collins06/25/02 17:01
RE: if I was youJason06/25/02 10:00
RE: if I was youpaggard06/25/02 00:35
if I was youdoesntmatter06/21/02 14:21
Another way to use PHP and RTFSamuel Lim06/21/02 08:26
Another way to use PHP and RTFSamuel Lim06/21/02 08:26
Other ReferencesDaniel S06/12/02 19:42
RE: Images.... - objection!paggard06/07/02 01:02
Images....Roodie06/06/02 08:57
RE: So what? (OK, I'll bite)nick browning06/06/02 02:08
RE: Create RTFpaggard06/04/02 05:46
RE: Easier SolutionMike G06/02/02 22:06
RE: Create RTFChris Chaudruc05/31/02 18:51
Easier SolutionJay Haugen05/30/02 15:38
RE: So what? (OK, I'll bite)Mike Hoskins05/29/02 14:47
Create RTFpaggard05/28/02 07:40
What is going on with this site?Jonathan Taylor05/27/02 13:00
RE: Useful - any links to tools?Jeff Thompson05/27/02 09:26
Convert clasessBogomil05/27/02 09:10
RE: So what? (OK, I'll bite)kybosh05/25/02 09:30
RE: So what? (OK, I'll bite)Edward Muesch05/24/02 21:18
RE: So what? (OK, I'll bite)Edward Muesch05/24/02 21:17
Useful - any links to tools?Wulf05/24/02 11:55
Re: So what?Gecko05/24/02 05:16
RE: So what? (OK, I'll bite)CurlyG05/23/02 23:57
So what?kybosh05/23/02 06:14
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.