Changeset 405 for pkpgcounter

Show
Ignore:
Timestamp:
09/11/06 23:15:11 (18 years ago)
Author:
jerome
Message:

Improved the color testsuite : it now includes the expected results.

Location:
pkpgcounter/trunk/tests
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/tests/colors.pdf

    r380 r405  
    441 0 obj 
    55% The standard fonts dictionary 
    6 << /F1 2 0 R >> 
     6<< /F1 2 0 R 
     7 /F2 3 0 R 
     8 /F3 13 0 R >> 
    79endobj 
    810% 'F1': class PDFType1Font  
     
    1517 /Type /Font >> 
    1618endobj 
     19% 'F2': class PDFType1Font  
     203 0 obj 
     21% Font Courier 
     22<< /BaseFont /Courier 
     23 /Encoding /WinAnsiEncoding 
     24 /Name /F2 
     25 /Subtype /Type1 
     26 /Type /Font >> 
     27endobj 
    1728% 'Page1': class PDFPage  
    18 3 0 obj 
    19 % Page dictionary 
    20 << /Contents 15 0 R 
    21  /MediaBox [ 0 
    22   0 
    23   595.2756 
    24   841.8898 ] 
    25  /Parent 14 0 R 
     294 0 obj 
     30% Page dictionary 
     31<< /Contents 18 0 R 
     32 /MediaBox [ 0 
     33  0 
     34  595.2756 
     35  841.8898 ] 
     36 /Parent 17 0 R 
    2637 /Resources << /Font 1 0 R 
    2738  /ProcSet [ /PDF 
     
    3546endobj 
    3647% 'Page2': class PDFPage  
    37 4 0 obj 
    38 % Page dictionary 
    39 << /Contents 16 0 R 
    40  /MediaBox [ 0 
    41   0 
    42   595.2756 
    43   841.8898 ] 
    44  /Parent 14 0 R 
     485 0 obj 
     49% Page dictionary 
     50<< /Contents 19 0 R 
     51 /MediaBox [ 0 
     52  0 
     53  595.2756 
     54  841.8898 ] 
     55 /Parent 17 0 R 
    4556 /Resources << /Font 1 0 R 
    4657  /ProcSet [ /PDF 
     
    5465endobj 
    5566% 'Page3': class PDFPage  
    56 5 0 obj 
    57 % Page dictionary 
    58 << /Contents 17 0 R 
    59  /MediaBox [ 0 
    60   0 
    61   595.2756 
    62   841.8898 ] 
    63  /Parent 14 0 R 
     676 0 obj 
     68% Page dictionary 
     69<< /Contents 20 0 R 
     70 /MediaBox [ 0 
     71  0 
     72  595.2756 
     73  841.8898 ] 
     74 /Parent 17 0 R 
    6475 /Resources << /Font 1 0 R 
    6576  /ProcSet [ /PDF 
     
    7384endobj 
    7485% 'Page4': class PDFPage  
    75 6 0 obj 
    76 % Page dictionary 
    77 << /Contents 18 0 R 
    78  /MediaBox [ 0 
    79   0 
    80   595.2756 
    81   841.8898 ] 
    82  /Parent 14 0 R 
     867 0 obj 
     87% Page dictionary 
     88<< /Contents 21 0 R 
     89 /MediaBox [ 0 
     90  0 
     91  595.2756 
     92  841.8898 ] 
     93 /Parent 17 0 R 
    8394 /Resources << /Font 1 0 R 
    8495  /ProcSet [ /PDF 
     
    92103endobj 
    93104% 'Page5': class PDFPage  
    94 7 0 obj 
    95 % Page dictionary 
    96 << /Contents 19 0 R 
    97  /MediaBox [ 0 
    98   0 
    99   595.2756 
    100   841.8898 ] 
    101  /Parent 14 0 R 
     1058 0 obj 
     106% Page dictionary 
     107<< /Contents 22 0 R 
     108 /MediaBox [ 0 
     109  0 
     110  595.2756 
     111  841.8898 ] 
     112 /Parent 17 0 R 
    102113 /Resources << /Font 1 0 R 
    103114  /ProcSet [ /PDF 
     
    111122endobj 
    112123% 'Page6': class PDFPage  
    113 8 0 obj 
    114 % Page dictionary 
    115 << /Contents 20 0 R 
    116  /MediaBox [ 0 
    117   0 
    118   595.2756 
    119   841.8898 ] 
    120  /Parent 14 0 R 
     1249 0 obj 
     125% Page dictionary 
     126<< /Contents 23 0 R 
     127 /MediaBox [ 0 
     128  0 
     129  595.2756 
     130  841.8898 ] 
     131 /Parent 17 0 R 
    121132 /Resources << /Font 1 0 R 
    122133  /ProcSet [ /PDF 
     
    130141endobj 
    131142% 'Page7': class PDFPage  
    132 9 0 obj 
    133 % Page dictionary 
    134 << /Contents 21 0 R 
    135  /MediaBox [ 0 
    136   0 
    137   595.2756 
    138   841.8898 ] 
    139  /Parent 14 0 R 
     14310 0 obj 
     144% Page dictionary 
     145<< /Contents 24 0 R 
     146 /MediaBox [ 0 
     147  0 
     148  595.2756 
     149  841.8898 ] 
     150 /Parent 17 0 R 
    140151 /Resources << /Font 1 0 R 
    141152  /ProcSet [ /PDF 
     
    149160endobj 
    150161% 'Page8': class PDFPage  
    151 10 0 obj 
    152 % Page dictionary 
    153 << /Contents 22 0 R 
    154  /MediaBox [ 0 
    155   0 
    156   595.2756 
    157   841.8898 ] 
    158  /Parent 14 0 R 
     16211 0 obj 
     163% Page dictionary 
     164<< /Contents 25 0 R 
     165 /MediaBox [ 0 
     166  0 
     167  595.2756 
     168  841.8898 ] 
     169 /Parent 17 0 R 
    159170 /Resources << /Font 1 0 R 
    160171  /ProcSet [ /PDF 
     
    168179endobj 
    169180% 'Page9': class PDFPage  
    170 11 0 obj 
    171 % Page dictionary 
    172 << /Contents 23 0 R 
    173  /MediaBox [ 0 
    174   0 
    175   595.2756 
    176   841.8898 ] 
    177  /Parent 14 0 R 
    178  /Resources << /Font 1 0 R 
    179   /ProcSet [ /PDF 
    180    /Text 
    181    /ImageB 
    182    /ImageC 
    183    /ImageI ] >> 
    184  /Rotate 0 
    185  /Trans <<  >> 
    186  /Type /Page >> 
    187 endobj 
    188 % 'R12': class PDFCatalog  
    18918112 0 obj 
     182% Page dictionary 
     183<< /Contents 26 0 R 
     184 /MediaBox [ 0 
     185  0 
     186  595.2756 
     187  841.8898 ] 
     188 /Parent 17 0 R 
     189 /Resources << /Font 1 0 R 
     190  /ProcSet [ /PDF 
     191   /Text 
     192   /ImageB 
     193   /ImageC 
     194   /ImageI ] >> 
     195 /Rotate 0 
     196 /Trans <<  >> 
     197 /Type /Page >> 
     198endobj 
     199% 'F3': class PDFType1Font  
     20013 0 obj 
     201% Font Helvetica-Bold 
     202<< /BaseFont /Helvetica-Bold 
     203 /Encoding /WinAnsiEncoding 
     204 /Name /F3 
     205 /Subtype /Type1 
     206 /Type /Font >> 
     207endobj 
     208% 'Page10': class PDFPage  
     20914 0 obj 
     210% Page dictionary 
     211<< /Contents 27 0 R 
     212 /MediaBox [ 0 
     213  0 
     214  595.2756 
     215  841.8898 ] 
     216 /Parent 17 0 R 
     217 /Resources << /Font 1 0 R 
     218  /ProcSet [ /PDF 
     219   /Text 
     220   /ImageB 
     221   /ImageC 
     222   /ImageI ] >> 
     223 /Rotate 0 
     224 /Trans <<  >> 
     225 /Type /Page >> 
     226endobj 
     227% 'R15': class PDFCatalog  
     22815 0 obj 
    190229% Document Root 
    191 << /Outlines 24 0 R 
     230<< /Outlines 28 0 R 
    192231 /PageMode /UseNone 
    193  /Pages 14 0 R 
     232 /Pages 17 0 R 
    194233 /Type /Catalog >> 
    195234endobj 
    196 % 'R13': class PDFInfo  
    197 13 0 obj 
     235% 'R16': class PDFInfo  
     23616 0 obj 
    198237<< /Author (anonymous) 
    199  /CreationDate (20060828233705) 
     238 /CreationDate (20060911231409) 
    200239 /Producer (ReportLab http://www.reportlab.com) 
    201240 /Subject (unspecified) 
    202241 /Title (untitled) >> 
    203242endobj 
    204 % 'R14': class PDFPages  
    205 14 0 obj 
     243% 'R17': class PDFPages  
     24417 0 obj 
    206245% page tree 
    207 << /Count 9 
    208  /Kids [ 3 0 R 
    209   4 0 R 
     246<< /Count 10 
     247 /Kids [ 4 0 R 
    210248  5 0 R 
    211249  6 0 R 
     
    214252  9 0 R 
    215253  10 0 R 
    216   11 0 R ] 
     254  11 0 R 
     255  12 0 R 
     256  14 0 R ] 
    217257 /Type /Pages >> 
    218258endobj 
    219 % 'R15': class PDFStream  
    220 15 0 obj 
    221 % page stream 
    222 << /Filter [ /ASCII85Decode 
    223   /FlateDecode ] 
    224  /Length 887 >> 
    225 stream 
    226 Gat%!CJ3_B'`BZZ+"lQ)/m9WNc#dK_AOL*,@;uZ!pa)-\::$-B,u*dP^Ya.1 
    227 C:584%.e4Sc:Q=+]pHOQ]ZBf1Q*<g<m"tf5+jGRk?3odI>c.CF0,*l!,4U%r 
    228 Jd`Vrm)=gR&=C`eO!J]HBaI:D_&LH@CJ1`cFL2(GOD<"4j154r+;?5=OSSVE 
    229 4k<Nq>IoJe8o_a+4<<\Wl1c+D5EL>B?Sa$IRe3"g6'hYhaB^5_papRC;2()^ 
    230 =[Jg)4[2$o]$=5Y4gWe)C?6-9VJd[(`?]\4r)3]]Q);3/+G#uaYW2_j1!sUG 
    231 >+(QnP@TB=M_q"O+5]@(>B.0KXOmj^br)M&8MFKu10gO*5gG(.M%#eG^@Y9r 
    232 #,O.hXe<h9(g9dE;FkrYLEOKh.D@X_9,+[a\W_er_WWDQN;hA"OMEe2^;K[4 
    233 <RP\)SKr21,4Po$Hd&#<0H,Lp!IS`:?fct<A-<DJpd2@5SVP=/KT69/`J-F] 
    234 _s,gdGX1/S5N]sH$,Wredt-EhKaG1$muP/O]cNcN[1b_AH^>01LOs<>H,9+d 
    235 (G1GppZbph_A^eLUf,[118>5W\+P^%Z>MPM>ZQ8.nS2n^4ejboFisNGZR*j- 
    236 Q5cdSonpl"l;P3VC>JOXKn!lKVPH8r7kfc`IU%A7=dr#k"gW9cLQ-+MK-GO& 
    237 YoeD2?9b[\"ZV0?.UYtFR42#K/0<aKH3"h+O8\q[cAh]rb"6&@mKTs`_SJZJ 
    238 STa(838DUq^q#AcfY-[+d14=`.=5PGG[^?fX0_^+$?dfoDpN="h4K!qee`Qe 
    239 S3X\f\JFX;cn*nIS3YdNm+Nl7b1of>:$4,*A=*H6W.,)e1u1U'39)DLP7c+2 
    240 +'AsE@bBT8#I5j(:B~>endstream 
    241  
    242 endobj 
    243 % 'R16': class PDFStream  
    244 16 0 obj 
     259% 'R18': class PDFStream  
     26018 0 obj 
     261% page stream 
     262<< /Filter [ /ASCII85Decode 
     263  /FlateDecode ] 
     264 /Length 923 >> 
     265stream 
     266Gat%"D,8n?&H7^.IlJSu_$$IWCK%TS!Y$sed_m=Q,egdKds-#qaDo;tmrq>* 
     267AF1kUWVYmBchX.o5?@n2I$!c]/`8+0M]2`9Kd6c[4$Fqan3&cokS@G$WETY! 
     268nR-q?*'reAYo=@4`dpM:0SX*=-V5p?8/80A]J.^Z$CKu*n.ZdLE\KM/SBDOE 
     269epW#.V:+Lt:/<&/%E[f#6,I:H6n*C/%(r*t`QK^W="5Jd8e)^+7WT'S<+[&K 
     2703Fl;F?t(GVit$1rboZ\j)>YjBVOUmr1em#o/g];6U\)c&7_IP%L[dXn*sS)^ 
     271$l)27A-=3Ln`gNN_.9*o@YX/W+]Q8u.r,jdZ%ZSYe9B(+/hkYrE;^gjn-uEO 
     2721m^kVKTpE*-_o':CBT,006RZ@#hfPb9<'^VWUs=tk*/q@M^^DW\Q"R%`hC#* 
     273d\DBA5MHTdoa>)5Tkj-aiJtF-,oB/</8if)aAXTMN7ZH`O1rRS0<Fr!XQ07# 
     274IjJn-jumW'*q\sf-+-5j)[_<_quOQ@j4Y@JGXK0CB6`POCMkGS2?Y#7$UED# 
     275M@VWKN-kJ$/rWdrhd9FrcfnXIESu==c<=`-]W.g-X9[:"KAAWA+%=pX\b4he 
     276N5@ASe``,BVku7[VA<`[W"H$pJ$qf8`WLKT0h;!hf56raRW=cJTq%H*VWsoK 
     277L.:EQeK3MT[&rS=&_T<Q0CX_V!EdY#]\UJ'e[j`qZQ"S\m3/Z'U>ZYCL.n:& 
     278<@)5?IK`t>_;jnt>X(?[cTAX)okfq2*,j+;c>j(Yf<+GBa<tr>$?H?:<lXZZ 
     279-Io=KkND2a\`[7DCupmq[R5_pgTkHRe.;P4VX<H[b6i@cQri]hkQ-jqMSj0o 
     280""g`E[DKZfMtShuJ4a^n8MS2hV.P;c/fd%d[Kn/8d\^u.n/#sU91A~>endstream 
     281 
     282endobj 
     283% 'R19': class PDFStream  
     28419 0 obj 
    245285% page stream 
    246286<< /Filter [ /ASCII85Decode 
     
    252292 
    253293endobj 
    254 % 'R17': class PDFStream  
    255 17 0 obj 
     294% 'R20': class PDFStream  
     29520 0 obj 
    256296% page stream 
    257297<< /Filter [ /ASCII85Decode 
     
    263303 
    264304endobj 
    265 % 'R18': class PDFStream  
    266 18 0 obj 
     305% 'R21': class PDFStream  
     30621 0 obj 
    267307% page stream 
    268308<< /Filter [ /ASCII85Decode 
     
    274314 
    275315endobj 
    276 % 'R19': class PDFStream  
    277 19 0 obj 
     316% 'R22': class PDFStream  
     31722 0 obj 
    278318% page stream 
    279319<< /Filter [ /ASCII85Decode 
     
    285325 
    286326endobj 
    287 % 'R20': class PDFStream  
    288 20 0 obj 
     327% 'R23': class PDFStream  
     32823 0 obj 
    289329% page stream 
    290330<< /Filter [ /ASCII85Decode 
     
    296336 
    297337endobj 
    298 % 'R21': class PDFStream  
    299 21 0 obj 
     338% 'R24': class PDFStream  
     33924 0 obj 
    300340% page stream 
    301341<< /Filter [ /ASCII85Decode 
     
    307347 
    308348endobj 
    309 % 'R22': class PDFStream  
    310 22 0 obj 
     349% 'R25': class PDFStream  
     35025 0 obj 
    311351% page stream 
    312352<< /Filter [ /ASCII85Decode 
     
    318358 
    319359endobj 
    320 % 'R23': class PDFStream  
    321 23 0 obj 
     360% 'R26': class PDFStream  
     36126 0 obj 
    322362% page stream 
    323363<< /Filter [ /ASCII85Decode 
     
    329369 
    330370endobj 
    331 % 'R24': class PDFOutlines  
    332 24 0 obj 
     371% 'R27': class PDFStream  
     37227 0 obj 
     373% page stream 
     374<< /Filter [ /ASCII85Decode 
     375  /FlateDecode ] 
     376 /Length 894 >> 
     377stream 
     378Gau0C9lJc?%)!J@J)I0=2@Q$BIJ9,'m@h_"0JMSO-H_dnW<:m\p[dRX7H5dK 
     379,WVh+":h9K8+P'7_LT':epYlr0Zi7n%0M?H/V+3P+SuJsg%ed[^k&J&_%Q)d 
     380YW!Y[MGV8#BPRq+PX2a40A$4^DVhl,gq3EnBPP'T$J?NB^?thB0\Z=CngYAO 
     381(+fXEhAJmRkOk^R^ub/XR$U6EeXLsS^-hMUTR(*N[MuZiMnEq8PQ,gqZ762` 
     382XHlL\5n4F+#*r9"L6ornJQ3-iXsdY5(Y`@0!d?q@XoHpt;cZWleA0tSG]kt* 
     383Q0X7L-eAO,jfSWX.D`mdBjNnTg`jspB#bS?ga`!2q<GX9E!__85qJiom%f=8 
     384+Q64=XtE%CAX%u#PVB/:2IW[V%kAKZX[glLX>D!L(t&J>A7;PN*gXjebl(^^ 
     385"$nQeL9\t+'k9W^TkQocWE1V$MFP3.Lm>u`'uXUi?Rt&&;Q<\U?`@^d"&#=O 
     386B]/dB8J'*me[aR,Bf0U9<_?U^GMN`H-i:n+$T%Z24Ul]gi#,HD:5,$mn*kLV 
     3873fuj5)Sn1r91%eJXiBLd_P2"N/h&=q7fB*)iA'U>gLC<LfN_<(7Xas3,/RO/ 
     388g"oZl)(5=$&.>ra5@q>_+&&*'kq!*@rHIW-Hh'&dl&]nNp."/,qCJ3HdiiR? 
     389C"fqVm'@ZkS.8DoZ62W@%-E`"c((6-\KnDP4]).lE^:A6ris&-MGaE+*^bco 
     390F%N>J2a5F^$)Pu-)/!Yr)+5'$AWY<#Vp&EPh4@#1:psHc?/"XR-:Y7:?hC=m 
     391ARoQJ6[U_u'IT8Gj/<,E_<;e-NA5;D3E`]9KAfq7D:`@ST'G9,(l(SNQ9$1) 
     3929i"KSn0bG1h;8Y(BE%uHN0WZ~>endstream 
     393 
     394endobj 
     395% 'R28': class PDFOutlines  
     39628 0 obj 
    333397<< /Count 0 
    334398 /Type /Outlines >> 
    335399endobj 
    336400xref 
    337 0 25 
     4010 29 
    3384020000000000 65535 f 
    3394030000000113 00000 n 
    340 0000000209 00000 n 
    341 0000000372 00000 n 
    342 0000000663 00000 n 
    343 0000000954 00000 n 
    344 0000001245 00000 n 
    345 0000001536 00000 n 
    346 0000001827 00000 n 
    347 0000002118 00000 n 
    348 0000002409 00000 n 
    349 0000002701 00000 n 
    350 0000002994 00000 n 
    351 0000003132 00000 n 
    352 0000003330 00000 n 
    353 0000003511 00000 n 
    354 0000004543 00000 n 
    355 0000004796 00000 n 
    356 0000005050 00000 n 
    357 0000005304 00000 n 
    358 0000005557 00000 n 
    359 0000005808 00000 n 
    360 0000006060 00000 n 
    361 0000006312 00000 n 
    362 0000006567 00000 n 
     4040000000234 00000 n 
     4050000000399 00000 n 
     4060000000558 00000 n 
     4070000000849 00000 n 
     4080000001140 00000 n 
     4090000001431 00000 n 
     4100000001722 00000 n 
     4110000002013 00000 n 
     4120000002304 00000 n 
     4130000002596 00000 n 
     4140000002888 00000 n 
     4150000003182 00000 n 
     4160000003357 00000 n 
     4170000003650 00000 n 
     4180000003788 00000 n 
     4190000003986 00000 n 
     4200000004179 00000 n 
     4210000005247 00000 n 
     4220000005500 00000 n 
     4230000005754 00000 n 
     4240000006008 00000 n 
     4250000006261 00000 n 
     4260000006512 00000 n 
     4270000006764 00000 n 
     4280000007016 00000 n 
     4290000007269 00000 n 
     4300000008310 00000 n 
    363431trailer 
    364432<< /ID  
    365433  % ReportLab generated PDF document -- digest (http://www.reportlab.com)  
    366   [(\340\(*\203\347#4m\3439\361`\027\324\364\222) (\340\(*\203\347#4m\3439\361`\027\324\364\222)]  
     434  [(s\242'\002\325\364\351\177k"\2261\351\326\222G) (s\242'\002\325\364\351\177k"\2261\351\326\222G)]  
    367435  
    368  /Info 13 0 R 
    369  /Root 12 0 R 
    370  /Size 25 >> 
     436 /Info 16 0 R 
     437 /Root 15 0 R 
     438 /Size 29 >> 
    371439startxref 
    372 6619 
     4408362 
    373441%%EOF 
  • pkpgcounter/trunk/tests/runcolors.py

    r381 r405  
    2323# 
    2424 
    25 """This document was created with the help of the ReportLab ToolKit (tm) 
    26 available as Free Software from http://www.reportlab.org 
     25"""This document was created with the help of the ReportLab 
     26ToolKit (tm) available as Free Software from : 
    2727 
    28 It contains 9 pages, including this one. 
     28        http://www.reportlab.org 
    2929 
    30 Each page after this one is entirely filled with 100% of a particular 
    31 color, as described below : 
     30It contains 10 pages, including this one. 
    3231 
    33 Page 1 ====> This notice 
    34 Page 2 ====> Red 
    35 Page 3 ====> Green 
    36 Page 4 ====> Blue 
    37 Page 5 ====> Cyan 
    38 Page 6 ====> Magenta 
    39 Page 7 ====> Yellow 
    40 Page 8 ====> Black 
    41 Page 9 ====> White 
     32Each page after this one is entirely filled with 100% 
     33of a particular color, as described below : 
    4234 
    43 This document helps to ensure that the computation of ink coverage 
    44 made by pkpgcounter works as expected. 
     35Page  1 ====> This notice 
     36Page  2 ====> Red 
     37Page  3 ====> Green 
     38Page  4 ====> Blue 
     39Page  5 ====> Cyan 
     40Page  6 ====> Magenta 
     41Page  7 ====> Yellow 
     42Page  8 ====> Black 
     43Page  9 ====> White 
     44Page 10 ====> The expected results. 
     45 
     46This document helps to ensure that the computation of 
     47ink coverage made by pkpgcounter works as expected. 
    4548 
    4649To check by yourself : 
     
    5356 
    5457Please report any problem to : alet@librelogiciel.com 
     58""" 
     59 
     60lastpage = """For each colorspace, the results for the last page will differ a bit from what is below. 
     61The important values are the one for pages 2 to 9 included. 
     62 
     63Colorspace : BW 
     64B :   2.355336% 
     65B :  70.196078% 
     66B :  41.568627% 
     67B :  88.627451% 
     68B :  30.196078% 
     69B :  58.823529% 
     70B :  11.764706% 
     71B : 100.000000% 
     72B :   0.000000% 
     73B :   3.500669% 
     74 
     75Colorspace : RGB 
     76R :  97.644664%      G :  97.644664%      B :  97.644664% 
     77R : 100.000000%      G :   0.000000%      B :   0.000000% 
     78R :   0.000000%      G : 100.000000%      B :   0.000000% 
     79R :   0.000000%      G :   0.000000%      B : 100.000000% 
     80R :   0.000000%      G : 100.000000%      B : 100.000000% 
     81R : 100.000000%      G :   0.000000%      B : 100.000000% 
     82R : 100.000000%      G : 100.000000%      B :   0.000000% 
     83R :   0.000000%      G :   0.000000%      B :   0.000000% 
     84R : 100.000000%      G : 100.000000%      B : 100.000000% 
     85R :  96.499331%      G :  96.499331%      B :  96.499331% 
     86 
     87Colorspace : CMY 
     88C :   2.355336%      M :   2.355336%      Y :   2.355336% 
     89C :   0.000000%      M : 100.000000%      Y : 100.000000% 
     90C : 100.000000%      M :   0.000000%      Y : 100.000000% 
     91C : 100.000000%      M : 100.000000%      Y :   0.000000% 
     92C : 100.000000%      M :   0.000000%      Y :   0.000000% 
     93C :   0.000000%      M : 100.000000%      Y :   0.000000% 
     94C :   0.000000%      M :   0.000000%      Y : 100.000000% 
     95C : 100.000000%      M : 100.000000%      Y : 100.000000% 
     96C :   0.000000%      M :   0.000000%      Y :   0.000000% 
     97C :   3.500669%      M :   3.500669%      Y :   3.500669% 
     98 
     99Colorspace : CMYK 
     100C :   0.000000%      M :   0.000000%      Y :   0.000000%      K :   2.355336% 
     101C :   0.000000%      M : 100.000000%      Y : 100.000000%      K :   0.000000% 
     102C : 100.000000%      M :   0.000000%      Y : 100.000000%      K :   0.000000% 
     103C : 100.000000%      M : 100.000000%      Y :   0.000000%      K :   0.000000% 
     104C : 100.000000%      M :   0.000000%      Y :   0.000000%      K :   0.000000% 
     105C :   0.000000%      M : 100.000000%      Y :   0.000000%      K :   0.000000% 
     106C :   0.000000%      M :   0.000000%      Y : 100.000000%      K :   0.000000% 
     107C :   0.000000%      M :   0.000000%      Y :   0.000000%      K : 100.000000% 
     108C :   0.000000%      M :   0.000000%      Y :   0.000000%      K :   0.000000% 
     109C :   0.000000%      M :   0.000000%      Y :   0.000000%      K :   3.500669% 
    55110""" 
    56111 
     
    72127     
    73128    # First we output the explanations on the first page. 
    74     canv.setFont("Helvetica", 16) 
     129    canv.setFont("Courier", 14) 
    75130    for line in __doc__.split("\n") : 
    76131        canv.drawString(xbase, ybase, line) 
    77         ybase -= 24 
     132        ybase -= 18 
    78133    canv.showPage() 
    79134     
     
    96151        canv.rect(0, 0, width, height, fill=1) 
    97152        canv.showPage() 
     153         
     154    # Finally outputs the expected results. 
     155    canv.setFont("Helvetica-Bold", 16) 
     156    canv.drawCentredString(width/2.0, height-1.5*cm, "Expected Results :") 
     157    ybase = height - 3*cm 
     158    canv.setFont("Courier", 10) 
     159    for line in lastpage.split("\n") : 
     160        canv.drawString(xbase, ybase, line) 
     161        ybase -= 14 
     162    canv.showPage() 
     163         
    98164    canv.save()