-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
One more test file that is looking good.
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!DOCTYPE document SYSTEM "rml_1_0.dtd"> | ||
<document filename="test_040_colors.pdf" invariant="1"> | ||
|
||
<template pageSize="letter" leftMargin="72" showBoundary="1"> | ||
<pageTemplate id="main" pageSize="letter portrait"> | ||
<pageGraphics> | ||
<setFont name="Helvetica-Bold" size="18"/> | ||
<drawString x="35" y="760">RML Example 41: Colors</drawString> | ||
<image file="logo_no_bar.png" preserveAspectRatio="1" x="488" y="730" width="72" height="72"/> | ||
<image file="strapline.png" preserveAspectRatio="1" x="35" y="0" width="525" /> | ||
</pageGraphics> | ||
<frame id="second" x1="35" y1="45" width="525" height="590"/> | ||
</pageTemplate> | ||
</template> | ||
|
||
<stylesheet> | ||
<initialize> | ||
<alias id="style.normal" value="style.Normal"/> | ||
</initialize> | ||
<paraStyle name="h1" fontName="Helvetica-BoldOblique" fontSize="32" leading="36"/> | ||
<paraStyle name="normal" fontName="Helvetica" fontSize="10" leading="12"/> | ||
<paraStyle name="spaced" fontName="Helvetica" fontSize="10" leading="12" | ||
spaceBefore="12" spaceAfter="12"/> | ||
<paraStyle name="intro" fontName="Helvetica" fontSize="12" leading="12" spaceAfter="12"/> | ||
</stylesheet> | ||
|
||
<story> | ||
<storyPlace x="35" y="660" width="525" height="73" origin="page"> | ||
<para style="intro">RML (Report Markup Language) is ReportLab's own language for specifying the appearance of a printed page, which is converted into PDF by the utility rml2pdf.</para> | ||
<hr color="white" thickness="8pt"/> | ||
<para style="intro">These RML samples showcase techniques and features for generating various types of ouput and are distributed within our commercial package as test cases. Each should be self explanatory and stand alone.</para> | ||
<illustration height="3" width="525" align="center"> | ||
<fill color= "(0,0.99,0.97,0.0)" /> | ||
<rect x="0" y = "-12" width="525" height="3" round="1" fill="1" stroke = "Yes" /> | ||
</illustration> | ||
</storyPlace> | ||
<para style="normal">This document briefly shows a few of the ways of declaring colors in RML.</para> | ||
<para style="normal">This text should be <font color="red">red</font>, declared with <font color="red"></para> | ||
<para style="normal">This text should be <font color="#00ff00">green</font>, declared with <font color="#00ff00"></para> | ||
<para style="normal">This text should be <font color="(0,0,1.0)">blue</font>, declared with <font color="(0.0,0.0,1.0)"></para> | ||
|
||
</story> | ||
|
||
</document> |