File: ex9.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 (72 lines) | stat: -rw-r--r-- 2,459 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
<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
<!DOCTYPE document SYSTEM "rml_1_0.dtd">
<document filename="example_9.pdf">
<template>
     <pageTemplate id="main">
     <pageGraphics>
         <grid xs="1cm,2cm,3cm,4cm,5cm,10cm,20cm" ys="1cm,2cm,3cm,4cm,5cm,10cm,20cm"/>
         <place x="10.5cm" y="10.5cm" width="9cm" height="9cm">
             <title>This is a use of <i>place</i></title>
             <spacer length="15"/>
             <para>
             This is a flowable. In this case, it is in a &lt;para&gt;
             tag, but it could be any flowable. It has been placed
             inside a grid, but you could put it inside any graphic or
             pageGraphics. Using the place tag, you can have complete
             control over where you want your flowables to appear.
             </para>
             <spacer length="12"/>
             <para>
             You can include Greek: <greek>abgd</greek>.
             </para>
             <spacer length="12"/>
             <blockTable>
             <tr>
                 <td>Or</td><td>even</td>
             </tr>
             <tr>
                 <td>a</td><td>blockTable.</td>
             </tr>
             </blockTable>
         </place>
     </pageGraphics>
     <frame id="first" x1="72" y1="72" width="451" height="698"/>
     </pageTemplate>
</template>
<stylesheet>
     <paraStyle name="style.Title"
     fontName="Courier-Bold"
     fontSize="24"
     leading="36"
     />
</stylesheet>
<!-- The story starts below this comment -->
<story>
     <title>Example 9</title>
     <para>
     This is a page which shows you how illustrations, grids and the place tag work.
     </para>
     <illustration width="90" height="90">
         <fill color="red"/>
         <circle x="45" y="45" radius="30" fill="yes"/>
         <setFont name="Times-Roman" size="8"/>
         <drawString x="0" y="0">This is an illustration</drawString>
     </illustration>
     <para>
     The red circle you can see is an <i>illustration</i>, not a <i>pageGraphic</i>.
     </para>
     <illustration width="75" height="75">
         <fill color="teal"/>
         <circle x="30" y="30" radius="30" fill="yes"/>
         <stroke color="darkslategray"/>
         <grid xs="15,30,45" ys="5,10,15,20,25,30,35,40,45,50"/>
     </illustration>
     <para>
     So is the teal colored one.
    </para>
    <para>
    These are all flowables in the story.
    </para>
</story>
</document>