[Checkins] SVN: z3c.rml/trunk/src/z3c/rml/ Okay,
some more compatibility work. 4 more test suite files
are more or less
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sat Mar 17 13:56:36 EDT 2007
Log message for revision 73303:
Okay, some more compatibility work. 4 more test suite files are more or less
passing now.
Changed:
U z3c.rml/trunk/src/z3c/rml/attr.py
U z3c.rml/trunk/src/z3c/rml/flowable.py
U z3c.rml/trunk/src/z3c/rml/platypus.py
U z3c.rml/trunk/src/z3c/rml/stylesheet.py
A z3c.rml/trunk/src/z3c/rml/tests/input/images/cylinder.eps
A z3c.rml/trunk/src/z3c/rml/tests/input/rml-examples-011-keepwithnext.rml
A z3c.rml/trunk/src/z3c/rml/tests/input/rml-examples-017-outlines.rml
A z3c.rml/trunk/src/z3c/rml/tests/input/rml-examples-022-paras-oas.rml
A z3c.rml/trunk/src/z3c/rml/tests/input/rml-examples-032-images.rml
-=-
Modified: z3c.rml/trunk/src/z3c/rml/attr.py
===================================================================
--- z3c.rml/trunk/src/z3c/rml/attr.py 2007-03-17 16:54:23 UTC (rev 73302)
+++ z3c.rml/trunk/src/z3c/rml/attr.py 2007-03-17 17:56:35 UTC (rev 73303)
@@ -204,8 +204,11 @@
open = staticmethod(urllib.urlopen)
packageExtract = re.compile('^\[([0-9A-z_.]*)\]/(.*)$')
- def __init__(self, name=None, default=DEFAULT):
+ doNotOpen = False
+
+ def __init__(self, name=None, default=DEFAULT, doNotOpen=False):
super(File, self).__init__(name, default)
+ self.doNotOpen = doNotOpen
def convert(self, value, context=None):
@@ -219,6 +222,8 @@
modulepath, path = result.groups()
module = __import__(modulepath, {}, {}, (modulepath))
value = os.path.join(os.path.dirname(module.__file__), path)
+ if self.doNotOpen:
+ return value
# Open/Download the file
fileObj = self.open(value)
sio = cStringIO.StringIO(fileObj.read())
Modified: z3c.rml/trunk/src/z3c/rml/flowable.py
===================================================================
--- z3c.rml/trunk/src/z3c/rml/flowable.py 2007-03-17 16:54:23 UTC (rev 73302)
+++ z3c.rml/trunk/src/z3c/rml/flowable.py 2007-03-17 17:56:35 UTC (rev 73303)
@@ -206,6 +206,9 @@
def process(self):
self.parent.style = copy.deepcopy(self.parent.style)
+ attrs = element.extractAttributes(self.attrs, self.element, self)
+ for name, value in attrs.items():
+ setattr(self.parent.style, name, value)
self.processSubElements(self.parent.style)
@@ -242,6 +245,9 @@
for name, value in attrs.items():
setattr(table, name, value)
+ # Must set keepWithNExt on table, since the style is not stored corr.
+ if hasattr(self.style, 'keepWithNext'):
+ table.keepWithNext = self.style.keepWithNext
self.parent.flow.append(table)
@@ -410,6 +416,13 @@
('dash', attr.Sequence('dash', attr.Measurement())),
)
+class OutlineAdd(Flowable):
+ klass = platypus.OutlineAdd
+ args = ( attr.TextNode(), attr.Text('key', None) )
+ kw = (
+ ('level', attr.Int('level')),
+ ('closed', attr.Bool('closed')),
+ )
class Flow(element.ContainerElement):
@@ -421,6 +434,7 @@
'xpre': XPreformatted,
'plugInFlowable': PluginFlowable,
'barCodeFlowable': BarCodeFlowable,
+ 'outlineAdd': OutlineAdd,
# Paragraph-Like Flowables
'title': Title,
'h1': Heading1,
Modified: z3c.rml/trunk/src/z3c/rml/platypus.py
===================================================================
--- z3c.rml/trunk/src/z3c/rml/platypus.py 2007-03-17 16:54:23 UTC (rev 73302)
+++ z3c.rml/trunk/src/z3c/rml/platypus.py 2007-03-17 17:56:35 UTC (rev 73303)
@@ -18,6 +18,18 @@
__docformat__ = "reStructuredText"
import reportlab.platypus.flowables
+class BaseFlowable(reportlab.platypus.flowables.Flowable):
+ def __init__(self, *args, **kw):
+ reportlab.platypus.flowables.Flowable.__init__(self)
+ self.args = args
+ self.kw = kw
+
+ def wrap(self, *args):
+ return (0, 0)
+
+ def draw(self):
+ pass
+
class Illustration(reportlab.platypus.flowables.Flowable):
def __init__(self, processor, width, height):
self.processor = processor
@@ -36,14 +48,15 @@
drawing.process()
self.canv.restoreState()
+class BookmarkPage(BaseFlowable):
+ def draw(self):
+ self.canv.bookmarkPage(*self.args, **self.kw)
-class BookmarkPage(reportlab.platypus.flowables.Flowable):
- def __init__(self, *args, **kw):
- self.args = args
- self.kw = kw
- def wrap(self, *args):
- return (0, 0)
-
+class OutlineAdd(BaseFlowable):
def draw(self):
- self.canv.bookmarkPage(*self.args, **self.kw)
+ title, key = self.args
+ if key is None:
+ key = str(hash(self))
+ self.canv.bookmarkPage(key)
+ self.canv.addOutlineEntry(title, key, **self.kw)
Modified: z3c.rml/trunk/src/z3c/rml/stylesheet.py
===================================================================
--- z3c.rml/trunk/src/z3c/rml/stylesheet.py 2007-03-17 16:54:23 UTC (rev 73302)
+++ z3c.rml/trunk/src/z3c/rml/stylesheet.py 2007-03-17 17:56:35 UTC (rev 73303)
@@ -52,7 +52,8 @@
attr.Measurement('bulletFontSize'),
attr.Measurement('bulletIndent'),
attr.Color('textColor'),
- attr.Color('backColor')
+ attr.Color('backColor'),
+ attr.Bool('keepWithNext')
)
def process(self):
@@ -196,6 +197,10 @@
class BlockTableStyle(element.ContainerElement):
+ attrs = (
+ attr.Bool('keepWithNext'),
+ )
+
subElements = {
'blockFont': BlockFont,
'blockLeading': BlockLeading,
@@ -215,8 +220,14 @@
def process(self):
id = attr.Text('id').get(self.element, context=self)
+ # Create Style
style = reportlab.platypus.tables.TableStyle()
+ attrs = element.extractAttributes(self.attrs, self.element, self)
+ for name, value in attrs.items():
+ setattr(style, name, value)
+ # Fill style
self.processSubElements(style)
+ # Add style to the manager
manager = attr.getManager(self, interfaces.IStylesManager)
manager.styles[id] = style
Added: z3c.rml/trunk/src/z3c/rml/tests/input/images/cylinder.eps
===================================================================
--- z3c.rml/trunk/src/z3c/rml/tests/input/images/cylinder.eps 2007-03-17 16:54:23 UTC (rev 73302)
+++ z3c.rml/trunk/src/z3c/rml/tests/input/images/cylinder.eps 2007-03-17 17:56:35 UTC (rev 73303)
@@ -0,0 +1,187 @@
+%!PS-Adobe-3.0 EPSF-3.0
+%%BoundingBox: 0 0 223 178
+%%Pages: 0
+%%Creator: Sun Microsystems, Inc.
+%%Title: none
+%%CreationDate: none
+%%LanguageLevel: 2
+%%EndComments
+%%BeginProlog
+%%BeginResource: procset SDRes-Prolog 1.0 0
+/b4_inc_state save def
+/dict_count countdictstack def
+/op_count count 1 sub def
+userdict begin
+0 setgray 0 setlinecap 1 setlinewidth 0 setlinejoin 10 setmiterlimit[] 0 setdash newpath
+/languagelevel where {pop languagelevel 1 ne {false setstrokeadjust false setoverprint} if} if
+/bdef {bind def} bind def
+/c {setgray} bdef
+/l {neg lineto} bdef
+/rl {neg rlineto} bdef
+/lc {setlinecap} bdef
+/lj {setlinejoin} bdef
+/lw {setlinewidth} bdef
+/ml {setmiterlimit} bdef
+/ld {setdash} bdef
+/m {neg moveto} bdef
+/ct {6 2 roll neg 6 2 roll neg 6 2 roll neg curveto} bdef
+/r {rotate} bdef
+/t {neg translate} bdef
+/s {scale} bdef
+/sw {show} bdef
+/gs {gsave} bdef
+/gr {grestore} bdef
+/f {findfont dup length dict begin
+{1 index /FID ne {def} {pop pop} ifelse} forall /Encoding ISOLatin1Encoding def
+currentdict end /NFont exch definefont pop /NFont findfont} bdef
+/p {closepath} bdef
+/sf {scalefont setfont} bdef
+/ef {eofill}bdef
+/pc {closepath stroke}bdef
+/ps {stroke}bdef
+/pum {matrix currentmatrix}bdef
+/pom {setmatrix}bdef
+/bs {/aString exch def /nXOfs exch def /nWidth exch def currentpoint nXOfs 0 rmoveto pum nWidth aString stringwidth pop div 1 scale aString show pom moveto} bdef
+%%EndResource
+%%EndProlog
+%%BeginSetup
+%%EndSetup
+%%Page: 1 1
+%%BeginPageSetup
+%%EndPageSetup
+pum
+0.02837 0.0283 s
+0 -6288 t
+/tm matrix currentmatrix def
+gs
+tm setmatrix
+-421 -635 t
+1 1 s
+421 635 m 8279 635 l 8279 6922 l 421 6922 l 421 635 l eoclip newpath
+gs
+421 635 m 8279 635 l 8279 6922 l 421 6922 l 421 635 l eoclip newpath
+421 635 m 8280 635 l 8280 6923 l 421 6923 l 421 635 l eoclip newpath
+0.000 c 7937 3937 m 7670 4026 l 7670 3848 l 7937 3937 l p ef
+635 3937 m 7723 3937 l ps
+6540 2095 m 6374 2323 l 6271 2178 l 6540 2095 l p ef
+1651 5588 m 6366 2219 l ps
+3948 1079 m 4037 1346 l 3859 1346 l 3948 1079 l p ef
+3948 6032 m 3948 5981 l ps
+3948 5930 m 3948 5879 l ps
+3948 5828 m 3948 5777 l ps
+3948 5726 m 3948 5675 l ps
+3948 5624 m 3948 5573 l ps
+3948 5522 m 3948 5471 l ps
+3948 5420 m 3948 5369 l ps
+3948 5318 m 3948 5267 l ps
+3948 5216 m 3948 5165 l ps
+3948 5114 m 3948 5063 l ps
+3948 5012 m 3948 4961 l ps
+3948 4910 m 3948 4859 l ps
+3948 4808 m 3948 4757 l ps
+3948 4706 m 3948 4655 l ps
+3948 4604 m 3948 4553 l ps
+3948 4502 m 3948 4451 l ps
+3948 4400 m 3948 4349 l ps
+3948 4298 m 3948 4247 l ps
+3948 4196 m 3948 4145 l ps
+3948 4094 m 3948 4043 l ps
+3948 3992 m 3948 3941 l ps
+3948 3890 m 3948 3839 l ps
+3948 3788 m 3948 3737 l ps
+3948 3686 m 3948 3635 l ps
+3948 3584 m 3948 3533 l ps
+3948 3482 m 3948 3431 l ps
+3948 3380 m 3948 3329 l ps
+3948 3278 m 3948 3227 l ps
+3948 3176 m 3948 3125 l ps
+3948 3074 m 3948 3023 l ps
+3948 2972 m 3948 2921 l ps
+3948 2870 m 3948 2819 l ps
+3948 2768 m 3948 2717 l ps
+3948 2666 m 3948 2615 l ps
+3948 2564 m 3948 2513 l ps
+3948 2462 m 3948 2411 l ps
+3948 2360 m 3948 2309 l ps
+3948 2258 m 3948 2207 l ps
+3948 2156 m 3948 2105 l ps
+3948 2054 m 3948 2003 l ps
+3948 1952 m 3948 1901 l ps
+3948 1850 m 3948 1799 l ps
+3948 1748 m 3948 1697 l ps
+3948 1646 m 3948 1595 l ps
+3948 1544 m 3948 1493 l ps
+3948 1442 m 3948 1391 l ps
+3948 1340 m 3948 1293 l ps
+gs
+gs
+pum
+7843 4359 t
+5 -157 m 5 -157 5 -157 5 -151 ct 18 -151 24 -148 41 -123 ct 41 -123 41 -123 71 -80 ct
+71 -80 71 -80 38 -36 ct 20 -12 15 -7 6 -6 ct 6 -6 6 -6 6 0 ct 6 0 6 0 56 0 ct 56 0 56 0 56 -6 ct
+46 -6 41 -12 41 -17 ct 41 -19 45 -25 53 -36 ct 53 -36 53 -36 77 -70 ct 77 -70 77 -70 100 -36 ct
+107 -25 111 -19 111 -16 ct 111 -10 105 -6 96 -6 ct 96 -6 96 -6 96 0 ct 96 0 96 0 169 0 ct
+169 0 169 0 169 -7 ct 156 -7 152 -8 133 -36 ct 133 -36 133 -36 94 -92 ct 94 -92 94 -92 115 -122 ct
+133 -145 140 -151 152 -151 ct 152 -151 152 -151 152 -157 ct 152 -157 152 -157 100 -157 ct
+100 -157 100 -157 100 -151 ct 109 -151 112 -147 112 -143 ct 112 -140 108 -133 100 -121 ct
+100 -121 100 -121 87 -103 ct 87 -103 87 -103 76 -121 ct 66 -137 65 -139 65 -142 ct
+65 -148 68 -151 77 -151 ct 77 -151 77 -151 77 -157 ct 77 -157 77 -157 5 -157 ct
+p ef
+pom
+gr
+gr
+gs
+gs
+pum
+6545 2355 t
+2 -158 m 2 -158 2 -158 2 -152 ct 15 -149 21 -143 29 -126 ct 29 -126 29 -126 85 -7 ct
+85 -7 85 -7 74 21 ct 66 41 58 47 51 47 ct 30 40 30 40 27 40 ct 17 40 10 47 10 56 ct
+10 66 19 76 33 76 ct 51 76 73 60 85 29 ct 85 29 85 29 148 -128 ct 155 -146 159 -150 171 -152 ct
+171 -152 171 -152 171 -158 ct 171 -158 171 -158 121 -158 ct 121 -158 121 -158 121 -152 ct
+132 -152 136 -150 136 -143 ct 136 -138 135 -134 133 -129 ct 133 -129 133 -129 99 -42 ct
+99 -42 99 -42 61 -121 ct 57 -129 55 -135 55 -140 ct 55 -150 64 -152 74 -152 ct
+74 -152 74 -152 74 -158 ct 74 -158 74 -158 2 -158 ct p ef
+pom
+gr
+gr
+gs
+gs
+pum
+3638 1254 t
+145 -48 m 145 -48 145 -48 139 -48 ct 136 -17 131 -12 101 -12 ct 101 -12 101 -12 44 -12 ct
+44 -12 44 -12 148 -151 ct 148 -151 148 -151 148 -157 ct 148 -157 148 -157 18 -157 ct
+18 -157 18 -157 17 -113 ct 17 -113 17 -113 24 -113 ct 26 -144 37 -145 59 -145 ct
+59 -145 59 -145 110 -145 ct 110 -145 110 -145 7 -6 ct 7 -6 7 -6 7 0 ct 7 0 7 0 144 0 ct
+144 0 144 0 145 -48 ct p ef
+pom
+gr
+gr
+25 lw 1 lj 3962 2032 m 3314 2032 2787 1960 2787 1873 ct 2787 1786 3314 1714 3962 1714 ct
+4610 1714 5137 1786 5137 1873 ct 5137 1960 4610 2032 3962 2032 ct pc
+5137 2139 m 5087 2221 4581 2285 3966 2286 ct 3318 2286 2791 2214 2791 2127 ct
+2791 2126 2791 2126 2791 2126 ct ps
+3949 1905 m 3949 1270 l ps
+3949 6506 m 3949 5871 l ps
+2788 1841 m 2788 2159 l ps
+5116 1841 m 5116 2159 l ps
+5137 5839 m 5087 5921 4581 5985 3966 5986 ct 3318 5986 2791 5914 2791 5827 ct
+2791 5826 2791 5826 2791 5826 ct ps
+2788 5541 m 2788 5859 l ps
+5116 5541 m 5116 5859 l ps
+3659 2286 m 3659 5524 l ps
+4259 2286 m 4259 5524 l ps
+4291 5531 m 4272 5563 4137 5588 3976 5588 ct 3813 5588 3678 5562 3660 5531 ct
+ps
+4268 5399 m 4759 5418 5120 5480 5120 5552 ct 5120 5639 4593 5711 3945 5711 ct
+3297 5711 2770 5639 2770 5552 ct 2770 5477 3151 5414 3664 5397 ct ps
+gr
+gs
+421 635 m 8279 635 l 8279 6922 l 421 6922 l 421 635 l eoclip newpath
+gr
+gr
+0 6288 t
+pom
+count op_count sub {pop} repeat countdictstack dict_count sub {end} repeat b4_inc_state restore
+%%PageTrailer
+%%Trailer
+%%EOF
Added: z3c.rml/trunk/src/z3c/rml/tests/input/rml-examples-011-keepwithnext.rml
===================================================================
--- z3c.rml/trunk/src/z3c/rml/tests/input/rml-examples-011-keepwithnext.rml 2007-03-17 16:54:23 UTC (rev 73302)
+++ z3c.rml/trunk/src/z3c/rml/tests/input/rml-examples-011-keepwithnext.rml 2007-03-17 17:56:35 UTC (rev 73303)
@@ -0,0 +1,190 @@
+<!-- edited with XML Spy v4.0 U (http://www.xmlspy.com) by Andy Robinson (Reportlab Inc.) -->
+<!DOCTYPE document SYSTEM "rml_1_0.dtd">
+<document filename="test_011_keepwithnext.pdf">
+ <template pageSize="(595, 842)" leftMargin="72" showBoundary="1">
+ <pageTemplate id="main">
+ <frame id="first" x1="1in" y1="1in" width="6.27in" height="9.69in"/>
+ </pageTemplate>
+
+<pageTemplate id="twoparts">
+ <pageGraphics>
+ <setFont name="Helvetica-BoldOblique" size="18"/>
+ <drawRightString x="523" y="800">RML2PDF Test Suite - Test #9</drawRightString>
+ </pageGraphics>
+ <frame id="first" x1="1in" y1="5.845in" width="6.27in" height="4in"/>
+ <frame id="second" x1="1in" y1="1in" width="6.27in" height="4in"/>
+ </pageTemplate>
+ </template>
+ <stylesheet>
+
+
+ <paraStyle name="heading"
+ fontName="Helvetica-Bold"
+ fontSize="24"
+ leading="28"
+ spaceBefore = "24"
+ />
+
+ <paraStyle name="head_keep"
+ fontName="Helvetica-Bold"
+ fontSize="24"
+ leading="28"
+ spaceBefore = "24"
+ keepWithNext="1"
+ />
+
+ <paraStyle name="head_nokeep"
+ fontName="Helvetica-Bold"
+ fontSize="24"
+ leading="28"
+ spaceBefore = "24"
+ keepWithNext="0"
+ />
+
+ <paraStyle name="body"
+ fontName="Helvetica"
+ fontSize="12"
+ leading="14"
+ spaceBefore = "3"
+ />
+
+ </stylesheet>
+ <story>
+ <para>There should be a table on this page</para>
+ <blockTable colWidths="5cm">
+ <blockTableStyle id="temp000" keepWithNext="1"/>
+ <tr><td><para>These should have links.</para></td></tr>
+ </blockTable>
+ <blockTable colWidths="5cm,5cm">
+ <blockTableStyle id="temp001">
+ <blockAlignment value="left"/>
+ <blockFont name="Helvetica-Oblique"/>
+ <lineStyle kind="GRID" colorName="black"/>
+ <lineStyle kind="OUTLINE" colorName="black" thickness="2"/>
+ <blockBackground colorName="pink" start="0,0" stop="-1,0"/>
+ <blockBackground colorName="yellow" start="0,0" stop="-1,0"/>
+ </blockTableStyle>
+ <tr><td>Name</td><td>Email</td></tr>
+ <tr>
+ <td>Robin</td>
+ <td><plugInFlowable module="mymodule" function="linkURL">("mailto:robin at reportlab.com",)</plugInFlowable></td>
+ </tr>
+ <tr>
+ <td><spacer length="4in"/><para>xxx</para></td><td></td>
+ </tr>
+ </blockTable>
+ <nextFrame/>
+ <para>There should be a table on the next page</para>
+ <spacer length="5in"/>
+ <blockTable colWidths="5cm">
+ <blockTableStyle id="temp000" keepWithNext="1"/>
+ <tr><td><para>These should have links.</para></td></tr>
+ </blockTable>
+ <blockTable colWidths="5cm,5cm">
+ <blockTableStyle id="temp001">
+ <blockAlignment value="left"/>
+ <blockFont name="Helvetica-Oblique"/>
+ <lineStyle kind="GRID" colorName="black"/>
+ <lineStyle kind="OUTLINE" colorName="black" thickness="2"/>
+ <blockBackground colorName="pink" start="0,0" stop="-1,0"/>
+ <blockBackground colorName="yellow" start="0,0" stop="-1,0"/>
+ </blockTableStyle>
+ <tr><td>Name</td><td>Email</td></tr>
+ <tr>
+ <td>Robin</td>
+ <td><plugInFlowable module="mymodule" function="linkURL">("mailto:robin at reportlab.com",)</plugInFlowable></td>
+ </tr>
+ <tr>
+ <td><spacer length="4in"/><para>xxx</para></td><td></td>
+ </tr>
+ </blockTable>
+ <setNextTemplate name="twoparts"/>
+ <nextPage/>
+<nextPage/>
+<para style="heading">
+ keepWithNext and paragraph splitting = #1.
+</para>
+<para style="body">
+ This tests the ability to make headings 'stick to' the paragraphs after them. The heading style
+ used is supposed to be kept with the next paragraph, even if this involves flopping onto the
+ next page. We have sized this text so that there is enough space for the heading below to
+ fit into the top frame. However, its style has a <i>keepWithNext</i> attribute set to 1, so it
+ should flop down into the bottom half. Cross your fingers....
+</para>
+
+<para style="head_keep">This should be on the bottom half</para>
+<para style="body">
+
+ To characterize a linguistic level L,
+ this selectionally introduced contextual
+ feature delimits the requirement that
+ branching is not tolerated within the
+ dominance scope of a complex
+ symbol. Notice, incidentally, that the
+ notion of level of grammaticalness
+ does not affect the structure of the
+ levels of acceptability from fairly high
+ (e.g. (99a)) to virtual gibberish (e.g.
+ (98d)). Suppose, for instance, that a
+ subset of English sentences interesting
+ on quite independent grounds appears
+ to correlate rather closely with an
+ important distinction in language use.
+ Presumably, this analysis of a
+ formative as a pair of sets of features is
+ not quite equivalent to the system of
+ base rules exclusive of the lexicon. We
+ have already seen that the appearance
+ of parasitic gaps in domains relatively
+ inaccessible to ordinary extraction
+ does not readily tolerate the strong
+ generative capacity of the theory.
+
+</para>
+
+<nextPage/>
+<para style="heading">
+ keepWithNext and paragraph splitting - #2.
+</para>
+<para style="body">
+ This time the style has keepWithNext turned OFF. The paragraph below should
+ be in the top half.
+</para>
+
+<para style="head_nokeep">This should be on the top half</para>
+<para style="body">
+
+ To characterize a linguistic level L,
+ this selectionally introduced contextual
+ feature delimits the requirement that
+ branching is not tolerated within the
+ dominance scope of a complex
+ symbol. Notice, incidentally, that the
+ notion of level of grammaticalness
+ does not affect the structure of the
+ levels of acceptability from fairly high
+ (e.g. (99a)) to virtual gibberish (e.g.
+ (98d)). Suppose, for instance, that a
+ subset of English sentences interesting
+ on quite independent grounds appears
+ to correlate rather closely with an
+ important distinction in language use.
+ Presumably, this analysis of a
+ formative as a pair of sets of features is
+ not quite equivalent to the system of
+ base rules exclusive of the lexicon. We
+ have already seen that the appearance
+ of parasitic gaps in domains relatively
+ inaccessible to ordinary extraction
+ does not readily tolerate the strong
+ generative capacity of the theory.
+
+</para>
+
+
+<nextPage/>
+
+
+
+ </story>
+</document>
Added: z3c.rml/trunk/src/z3c/rml/tests/input/rml-examples-017-outlines.rml
===================================================================
--- z3c.rml/trunk/src/z3c/rml/tests/input/rml-examples-017-outlines.rml 2007-03-17 16:54:23 UTC (rev 73302)
+++ z3c.rml/trunk/src/z3c/rml/tests/input/rml-examples-017-outlines.rml 2007-03-17 17:56:35 UTC (rev 73303)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="eucjp" standalone="no" ?>
+<!DOCTYPE document SYSTEM "rml_1_0.dtd">
+<document filename="test_017_outlines.pdf">
+
+
+<template pageSize="(595, 842)" leftMargin="72" showBoundary="0">
+ <pageTemplate id="main">
+ <pageGraphics>
+ <setFont name="Helvetica-BoldOblique" size="18"/>
+ </pageGraphics>
+ <frame id="first" x1="1in" y1="1in" width="6.27in" height="9.69in"/>
+ </pageTemplate>
+</template>
+
+<stylesheet>
+ <initialize>
+ <alias id="h1" value="style.Heading1" />
+ </initialize>
+</stylesheet>
+
+
+<story>
+<setNextTemplate name="main"/>
+<outlineAdd>TOP Level</outlineAdd>
+<para style="h1">Top Level Outline</para>
+<nextFrame/>
+
+<setNextTemplate name="main"/>
+<outlineAdd level="1">Level 1</outlineAdd>
+<para style="h1">Level 1 Outline</para>
+<nextFrame/>
+
+<setNextTemplate name="main"/>
+<outlineAdd level="2">Level 2</outlineAdd>
+<para style="h1">Level 2 Outline</para>
+<nextFrame/>
+
+<setNextTemplate name="main"/>
+<outlineAdd level="1">Level 1 Again</outlineAdd>
+<para style="h1">Level 1 Again</para>
+<outlineAdd level="1">Ampersand (&) and Japanese (¤Þ¤¿¤Ï¤´´õ˾¤Î¥Û¥Æ¥ë¤ò1¤ÄÁªÂò¤·¤Æ¤¯¤À¤µ¤¤) Test</outlineAdd>
+<para>Check that the ampersand (&) appears correctly in the outline/bookmark list.</para>
+<nextFrame/>
+
+</story>
+</document>
Added: z3c.rml/trunk/src/z3c/rml/tests/input/rml-examples-022-paras-oas.rml
===================================================================
--- z3c.rml/trunk/src/z3c/rml/tests/input/rml-examples-022-paras-oas.rml 2007-03-17 16:54:23 UTC (rev 73302)
+++ z3c.rml/trunk/src/z3c/rml/tests/input/rml-examples-022-paras-oas.rml 2007-03-17 17:56:35 UTC (rev 73303)
@@ -0,0 +1,314 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
+<!DOCTYPE document SYSTEM "rml_1_0.dtd">
+<document filename="test_022_paras_oas.pdf">
+
+
+<template pageSize="(595, 842)" leftMargin="72" showBoundary="1">
+ <pageTemplate id="main">
+ <pageGraphics>
+ <setFont name="Helvetica-BoldOblique" size="18"/>
+ <drawRightString x="523" y="800">RML2PDF Test Suite - Test #22</drawRightString>
+ </pageGraphics>
+ <frame id="first" x1="1in" y1="1in" width="6.27in" height="9.69in" overlapAttachedSpace="1"/>
+ </pageTemplate>
+</template>
+
+<stylesheet>
+ <initialize>
+ <alias id="style.normal" value="style.Normal"/>
+ </initialize>
+
+ <paraStyle name="h1"
+ fontName="Courier-Bold"
+ fontSize="12"
+ spaceBefore = "0.5 cm"
+ />
+
+ <paraStyle name="style1"
+ fontName="Courier"
+ fontSize="10"
+ />
+
+ <paraStyle name="style2"
+ parent="style1"
+ leftIndent = "1in"
+ />
+
+ <paraStyle name="style3"
+ parent="style1"
+ rightIndent = "1in"
+ />
+
+ <paraStyle name="style4"
+ parent="style1"
+ spaceBefore = "2cm"
+ />
+
+ <paraStyle name="style5"
+ parent="style1"
+ spaceAfter = "2cm"
+ />
+
+ <paraStyle name="style6"
+ parent="style1"
+ firstLineIndent = "2cm"
+ />
+
+ <paraStyle name="style7"
+ parent="style1"
+ leading = "15"
+ />
+ <!-- NB Leading isn't just the space between lines - it is
+ expressed as the height of the line PLUS the space between
+ lines. This leading of 15 is equal to a space of 5 pts between
+ lines.-->
+
+ <paraStyle name="style8"
+ parent="style1"
+ bulletFontName = "ZapfDingbats"
+ bulletFontSize = "5"
+ />
+
+ <paraStyle name="style9"
+ parent="style8"
+ bulletFontSize = "10"
+ bulletIndent = "20"
+ />
+
+ <paraStyle name="style10"
+ parent="style9"
+ bulletIndent = "20"
+ leftIndent = "35"
+ />
+
+ <paraStyle name="style11"
+ parent="style1"
+ alignment = "left"
+ />
+
+ <paraStyle name="style12"
+ parent="style1"
+ alignment = "right"
+ />
+
+ <paraStyle name="style13"
+ parent="style1"
+ alignment = "center"
+ />
+
+ <paraStyle name="style14"
+ parent="style1"
+ alignment = "justify"
+ />
+
+ <paraStyle name="style15"
+ parent="style10"
+ bulletFontSize = "5"
+ alignment = "left"
+ />
+
+ <paraStyle name="style16"
+ parent="style10"
+ bulletFontSize = "5"
+ alignment = "right"
+ />
+
+ <paraStyle name="style17"
+ parent="style10"
+ bulletFontSize = "5"
+ alignment = "center"
+ />
+
+ <paraStyle name="style18"
+ parent="style10"
+ bulletFontSize = "5"
+ alignment = "justify"
+ />
+
+ <paraStyle name="style20"
+ parent="style1"
+ textColor = "red"
+ spaceBefore="1cm"
+ spaceAfter="2cm"
+ />
+
+ <paraStyle name="style21"
+ parent="style1"
+ textColor = "green"
+ spaceBefore="1cm"
+ spaceAfter="2cm"
+ />
+
+ <paraStyle name="style22"
+ parent="style1"
+ textColor = "blue"
+ spaceBefore="1cm"
+ spaceAfter="2cm"
+ />
+
+
+ <!-- Colours by Hex value -->
+ <!-- NB THIS CURRENTLY DOESN'T WORK! -->
+ <paraStyle name="style23"
+ parent="style1"
+ textColor = "#FF0000"
+ />
+
+ <paraStyle name="style24"
+ parent="style1"
+ textColor = "#00FF00"
+ />
+
+ <paraStyle name="style25"
+ parent="style1"
+ textColor = "#0000FF"
+ />
+
+
+ <!-- Colours by RGB value -->
+ <!-- NB THIS CURRENTLY DOESN'T WORK! -->
+ <paraStyle name="style26"
+ parent="style1"
+ textColor = "1,0,0"
+ />
+
+ <paraStyle name="style27"
+ parent="style1"
+ textColor = "0,1,0"
+ />
+
+ <paraStyle name="style28"
+ parent="style1"
+ textColor = "0,0,1"
+ />
+
+ <paraStyle name="bugReport"
+ parent="h1"
+ spaceBefore = "0"
+ textColor = "red"
+ />
+
+</stylesheet>
+
+
+<story>
+<para style="h1">Overlap Attached Space tests (define please!)</para>
+<para style="style1">This page tests out a number of attributes of the <b>paraStyle</b> tag.
+This paragraph is in a style we have called "style1". It should be a normal paragraph, set in Courier 12 pt.
+It should be a normal paragraph, set in Courier (not bold).
+It should be a normal paragraph, set in Courier 12 pt.</para>
+
+<para style="h1">Paragraph 2: Indent Left</para>
+<para style="style2">This paragraph is in a style we have called "style2". It should be indented on the left.
+It should be indented on the left by 1 inch.
+It should be indented on the left. </para>
+
+<para style="h1">Paragraph 3: Indent Right</para>
+<para style="style3">This paragraph is in a style we have called "style3". It should be indented on the right. It should be indented on the right by 1 inch. It should be indented on the right. </para>
+
+<para style="h1">Paragraph 4: Space Before</para>
+<para style="style4">This paragraph is in a style we have called "style4". It should be have a space before it. It should be have a space before it of 2 centimeters. It should be have a space before it.</para>
+
+<para style="h1">Paragraph 5: Space After</para>
+<para style="style5">This paragraph is in a style we have called "style5". It should be have a space after it. It should be have a space after it of 2 centimeters. It should be have a space after it.</para>
+
+<para style="h1">Paragraph 6: First Line Indent</para>
+<para style="style6">This paragraph is in a style we have called "style6".It should be have an indented first line. It should be have an first line indented by 2 centimeters. It should be have an indented first line.</para>
+<para style="h1">Paragraph 7: Leading</para>
+<para style="style7">This paragraph is in a style we have called "style7". It should be using leading. It should have a gap of 5 points between each line. It should be using leading. It should have a gap of 5 pt between each line. It should be using leading. The gap between lines should be half of the height of a line. This paragraph should look like it has a line spacing of "1.5 lines" </para>
+
+<para style="h1">Paragraphs 8-12: Simple Bullet Points</para>
+<para style="style8" bulletText="l"><b>Parastyle name="style8" parent="style1" bulletFontName = "ZapfDingbats" bulletFontSize = "5"</b></para>
+<para style="style8" bulletText="l">These paragraphs are in a style we have called "style8"</para>
+<para style="style8" bulletText="l">These five lines should have bullet points.</para>
+<para style="style8" bulletText="l">The bullet font is ZapfDingbats.</para>
+<para style="style8" bulletText="l">The bullet size is 5 points</para>
+<para style="style8" bulletText="l">This is a long line to see how multi-line bullets look: These paragraphs are in a style we have called "style8". These four lines should have bullet points. The bullet font is ZapfDingbats. The bullet size is 5 points</para>
+
+<para style="h1">Paragraph 13-18: Indented Bullet Points</para>
+<para style="style9" bulletText="*"><b>bulletFontName = "ZapfDingbats" bulletFontSize = "10" bulletIndent = "20"</b></para>
+<para style="style9" bulletText="*">These paragraphs are in a style we have called "style9"</para>
+<para style="style9" bulletText="*">These five lines should have <i>indented</i> bullet points.</para>
+<para style="style9" bulletText="*">Bullet points should look like a pointing hand.</para>
+<para style="style9" bulletText="*">Bullet font is still ZapfDingbats, and bullet size is 10 points.</para>
+<para style="style9" bulletText="*">The bullet indent is 20 points</para>
+<para style="style9" bulletText="*">This is a long line to see how multi-line bullets look: These paragraphs are in a style we have called "style9". These four lines should have <i>indented</i> bullet points. Bullet points should look like a pointing hand. Bullet font is still ZapfDingbats, and bullet size is 10 points. The bullet indent is 20 points</para>
+
+<para style="h1">Paragraph 19-24: Indented Bullet Points with a Left Indent for the Text</para>
+<para style="style10" bulletText="*"><b>bulletFontName = "ZapfDingbats" bulletFontSize = "10" bulletIndent = "20" leftIndent = "35"</b></para>
+<para style="style10" bulletText="*">These paragraphs are in a style we have called "style10"</para>
+<para style="style10" bulletText="*">These four lines should have <i>indented</i> bullet points, with the text indented as well.</para>
+<para style="style10" bulletText="*">Bullet points should look like a pointing hand.</para>
+<para style="style10" bulletText="*">Bullet font is still ZapfDingbats, and bullet size is 10 points.</para>
+<para style="style10" bulletText="*">The bullet indent is 20 points, and the text indent is 35 points</para>
+<para style="style10" bulletText="*">This is a long line to see how multi-line bullets look: These paragraphs are in a style we have called "style10". These four lines should have <i>indented</i> bullet points, with the text indented as well. Bullet points should look like a pointing hand. Bullet font is still ZapfDingbats, and bullet size is 10 points.</para>
+
+<para style="h1">Paragraph 25: Left Justified Paragraphs</para>
+<para style="style11">This paragraph is in a style we have called "style11". It should be left justified. It has an argument which states 'alignment = "left"'. It should be left justified. It should be aligned to the left. </para>
+
+<para style="h1">Paragraph 26: Right Justified Paragraphs</para>
+<para style="style12">This paragraph is in a style we have called "style12". It should be right justified. It has an argument which states 'alignment = "right"'. It should be right justified. It should be aligned to the right.</para>
+
+<para style="h1">Paragraph 27: Centered Paragraphs</para>
+<para style="style13">This paragraph is in a style we have called "style13".It should be center justified. It has an argument which states 'alignment = "center"'. It should be centered. It should be aligned to the center.</para>
+
+<para style="h1">Paragraph 28: Justified Paragraphs</para>
+<para style="style14">This paragraph is in a style we have called "style14". It should be justified. It has an argument which states 'alignment = "justify"'. It should be justified.</para>
+
+<para style="h1">Paragraphs 29-32: Bullets using left align, right align, centered and justify.</para>
+<para style="style15" bulletText="l"><b>bulletFontName = "ZapfDingbats" bulletFontSize = "5" bulletIndent = "20" leftIndent = "35" alignment = "left"</b></para>
+<para style="style15" bulletText="l">This is "style15", bullets with a left alignment. (The bullets in this style are based on "style10")</para>
+<para style="style16" bulletText="l"><b>bulletFontName = "ZapfDingbats" bulletFontSize = "5" bulletIndent = "20" leftIndent = "35" alignment = "right"</b></para>
+<para style="style16" bulletText="l">This is "style16", bullets with a right alignment.(The bullets in this style are based on "style10")</para>
+<para style="style17" bulletText="l"><b>bulletFontName = "ZapfDingbats" bulletFontSize = "5" bulletIndent = "20" leftIndent = "35" alignment = "center"</b></para>
+<para style="style17" bulletText="l">This is "style17", bullets with a center alignment.(The bullets in this style are based on "style10")</para>
+<para style="style18" bulletText="l"><b>bulletFontName = "ZapfDingbats" bulletFontSize = "5" bulletIndent = "20" leftIndent = "35" alignment = "justify"</b></para>
+<para style="style18" bulletText="l">This is "style18", bullets with a justified paragraph.(The bullets in this style are based on "style10")</para>
+<para style="style1">These all look wierd, but most people do not actually use these styles because they look so wrong.</para>
+
+<para style="h1">Paragraph 33-35: Using Colours by Colour Name</para>
+<para style="style20">This text should be <b>RED</b></para>
+<para style="style21">This text should be <b>GREEN</b></para>
+<para style="style22">This text should be <b>BLUE</b></para>
+
+<!-- THESE CURRENTLY DON'T WORK - SEE THE STYLES SECTION -->
+
+<para style="h1">Paragraph 36-38: Using Colours by Hex Value</para>
+<para style="style23">This text should be <b>RED</b></para>
+<para style="style24">This text should be <b>GREEN</b></para>
+<para style="style25">This text should be <b>BLUE</b></para>
+
+<para style="h1">Paragraph 39-41: Using Colours by RGB Value</para>
+<para style="style26">This text should be <b>RED</b></para>
+<para style="style27">This text should be <b>GREEN</b></para>
+<para style="style28">This text should be <b>BLUE</b></para>
+
+
+<para style="bugReport">You <b>SHOULD</b> be able to specify colours
+by all the means available to reportlab.lib.colors. Currently, you
+<b>cannot</b> use RGB or HEX values...</para>
+
+<para style="h1">Last Paragraph: Para Tags and Paragraph Content</para>
+<para style="style1">
+ This should <i>not</i> have any extra spaces at the start of <b>this</b>
+ line (though there should be at the start of the heading). RML should ignore
+ additional whitespace, and you should be able to format the actual paragraphs
+ as you like. The text in this paragraph starts on a different line to the
+ actual "para" tag.
+</para>
+
+
+<para style="h1">Quoting and escaping</para>
+<para style="style1">
+ This checks for all the possible quotes: &amp; = &,
+ &lt; = <, &gt; = >, &apos; = ', &quot; = ",
+ &pound; = £.
+</para>
+<para style="style1">
+<i>If this is not italic</i>, <b>and this is not bold</b>, even normal angle brackets are broken.
+</para>
+
+
+</story>
+
+</document>
Added: z3c.rml/trunk/src/z3c/rml/tests/input/rml-examples-032-images.rml
===================================================================
--- z3c.rml/trunk/src/z3c/rml/tests/input/rml-examples-032-images.rml 2007-03-17 16:54:23 UTC (rev 73302)
+++ z3c.rml/trunk/src/z3c/rml/tests/input/rml-examples-032-images.rml 2007-03-17 17:56:35 UTC (rev 73303)
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE document SYSTEM "rml_1_0.dtd">
+<document filename="test_032_images.pdf" invariant="1">
+
+<template pageSize="letter" leftMargin="72" showBoundary="1">
+ <pageTemplate id="main" pageSize="(595,842)">
+ <pageGraphics>
+ <setFont name="Helvetica-BoldOblique" size="18"/>
+ <drawRightString x="504" y="800">RML2PDF Test Suite #32 - Image Functionality</drawRightString>
+ </pageGraphics>
+ <frame id="first" x1="1in" y1="1in" width="6in" height="9in"/>
+ </pageTemplate>
+</template>
+
+<stylesheet>
+ <paraStyle name="h1" fontName="Helvetica-Bold" fontSize="32" leading="36"/>
+ <paraStyle name="h2" fontName="Helvetica-Bold" fontSize="16" leading="20" spaceBefore="12"/>
+ <paraStyle name="normal" fontName="Helvetica" fontSize="10" leading="12" spaceBefore="6"/>
+ <blockTableStyle id="simple">
+ <blockAlignment value="center"/>
+ <blockValign value="middle"/>
+ <blockFont name="Helvetica"/>
+ <lineStyle kind="GRID" colorName="black"/>
+ <lineStyle kind="OUTLINE" colorName="black" thickness="2"/>
+ </blockTableStyle>
+ <blockTableStyle id="spartan">
+ <blockAlignment value="center"/>
+ <blockValign value="middle"/>
+ <blockFont name="Helvetica"/>
+ </blockTableStyle>
+</stylesheet>
+
+<story>
+<para style="h1">Image Functionality</para>
+<para style="normal">This tries out some new features of images.</para>
+
+<para style="h2">PDF files as images</para>
+
+
+<para style="normal">PDF files (or their pagecatcherised pals, .data files) can be used just like images. Below
+you should see a few little internet access icons; zoom in and you'll see they are vector. The original
+PDF is 1296x1296, so the rubbish at top right of the page is the unscaled one being drawn in the illustration below at (0,0).</para>
+
+<spacer length="12"/>
+
+<illustration height="100" width="432">
+ <rect x="0" y="0" width="432" height="100" fill="0" stroke="1"/>
+ <image file="[z3c.rml.tests]/input/images/cylinder.eps" x="0" y="0"/>
+ <image file="[z3c.rml.tests]/input/images/cylinder.eps" x="0" y="0" width="50" height="50" showBoundary="yes"/>
+ <image file="[z3c.rml.tests]/input/images/cylinder.eps" x="100" y="0" width="100" height="50" showBoundary="yes"/>
+ <image file="[z3c.rml.tests]/input/images/cylinder.eps" x="220" y="0" width="50" height="100" showBoundary="yes"/>
+ <image file="[z3c.rml.tests]/input/images/cylinder.eps" x="300" y="25" width="100" height="60" showBoundary="yes" preserveAspectRatio="yes"/>
+ <image file="[z3c.rml.tests]/input/images/cylinder.eps" x="55" y="25" width="40" height="60" showBoundary="yes" preserveAspectRatio="yes"/>
+</illustration>
+
+<para style="normal">The <b>preserveAspectRatio</b> flag lets you place your image in a box and it will be centered intelligently,
+touching either the sides or the top depending on its own aspect ratio.</para>
+<nextPage/>
+<para style="normal">The anchor attribute lets you determine which part of the image corresponds to the given x and y.
+You can choose an anchor from the standard compass points.</para>
+ <blockTable style="simple">
+ <tr>
+ <td><blockTable style="spartan"><tr><td>nw</td></tr><tr><td><illustration height="90" width="90"><stroke color="red" width="2"/><lines>43 43 47 47 43 47 47 43</lines><image file="[z3c.rml.tests]/input/images/cylinder.eps" x="45" y="45" width="30" height="40" showBoundary="yes" preserveAspectRatio="yes" anchor="nw"/></illustration></td></tr></blockTable></td>
+ <td><blockTable style="spartan"><tr><td>n</td></tr><tr><td><illustration height="90" width="90"><stroke color="red" width="2"/><lines>43 43 47 47 43 47 47 43</lines><image file="[z3c.rml.tests]/input/images/cylinder.eps" x="45" y="45" width="30" height="40" showBoundary="yes" preserveAspectRatio="yes" anchor="n"/></illustration></td></tr></blockTable></td>
+ <td><blockTable style="spartan"><tr><td>ne</td></tr><tr><td><illustration height="90" width="90"><stroke color="red" width="2"/><lines>43 43 47 47 43 47 47 43</lines><image file="[z3c.rml.tests]/input/images/cylinder.eps" x="45" y="45" width="30" height="40" showBoundary="yes" preserveAspectRatio="yes" anchor="ne"/></illustration></td></tr></blockTable></td>
+ </tr>
+ <tr>
+ <td><blockTable style="spartan"><tr><td>w</td></tr><tr><td><illustration height="90" width="90"><stroke color="red" width="2"/><lines>43 43 47 47 43 47 47 43</lines><image file="[z3c.rml.tests]/input/images/cylinder.eps" x="45" y="45" width="30" height="40" showBoundary="yes" preserveAspectRatio="yes" anchor="w"/></illustration></td></tr></blockTable></td>
+ <td><blockTable style="spartan"><tr><td>c</td></tr><tr><td><illustration height="90" width="90"><stroke color="red" width="2"/><lines>43 43 47 47 43 47 47 43</lines><image file="[z3c.rml.tests]/input/images/cylinder.eps" x="45" y="45" width="30" height="40" showBoundary="yes" preserveAspectRatio="yes" anchor="c"/></illustration></td></tr></blockTable></td>
+ <td><blockTable style="spartan"><tr><td>e</td></tr><tr><td><illustration height="90" width="90"><stroke color="red" width="2"/><lines>43 43 47 47 43 47 47 43</lines><image file="[z3c.rml.tests]/input/images/cylinder.eps" x="45" y="45" width="30" height="40" showBoundary="yes" preserveAspectRatio="yes" anchor="e"/></illustration></td></tr></blockTable></td>
+ </tr>
+ <tr>
+ <td><blockTable style="spartan"><tr><td>sw</td></tr><tr><td><illustration height="90" width="90"><stroke color="red" width="2"/><lines>43 43 47 47 43 47 47 43</lines><image file="[z3c.rml.tests]/input/images/cylinder.eps" x="45" y="45" width="30" height="40" showBoundary="yes" preserveAspectRatio="yes" anchor="sw"/></illustration></td></tr></blockTable></td>
+ <td><blockTable style="spartan"><tr><td>s</td></tr><tr><td><illustration height="90" width="90"><stroke color="red" width="2"/><lines>43 43 47 47 43 47 47 43</lines><image file="[z3c.rml.tests]/input/images/cylinder.eps" x="45" y="45" width="30" height="40" showBoundary="yes" preserveAspectRatio="yes" anchor="s"/></illustration></td></tr></blockTable></td>
+ <td><blockTable style="spartan"><tr><td>se</td></tr><tr><td><illustration height="90" width="90"><stroke color="red" width="2"/><lines>43 43 47 47 43 47 47 43</lines><image file="[z3c.rml.tests]/input/images/cylinder.eps" x="45" y="45" width="30" height="40" showBoundary="yes" preserveAspectRatio="yes" anchor="se"/></illustration></td></tr></blockTable></td>
+ </tr>
+ </blockTable>
+
+
+<nextPage/>
+<para style="normal">First attempt to place an image which has an artbox. We have created a PDF with MediaBox (the usual size measure) approx 300x400 points,
+and a 100x100 circle in top right corner, and instructed RML to draw it in a box of half size. This seems to work.</para>
+<!--
+<illustration height="200" width="150">
+ <image file="art_box_test.eps" x="0" y="0" width="150" height="200" showBoundary="yes" preserveAspectRatio="yes" pdfBoxType="MediaBox"/>
+</illustration>
+-->
+<para style="normal">Now we try to place it with the art box. The blue should leak out horribly to left and below, but the red circle should
+end up elliptical within the box. (In real life, the art box defines the 'area of interest' and there would be no stuff outside it). This isn't working yet. Also,
+we get an extraneous boundary box from drawPdfImage appearing at top right - shifted the wrong way.</para>
+<!--
+<illustration height="200" width="150">
+ <image file="art_box_test.eps" x="0" y="0" width="150" height="200" showBoundary="yes" preserveAspectRatio="yes" pdfBoxType="ArtBox"/>
+</illustration>
+-->
+<!--imageFigure imageName="art_box_test.eps" imageWidth="150" imageHeight="200" showBoundary="yes" preserveAspectRatio="yes" pdfBoxType="ArtBox"/>
+<imageFigure imageName="art_box_test.eps" imageWidth="150" imageHeight="200" showBoundary="yes" preserveAspectRatio="yes" pdfBoxType="MediaBox"/-->
+<imageFigure imageName="art_box_test.eps" imageWidth="150" imageHeight="200" showBoundary="yes" caption="Align Left" preserveAspectRatio="yes" pdfBoxType="MediaBox" align="LEFT"/>
+<imageFigure imageName="art_box_test.eps" imageWidth="150" imageHeight="200" showBoundary="yes" caption="Align Right" preserveAspectRatio="yes" pdfBoxType="MediaBox" align="RIGHT"/>
+<imageFigure imageName="art_box_test.eps" imageWidth="150" imageHeight="200" showBoundary="yes" caption="Align Center" captionSize="11" captionColor="red" preserveAspectRatio="yes" pdfBoxType="MediaBox" align="CENTER"/>
+<imageFigure imageName="replogo.gif" imageWidth="150" imageHeight="200" showBoundary="yes" caption="Align Left" preserveAspectRatio="yes" pdfBoxType="MediaBox" align="LEFT"/>
+<imageFigure imageName="replogo.gif" imageWidth="150" imageHeight="200" showBoundary="yes" caption="Align Right" preserveAspectRatio="yes" pdfBoxType="MediaBox" align="RIGHT"/>
+<imageFigure imageName="replogo.gif" imageWidth="150" imageHeight="200" showBoundary="yes" caption="Align Center" captionSize="11" captionColor="red" preserveAspectRatio="yes" pdfBoxType="MediaBox" align="CENTER"/>
+
+</story>
+</document>
More information about the Checkins
mailing list