Changeset 405 for pkpgcounter/trunk
- Timestamp:
- 09/11/06 23:15:11 (18 years ago)
- Location:
- pkpgcounter/trunk/tests
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/tests/colors.pdf
r380 r405 4 4 1 0 obj 5 5 % The standard fonts dictionary 6 << /F1 2 0 R >> 6 << /F1 2 0 R 7 /F2 3 0 R 8 /F3 13 0 R >> 7 9 endobj 8 10 % 'F1': class PDFType1Font … … 15 17 /Type /Font >> 16 18 endobj 19 % 'F2': class PDFType1Font 20 3 0 obj 21 % Font Courier 22 << /BaseFont /Courier 23 /Encoding /WinAnsiEncoding 24 /Name /F2 25 /Subtype /Type1 26 /Type /Font >> 27 endobj 17 28 % 'Page1': class PDFPage 18 30 obj19 % Page dictionary 20 << /Contents 1 50 R21 /MediaBox [ 0 22 0 23 595.2756 24 841.8898 ] 25 /Parent 1 40 R29 4 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 26 37 /Resources << /Font 1 0 R 27 38 /ProcSet [ /PDF … … 35 46 endobj 36 47 % 'Page2': class PDFPage 37 40 obj38 % Page dictionary 39 << /Contents 1 60 R40 /MediaBox [ 0 41 0 42 595.2756 43 841.8898 ] 44 /Parent 1 40 R48 5 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 45 56 /Resources << /Font 1 0 R 46 57 /ProcSet [ /PDF … … 54 65 endobj 55 66 % 'Page3': class PDFPage 56 50 obj57 % Page dictionary 58 << /Contents 170 R59 /MediaBox [ 0 60 0 61 595.2756 62 841.8898 ] 63 /Parent 1 40 R67 6 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 64 75 /Resources << /Font 1 0 R 65 76 /ProcSet [ /PDF … … 73 84 endobj 74 85 % 'Page4': class PDFPage 75 60 obj76 % Page dictionary 77 << /Contents 180 R78 /MediaBox [ 0 79 0 80 595.2756 81 841.8898 ] 82 /Parent 1 40 R86 7 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 83 94 /Resources << /Font 1 0 R 84 95 /ProcSet [ /PDF … … 92 103 endobj 93 104 % 'Page5': class PDFPage 94 70 obj95 % Page dictionary 96 << /Contents 190 R97 /MediaBox [ 0 98 0 99 595.2756 100 841.8898 ] 101 /Parent 1 40 R105 8 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 102 113 /Resources << /Font 1 0 R 103 114 /ProcSet [ /PDF … … 111 122 endobj 112 123 % 'Page6': class PDFPage 113 80 obj114 % Page dictionary 115 << /Contents 2 00 R116 /MediaBox [ 0 117 0 118 595.2756 119 841.8898 ] 120 /Parent 1 40 R124 9 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 121 132 /Resources << /Font 1 0 R 122 133 /ProcSet [ /PDF … … 130 141 endobj 131 142 % 'Page7': class PDFPage 132 90 obj133 % Page dictionary 134 << /Contents 2 10 R135 /MediaBox [ 0 136 0 137 595.2756 138 841.8898 ] 139 /Parent 1 40 R143 10 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 140 151 /Resources << /Font 1 0 R 141 152 /ProcSet [ /PDF … … 149 160 endobj 150 161 % 'Page8': class PDFPage 151 1 00 obj152 % Page dictionary 153 << /Contents 2 20 R154 /MediaBox [ 0 155 0 156 595.2756 157 841.8898 ] 158 /Parent 1 40 R162 11 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 159 170 /Resources << /Font 1 0 R 160 171 /ProcSet [ /PDF … … 168 179 endobj 169 180 % 'Page9': class PDFPage 170 11 0 obj171 % Page dictionary172 << /Contents 23 0 R173 /MediaBox [ 0174 0175 595.2756176 841.8898 ]177 /Parent 14 0 R178 /Resources << /Font 1 0 R179 /ProcSet [ /PDF180 /Text181 /ImageB182 /ImageC183 /ImageI ] >>184 /Rotate 0185 /Trans << >>186 /Type /Page >>187 endobj188 % 'R12': class PDFCatalog189 181 12 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 >> 198 endobj 199 % 'F3': class PDFType1Font 200 13 0 obj 201 % Font Helvetica-Bold 202 << /BaseFont /Helvetica-Bold 203 /Encoding /WinAnsiEncoding 204 /Name /F3 205 /Subtype /Type1 206 /Type /Font >> 207 endobj 208 % 'Page10': class PDFPage 209 14 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 >> 226 endobj 227 % 'R15': class PDFCatalog 228 15 0 obj 190 229 % Document Root 191 << /Outlines 2 40 R230 << /Outlines 28 0 R 192 231 /PageMode /UseNone 193 /Pages 1 40 R232 /Pages 17 0 R 194 233 /Type /Catalog >> 195 234 endobj 196 % 'R1 3': class PDFInfo197 1 30 obj235 % 'R16': class PDFInfo 236 16 0 obj 198 237 << /Author (anonymous) 199 /CreationDate (20060 828233705)238 /CreationDate (20060911231409) 200 239 /Producer (ReportLab http://www.reportlab.com) 201 240 /Subject (unspecified) 202 241 /Title (untitled) >> 203 242 endobj 204 % 'R1 4': class PDFPages205 1 40 obj243 % 'R17': class PDFPages 244 17 0 obj 206 245 % page tree 207 << /Count 9 208 /Kids [ 3 0 R 209 4 0 R 246 << /Count 10 247 /Kids [ 4 0 R 210 248 5 0 R 211 249 6 0 R … … 214 252 9 0 R 215 253 10 0 R 216 11 0 R ] 254 11 0 R 255 12 0 R 256 14 0 R ] 217 257 /Type /Pages >> 218 258 endobj 219 % 'R1 5': class PDFStream220 1 50 obj221 % 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.1227 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=OSSVE229 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~>endstream241 242 endobj 243 % 'R1 6': class PDFStream244 1 60 obj259 % 'R18': class PDFStream 260 18 0 obj 261 % page stream 262 << /Filter [ /ASCII85Decode 263 /FlateDecode ] 264 /Length 923 >> 265 stream 266 Gat%"D,8n?&H7^.IlJSu_$$IWCK%TS!Y$sed_m=Q,egdKds-#qaDo;tmrq>* 267 AF1kUWVYmBchX.o5?@n2I$!c]/`8+0M]2`9Kd6c[4$Fqan3&cokS@G$WETY! 268 nR-q?*'reAYo=@4`dpM:0SX*=-V5p?8/80A]J.^Z$CKu*n.ZdLE\KM/SBDOE 269 epW#.V:+Lt:/<&/%E[f#6,I:H6n*C/%(r*t`QK^W="5Jd8e)^+7WT'S<+[&K 270 3Fl;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 272 1m^kVKTpE*-_o':CBT,006RZ@#hfPb9<'^VWUs=tk*/q@M^^DW\Q"R%`hC#* 273 d\DBA5MHTdoa>)5Tkj-aiJtF-,oB/</8if)aAXTMN7ZH`O1rRS0<Fr!XQ07# 274 IjJn-jumW'*q\sf-+-5j)[_<_quOQ@j4Y@JGXK0CB6`POCMkGS2?Y#7$UED# 275 M@VWKN-kJ$/rWdrhd9FrcfnXIESu==c<=`-]W.g-X9[:"KAAWA+%=pX\b4he 276 N5@ASe``,BVku7[VA<`[W"H$pJ$qf8`WLKT0h;!hf56raRW=cJTq%H*VWsoK 277 L.: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 282 endobj 283 % 'R19': class PDFStream 284 19 0 obj 245 285 % page stream 246 286 << /Filter [ /ASCII85Decode … … 252 292 253 293 endobj 254 % 'R 17': class PDFStream255 170 obj294 % 'R20': class PDFStream 295 20 0 obj 256 296 % page stream 257 297 << /Filter [ /ASCII85Decode … … 263 303 264 304 endobj 265 % 'R 18': class PDFStream266 180 obj305 % 'R21': class PDFStream 306 21 0 obj 267 307 % page stream 268 308 << /Filter [ /ASCII85Decode … … 274 314 275 315 endobj 276 % 'R 19': class PDFStream277 190 obj316 % 'R22': class PDFStream 317 22 0 obj 278 318 % page stream 279 319 << /Filter [ /ASCII85Decode … … 285 325 286 326 endobj 287 % 'R2 0': class PDFStream288 2 00 obj327 % 'R23': class PDFStream 328 23 0 obj 289 329 % page stream 290 330 << /Filter [ /ASCII85Decode … … 296 336 297 337 endobj 298 % 'R2 1': class PDFStream299 2 10 obj338 % 'R24': class PDFStream 339 24 0 obj 300 340 % page stream 301 341 << /Filter [ /ASCII85Decode … … 307 347 308 348 endobj 309 % 'R2 2': class PDFStream310 2 20 obj349 % 'R25': class PDFStream 350 25 0 obj 311 351 % page stream 312 352 << /Filter [ /ASCII85Decode … … 318 358 319 359 endobj 320 % 'R2 3': class PDFStream321 2 30 obj360 % 'R26': class PDFStream 361 26 0 obj 322 362 % page stream 323 363 << /Filter [ /ASCII85Decode … … 329 369 330 370 endobj 331 % 'R24': class PDFOutlines 332 24 0 obj 371 % 'R27': class PDFStream 372 27 0 obj 373 % page stream 374 << /Filter [ /ASCII85Decode 375 /FlateDecode ] 376 /Length 894 >> 377 stream 378 Gau0C9lJc?%)!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 380 YW!Y[MGV8#BPRq+PX2a40A$4^DVhl,gq3EnBPP'T$J?NB^?thB0\Z=CngYAO 381 (+fXEhAJmRkOk^R^ub/XR$U6EeXLsS^-hMUTR(*N[MuZiMnEq8PQ,gqZ762` 382 XHlL\5n4F+#*r9"L6ornJQ3-iXsdY5(Y`@0!d?q@XoHpt;cZWleA0tSG]kt* 383 Q0X7L-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 386 B]/dB8J'*me[aR,Bf0U9<_?U^GMN`H-i:n+$T%Z24Ul]gi#,HD:5,$mn*kLV 387 3fuj5)Sn1r91%eJXiBLd_P2"N/h&=q7fB*)iA'U>gLC<LfN_<(7Xas3,/RO/ 388 g"oZl)(5=$&.>ra5@q>_+&&*'kq!*@rHIW-Hh'&dl&]nNp."/,qCJ3HdiiR? 389 C"fqVm'@ZkS.8DoZ62W@%-E`"c((6-\KnDP4]).lE^:A6ris&-MGaE+*^bco 390 F%N>J2a5F^$)Pu-)/!Yr)+5'$AWY<#Vp&EPh4@#1:psHc?/"XR-:Y7:?hC=m 391 ARoQJ6[U_u'IT8Gj/<,E_<;e-NA5;D3E`]9KAfq7D:`@ST'G9,(l(SNQ9$1) 392 9i"KSn0bG1h;8Y(BE%uHN0WZ~>endstream 393 394 endobj 395 % 'R28': class PDFOutlines 396 28 0 obj 333 397 << /Count 0 334 398 /Type /Outlines >> 335 399 endobj 336 400 xref 337 0 2 5401 0 29 338 402 0000000000 65535 f 339 403 0000000113 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 404 0000000234 00000 n 405 0000000399 00000 n 406 0000000558 00000 n 407 0000000849 00000 n 408 0000001140 00000 n 409 0000001431 00000 n 410 0000001722 00000 n 411 0000002013 00000 n 412 0000002304 00000 n 413 0000002596 00000 n 414 0000002888 00000 n 415 0000003182 00000 n 416 0000003357 00000 n 417 0000003650 00000 n 418 0000003788 00000 n 419 0000003986 00000 n 420 0000004179 00000 n 421 0000005247 00000 n 422 0000005500 00000 n 423 0000005754 00000 n 424 0000006008 00000 n 425 0000006261 00000 n 426 0000006512 00000 n 427 0000006764 00000 n 428 0000007016 00000 n 429 0000007269 00000 n 430 0000008310 00000 n 363 431 trailer 364 432 << /ID 365 433 % 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)] 367 435 368 /Info 1 30 R369 /Root 1 20 R370 /Size 2 5>>436 /Info 16 0 R 437 /Root 15 0 R 438 /Size 29 >> 371 439 startxref 372 6619 440 8362 373 441 %%EOF -
pkpgcounter/trunk/tests/runcolors.py
r381 r405 23 23 # 24 24 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 26 ToolKit (tm) available as Free Software from : 27 27 28 It contains 9 pages, including this one. 28 http://www.reportlab.org 29 29 30 Each page after this one is entirely filled with 100% of a particular 31 color, as described below : 30 It contains 10 pages, including this one. 32 31 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 32 Each page after this one is entirely filled with 100% 33 of a particular color, as described below : 42 34 43 This document helps to ensure that the computation of ink coverage 44 made by pkpgcounter works as expected. 35 Page 1 ====> This notice 36 Page 2 ====> Red 37 Page 3 ====> Green 38 Page 4 ====> Blue 39 Page 5 ====> Cyan 40 Page 6 ====> Magenta 41 Page 7 ====> Yellow 42 Page 8 ====> Black 43 Page 9 ====> White 44 Page 10 ====> The expected results. 45 46 This document helps to ensure that the computation of 47 ink coverage made by pkpgcounter works as expected. 45 48 46 49 To check by yourself : … … 53 56 54 57 Please report any problem to : alet@librelogiciel.com 58 """ 59 60 lastpage = """For each colorspace, the results for the last page will differ a bit from what is below. 61 The important values are the one for pages 2 to 9 included. 62 63 Colorspace : BW 64 B : 2.355336% 65 B : 70.196078% 66 B : 41.568627% 67 B : 88.627451% 68 B : 30.196078% 69 B : 58.823529% 70 B : 11.764706% 71 B : 100.000000% 72 B : 0.000000% 73 B : 3.500669% 74 75 Colorspace : RGB 76 R : 97.644664% G : 97.644664% B : 97.644664% 77 R : 100.000000% G : 0.000000% B : 0.000000% 78 R : 0.000000% G : 100.000000% B : 0.000000% 79 R : 0.000000% G : 0.000000% B : 100.000000% 80 R : 0.000000% G : 100.000000% B : 100.000000% 81 R : 100.000000% G : 0.000000% B : 100.000000% 82 R : 100.000000% G : 100.000000% B : 0.000000% 83 R : 0.000000% G : 0.000000% B : 0.000000% 84 R : 100.000000% G : 100.000000% B : 100.000000% 85 R : 96.499331% G : 96.499331% B : 96.499331% 86 87 Colorspace : CMY 88 C : 2.355336% M : 2.355336% Y : 2.355336% 89 C : 0.000000% M : 100.000000% Y : 100.000000% 90 C : 100.000000% M : 0.000000% Y : 100.000000% 91 C : 100.000000% M : 100.000000% Y : 0.000000% 92 C : 100.000000% M : 0.000000% Y : 0.000000% 93 C : 0.000000% M : 100.000000% Y : 0.000000% 94 C : 0.000000% M : 0.000000% Y : 100.000000% 95 C : 100.000000% M : 100.000000% Y : 100.000000% 96 C : 0.000000% M : 0.000000% Y : 0.000000% 97 C : 3.500669% M : 3.500669% Y : 3.500669% 98 99 Colorspace : CMYK 100 C : 0.000000% M : 0.000000% Y : 0.000000% K : 2.355336% 101 C : 0.000000% M : 100.000000% Y : 100.000000% K : 0.000000% 102 C : 100.000000% M : 0.000000% Y : 100.000000% K : 0.000000% 103 C : 100.000000% M : 100.000000% Y : 0.000000% K : 0.000000% 104 C : 100.000000% M : 0.000000% Y : 0.000000% K : 0.000000% 105 C : 0.000000% M : 100.000000% Y : 0.000000% K : 0.000000% 106 C : 0.000000% M : 0.000000% Y : 100.000000% K : 0.000000% 107 C : 0.000000% M : 0.000000% Y : 0.000000% K : 100.000000% 108 C : 0.000000% M : 0.000000% Y : 0.000000% K : 0.000000% 109 C : 0.000000% M : 0.000000% Y : 0.000000% K : 3.500669% 55 110 """ 56 111 … … 72 127 73 128 # First we output the explanations on the first page. 74 canv.setFont(" Helvetica", 16)129 canv.setFont("Courier", 14) 75 130 for line in __doc__.split("\n") : 76 131 canv.drawString(xbase, ybase, line) 77 ybase -= 24132 ybase -= 18 78 133 canv.showPage() 79 134 … … 96 151 canv.rect(0, 0, width, height, fill=1) 97 152 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 98 164 canv.save()