Blame view

export/PHPRtfLite-1.3.1/samples/generated/document_sections.rtf 10.2 KB
f90e19c3   Andrea Petta   plugin update
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
  {\rtf\ansi\deff0\fs20
  {\fonttbl{\f0 Times New Roman;}{\f1 Times new Roman;}{\f2 Arial;}}
  {\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red255\green0\blue0;\red0\green0\blue102;\red0\green255\blue0;}
  {\info
  }
  \paperw11907 \paperh16840 \deftab1298 \margl1701 \margr1701 \margt567 \margb1134 \pgnstart1\facingp \ftnnar \aftnnrlc \ftnstart1 \aftnstart1 {\headerl \pard \ql {\fs26 \f1 PHPRtfLite class library. Left document header. This is page - \chpgn  of {\field {\*\fldinst {NUMPAGES }}} -}
  \par}
  {\headerr \pard \ql {\fs26 \f1 PHPRtfLite class library. Right document header. This is page - \chpgn  of {\field {\*\fldinst {NUMPAGES }}} -}
  \par}
  \pgbrdrl\brdrw0\brsp0 \pgbrdrr\brdrw0\brsp0 \pgbrdrt\brdrw0\brsp0 \pgbrdrb\brdrw0\brsp0 \cols2 \colsx567 \linebetcol \pgwsxn14175 \pghsxn9072 
  \pard \ql {\fs28 \f2 \cf4 Sample RTF document}
  \par \pard \ql {\fs26 \f1 \line As an example, the following RTF code:\line \line {\\rtf1\\ansi{\\fonttbl\\f0\\fswiss Helvetica;}\\f0\line Hello!\\par\\par\line This is some {\\b bold} text.\\par\line }\line would be rendered like this when read by an appropriate word processor:\line \line Hello!\line \line This is some bold text.\line \line A backslash (\\) starts an RTF control code. The \\par control code indicates a new line, and \\b switches to a bold typeface. Braces ({ and }) define a group; the example uses a group to limit the scope of the \\b control code. Everything else will be treated as clear text, or the text to be formatted. A valid RTF document is a group starting with the \\rtf control code.\line }
  \par \pard \ql {\fs28 \f2 \cf4 Character encoding}
  \par \pard \ql {\fs26 \f1 \line RTF is a 7-bit format. That would limit it to ASCII, but RTF can encode characters beyond ASCII by escape sequences. The character escapes are of two types: code page escapes and Unicode escapes. In a code page escape, two hexadecimal digits following an apostrophe are used for denoting a character taken from a Windows code page. For example, if control codes specifying Windows-1256 are present, the sequence 'c8 will encode the Arabic letter beh (?).\line \line If a Unicode escape is required, the control word \\u is used, followed by a 16-bit signed decimal integer giving the Unicode codepoint number. For the benefit of programs without Unicode support, this must be followed by the nearest representation of this character in the specified code page. For example, \\u1576? would give the Arabic letter beh, specifying that older programs which do not have Unicode support should render it as a question mark instead.\line \line The control word \\uc0 can be used to indicate that subsequent Unicode escape sequences within the current group do not specify a substitution character.\line }
  \par \pard \ql {\fs28 \f2 \cf4 Common implementations}
  \par \pard \ql {\fs26 \f1 \line Most word processing software implementations support RTF format import and export, often making it a "common" format between otherwise incompatible word processing software.\line \line The WordPad editor in Microsoft Windows creates RTF files by default. It once defaulted to the Microsoft Word 6.0 file format, but write support for Word documents was dropped in a security update.\line \line The free software/open-source word processors AbiWord and OpenOffice.org can view and edit RTF files.\line \line The default editor for Mac OS X, TextEdit, can also view and edit RTF files.\line \line Since RTF files are text files, it's easy to produce RTF with many programming languages, like Perl, Java, C++, Pascal, COBOL, or Lisp. Perl, for example, has the RTF::Writer module for this purpose.\line }
  
  \sect\sectd {\headerr \pard \ql {\fs26 \f1 PHPRtfLite class library. Overriden right section header. This is page - \chpgn  of {\field {\*\fldinst {NUMPAGES }}} -}
  \par}
  {\headerl \pard \ql {\fs26 \f1 PHPRtfLite class library. Overriden left section header. This is page - \chpgn  of {\field {\*\fldinst {NUMPAGES }}} -}
  \par}
  \pgbrdrhead\pgbrdrfoot\pgbrdrl\brdrdash\brdrw20\brsp567\brdrcf5 \pgbrdrr\brdrdash\brdrw20\brsp567\brdrcf5 \pgbrdrt\brdrdash\brdrw20\brsp567\brdrcf5 \pgbrdrb\brdrdash\brdrw20\brsp567\brdrcf5 
  \pard \ql {\fs28 \f2 \cf4 Sample RTF document}
  \par \pard \ql {\fs26 \f1 \line As an example, the following RTF code:\line \line {\\rtf1\\ansi{\\fonttbl\\f0\\fswiss Helvetica;}\\f0\line Hello!\\par\\par\line This is some {\\b bold} text.\\par\line }\line would be rendered like this when read by an appropriate word processor:\line \line Hello!\line \line This is some bold text.\line \line A backslash (\\) starts an RTF control code. The \\par control code indicates a new line, and \\b switches to a bold typeface. Braces ({ and }) define a group; the example uses a group to limit the scope of the \\b control code. Everything else will be treated as clear text, or the text to be formatted. A valid RTF document is a group starting with the \\rtf control code.\line }
  \par \pard \ql {\fs28 \f2 \cf4 Character encoding}
  \par \pard \ql {\fs26 \f1 \line RTF is a 7-bit format. That would limit it to ASCII, but RTF can encode characters beyond ASCII by escape sequences. The character escapes are of two types: code page escapes and Unicode escapes. In a code page escape, two hexadecimal digits following an apostrophe are used for denoting a character taken from a Windows code page. For example, if control codes specifying Windows-1256 are present, the sequence 'c8 will encode the Arabic letter beh (?).\line \line If a Unicode escape is required, the control word \\u is used, followed by a 16-bit signed decimal integer giving the Unicode codepoint number. For the benefit of programs without Unicode support, this must be followed by the nearest representation of this character in the specified code page. For example, \\u1576? would give the Arabic letter beh, specifying that older programs which do not have Unicode support should render it as a question mark instead.\line \line The control word \\uc0 can be used to indicate that subsequent Unicode escape sequences within the current group do not specify a substitution character.\line }
  \par \pard \ql {\fs28 \f2 \cf4 Common implementations}
  \par \pard \ql {\fs26 \f1 \line Most word processing software implementations support RTF format import and export, often making it a "common" format between otherwise incompatible word processing software.\line \line The WordPad editor in Microsoft Windows creates RTF files by default. It once defaulted to the Microsoft Word 6.0 file format, but write support for Word documents was dropped in a security update.\line \line The free software/open-source word processors AbiWord and OpenOffice.org can view and edit RTF files.\line \line The default editor for Mac OS X, TextEdit, can also view and edit RTF files.\line \line Since RTF files are text files, it's easy to produce RTF with many programming languages, like Perl, Java, C++, Pascal, COBOL, or Lisp. Perl, for example, has the RTF::Writer module for this purpose.\line }
  
  \sect\sectd {\headerl \pard \ql {\fs26 \f1 PHPRtfLite class library. Left document header. This is page - \chpgn  of {\field {\*\fldinst {NUMPAGES }}} -}
  \par}
  {\headerr \pard \ql {\fs26 \f1 PHPRtfLite class library. Right document header. This is page - \chpgn  of {\field {\*\fldinst {NUMPAGES }}} -}
  \par}
  \pgbrdrhead\pgbrdrfoot\pgbrdrl\brdrs\brdrw20\brsp0\brdrcf2 \pgbrdrr\brdrs\brdrw20\brsp0\brdrcf2 \pgbrdrt\brdrs\brdrw40\brsp0\brdrcf3 \pgbrdrb\brdrs\brdrw40\brsp0\brdrcf3 \cols3 \colno1\colw1701\colsr284\colno2\colw1701\colsr284\colno3\colw4536\colsr284 
  \pard \ql {\fs28 \f2 \cf4 Sample RTF document}
  \par \pard \ql {\fs26 \f1 \line As an example, the following RTF code:\line \line {\\rtf1\\ansi{\\fonttbl\\f0\\fswiss Helvetica;}\\f0\line Hello!\\par\\par\line This is some {\\b bold} text.\\par\line }\line would be rendered like this when read by an appropriate word processor:\line \line Hello!\line \line This is some bold text.\line \line A backslash (\\) starts an RTF control code. The \\par control code indicates a new line, and \\b switches to a bold typeface. Braces ({ and }) define a group; the example uses a group to limit the scope of the \\b control code. Everything else will be treated as clear text, or the text to be formatted. A valid RTF document is a group starting with the \\rtf control code.\line }
  \par \pard \ql {\fs28 \f2 \cf4 Character encoding}
  \par \pard \ql {\fs26 \f1 \line RTF is a 7-bit format. That would limit it to ASCII, but RTF can encode characters beyond ASCII by escape sequences. The character escapes are of two types: code page escapes and Unicode escapes. In a code page escape, two hexadecimal digits following an apostrophe are used for denoting a character taken from a Windows code page. For example, if control codes specifying Windows-1256 are present, the sequence 'c8 will encode the Arabic letter beh (?).\line \line If a Unicode escape is required, the control word \\u is used, followed by a 16-bit signed decimal integer giving the Unicode codepoint number. For the benefit of programs without Unicode support, this must be followed by the nearest representation of this character in the specified code page. For example, \\u1576? would give the Arabic letter beh, specifying that older programs which do not have Unicode support should render it as a question mark instead.\line \line The control word \\uc0 can be used to indicate that subsequent Unicode escape sequences within the current group do not specify a substitution character.\line }
  \par \pard \ql {\fs28 \f2 \cf4 Common implementations}
  \par \pard \ql {\fs26 \f1 \line Most word processing software implementations support RTF format import and export, often making it a "common" format between otherwise incompatible word processing software.\line \line The WordPad editor in Microsoft Windows creates RTF files by default. It once defaulted to the Microsoft Word 6.0 file format, but write support for Word documents was dropped in a security update.\line \line The free software/open-source word processors AbiWord and OpenOffice.org can view and edit RTF files.\line \line The default editor for Mac OS X, TextEdit, can also view and edit RTF files.\line \line Since RTF files are text files, it's easy to produce RTF with many programming languages, like Perl, Java, C++, Pascal, COBOL, or Lisp. Perl, for example, has the RTF::Writer module for this purpose.\line }
  
  }