File: ex11.rml

package info (click to toggle)
python-trml2pdf 1.0-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 452 kB
  • ctags: 61
  • sloc: python: 549; makefile: 9
file content (93 lines) | stat: -rw-r--r-- 3,091 bytes parent folder | download | duplicates (3)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
<!DOCTYPE document SYSTEM "../rml_1_0.dtd">
<document filename="example_11.pdf">
<template>
     <pageTemplate id="main">
     <pageGraphics>
     </pageGraphics>
     <frame id="first" x1="72" y1="72" width="451" height="698"/>
     </pageTemplate>
</template>
<stylesheet>
     <blockTableStyle id="myBlockTableStyle">
          <!-- Set fonts -->
          <blockFont name="Courier-Bold" size="10" start="0,1" stop="-1,-1"/>
          <blockFont name="Helvetica-BoldOblique" size="10" start="0,0" stop="3,0"/>
          <!-- This sets a textColor for all the text in the table -->
          <blockTextColor colorName="black"/>
          <!-- Another example of blockTextColor        -->
          <blockTextColor colorName="green" start="2,2" stop="3,3"/>
          <!-- This sets a blockAlignment for the whole table           -->
          <blockAlignment value="CENTER"/>
          <!-- These overrides the above       -->
          <blockAlignment value="RIGHT" start="3,0" stop="3,-1"/>
          <blockAlignment value="LEFT" start="0,1" stop="0,-1"/>
          <!-- This sets the vertical alignment for one row          -->
          <blockValign value="TOP" start="0,0" stop="-1,0"/>
          <!-- This sets the vertical alignment for one cell          -->
          <blockValign value="MIDDLE" start="2,2" stop="2,2"/>
          <!-- Use of linestyles     -->
          <lineStyle kind="GRID" colorName="silver"/>
          <lineStyle kind="LINEBELOW" colorName="orangered" start="0,0"
             stop="-1,0" thickness="5"/>
          <lineStyle kind="LINEAFTER" colorName="maroon" start="1,1"
             stop="1,6" thickness="1"/>
     </blockTableStyle>
</stylesheet>
<story>
     <title>Example 11 - lines and alignment in tables</title>
     <spacer length="1cm"/>
     <blockTable style="myBlockTableStyle"
     rowHeights="2cm,2cm,2cm,2cm,2cm,2cm,2cm"
     colWidths="4cm,3cm,3cm,4cm"
     >
     <tr>
          <td>(a=LEFT)(VA=TOP)</td>
          <td>(VA=TOP)</td>
          <td>(VA="TOP")</td>
          <td>(a=RIGHT)(VA=TOP)</td>
     </tr>
     <tr>
         <td>(a=LEFT)</td>
         <td>1,1</td>
         <td>Cell 2,1</td>
         <td>(a=RIGHT)</td>
     </tr>
     <tr>
         <td>(a=LEFT)</td>
         <td>1,2</td>
         <td>(VA=MIDDLE)</td>
         <td>(a=RIGHT)</td>
     </tr>
     <tr>
         <td>(a=LEFT)</td>
         <td>1,3</td>
         <td>(VA=MIDDLE)</td>
         <td>(VA=MDL)(a=RIGHT)</td>
     </tr>
     <tr>
         <td>(a=LEFT)</td>
         <td>1,4</td>
         <td>2,4</td>
         <td>(a=RIGHT)</td>
     </tr>
     <tr>
         <td>(a=LEFT)</td>
         <td>1,5</td>
         <td>2,5</td>
         <td>(a=RIGHT)</td>
     </tr>
     <tr>
         <td>(a=LEFT)</td>
         <td>1,6</td>
         <td>2,6</td>
         <td>(a=RIGHT)</td>
     </tr>
     </blockTable>
<spacer length="15"/>
<para>a=value for <i>blockAlignment</i></para>
<para>VA=value for <i>blockValign</i></para>
<para><i>MDLE=MIDDLE for VA in cells 3,2 and 3,3</i></para>
</story>
</document>