diff --git a/pitfall/ptest/test09c.pdf b/pitfall/ptest/test09c.pdf index 6559f581..8235682e 100644 --- a/pitfall/ptest/test09c.pdf +++ b/pitfall/ptest/test09c.pdf @@ -18,7 +18,7 @@ endobj << /Producer (PDFKit) /Creator (PDFKit) -/CreationDate (D:20170523223743Z) +/CreationDate (D:20181120225935Z) >> endobj 2 0 obj diff --git a/pitfall/ptest/test5.rkt b/pitfall/ptest/test5.rkt index 0802637b..2027a41e 100644 --- a/pitfall/ptest/test5.rkt +++ b/pitfall/ptest/test5.rkt @@ -11,7 +11,7 @@ [image death 100 160 (hash 'width 412)])) (define-runtime-path this "test5rkt.pdf") -(make-doc this #f proc #:test #t) +(make-doc this #f proc) (define-runtime-path that "test5crkt.pdf") -(make-doc that #t proc) +(make-doc that 'compress proc) diff --git a/pitfall/ptest/test6.pdf b/pitfall/ptest/test6.pdf index 3a20e660..80a9a28b 100644 --- a/pitfall/ptest/test6.pdf +++ b/pitfall/ptest/test6.pdf @@ -208,7 +208,7 @@ endobj << /Producer (PDFKit) /Creator (PDFKit) -/CreationDate (D:20170519211427Z) +/CreationDate (D:20181120225842Z) >> endobj 6 0 obj diff --git a/pitfall/ptest/test6.rkt b/pitfall/ptest/test6.rkt index b70101ae..2915ed1c 100644 --- a/pitfall/ptest/test6.rkt +++ b/pitfall/ptest/test6.rkt @@ -19,5 +19,5 @@ (make-doc this #f proc) (define-runtime-path that "test6crkt.pdf") -(make-doc that #t proc) +(make-doc that 'compress proc) diff --git a/pitfall/ptest/test6c.pdf b/pitfall/ptest/test6c.pdf index 61c602c8..734c9326 100644 Binary files a/pitfall/ptest/test6c.pdf and b/pitfall/ptest/test6c.pdf differ diff --git a/pitfall/ptest/test6crkt.pdf b/pitfall/ptest/test6crkt.pdf new file mode 100644 index 00000000..a1755257 Binary files /dev/null and b/pitfall/ptest/test6crkt.pdf differ diff --git a/pitfall/ptest/test6rkt.pdf b/pitfall/ptest/test6rkt.pdf new file mode 100644 index 00000000..8b6e46aa --- /dev/null +++ b/pitfall/ptest/test6rkt.pdf @@ -0,0 +1,268 @@ +%PDF-1.3 +%ÿÿÿÿ +5 0 obj +<< +/Resources 4 0 R +/Contents 3 0 R +/MediaBox [0 0 612 792] +/Type /Page +/Parent 1 0 R +>> +endobj +4 0 obj +<< +/Font << +/F1 6 0 R +>> +/ProcSet [/PDF /Text /ImageB /ImageC /ImageI] +>> +endobj +3 0 obj +<< +/Length 106 +>> +stream +1 0 0 -1 0 792 cm +q +1 0 0 -1 0 792 cm +BT +1 0 0 1 72 711.384 Tm +/F1 12 Tf +[<50> 40 <6167652031> 0] TJ +ET +Q + +endstream +endobj +9 0 obj +<< +/Resources 8 0 R +/Contents 7 0 R +/MediaBox [0 0 612 792] +/Type /Page +/Parent 1 0 R +>> +endobj +8 0 obj +<< +/Font << +/F1 6 0 R +>> +/ProcSet [/PDF /Text /ImageB /ImageC /ImageI] +>> +endobj +7 0 obj +<< +/Length 106 +>> +stream +1 0 0 -1 0 792 cm +q +1 0 0 -1 0 792 cm +BT +1 0 0 1 72 711.384 Tm +/F1 12 Tf +[<50> 40 <6167652032> 0] TJ +ET +Q + +endstream +endobj +12 0 obj +<< +/Resources 11 0 R +/Contents 10 0 R +/MediaBox [0 0 612 792] +/Type /Page +/Parent 1 0 R +>> +endobj +11 0 obj +<< +/Font << +/F1 6 0 R +>> +/ProcSet [/PDF /Text /ImageB /ImageC /ImageI] +>> +endobj +10 0 obj +<< +/Length 106 +>> +stream +1 0 0 -1 0 792 cm +q +1 0 0 -1 0 792 cm +BT +1 0 0 1 72 711.384 Tm +/F1 12 Tf +[<50> 40 <6167652033> 0] TJ +ET +Q + +endstream +endobj +15 0 obj +<< +/Resources 14 0 R +/Contents 13 0 R +/MediaBox [0 0 612 792] +/Type /Page +/Parent 1 0 R +>> +endobj +14 0 obj +<< +/Font << +/F1 6 0 R +>> +/ProcSet [/PDF /Text /ImageB /ImageC /ImageI] +>> +endobj +13 0 obj +<< +/Length 106 +>> +stream +1 0 0 -1 0 792 cm +q +1 0 0 -1 0 792 cm +BT +1 0 0 1 72 711.384 Tm +/F1 12 Tf +[<50> 40 <6167652034> 0] TJ +ET +Q + +endstream +endobj +18 0 obj +<< +/Resources 17 0 R +/Contents 16 0 R +/MediaBox [0 0 612 792] +/Type /Page +/Parent 1 0 R +>> +endobj +17 0 obj +<< +/Font << +/F1 6 0 R +>> +/ProcSet [/PDF /Text /ImageB /ImageC /ImageI] +>> +endobj +16 0 obj +<< +/Length 106 +>> +stream +1 0 0 -1 0 792 cm +q +1 0 0 -1 0 792 cm +BT +1 0 0 1 72 711.384 Tm +/F1 12 Tf +[<50> 40 <6167652035> 0] TJ +ET +Q + +endstream +endobj +21 0 obj +<< +/Resources 20 0 R +/Contents 19 0 R +/MediaBox [0 0 612 792] +/Type /Page +/Parent 1 0 R +>> +endobj +20 0 obj +<< +/Font << +/F1 6 0 R +>> +/ProcSet [/PDF /Text /ImageB /ImageC /ImageI] +>> +endobj +19 0 obj +<< +/Length 106 +>> +stream +1 0 0 -1 0 792 cm +q +1 0 0 -1 0 792 cm +BT +1 0 0 1 72 711.384 Tm +/F1 12 Tf +[<50> 40 <6167652036> 0] TJ +ET +Q + +endstream +endobj +22 0 obj +<< +/CreationDate (D:19700101000000Z) +/Producer (PITKIT) +/Creator (PITKIT) +>> +endobj +6 0 obj +<< +/Subtype /Type1 +/Encoding /WinAnsiEncoding +/BaseFont /Helvetica +/Type /Font +>> +endobj +2 0 obj +<< +/Pages 1 0 R +/Type /Catalog +>> +endobj +1 0 obj +<< +/Kids [5 0 R 9 0 R 12 0 R 15 0 R 18 0 R 21 0 R] +/Type /Pages +/Count 6 +>> +endobj +xref +0 23 +0000000000 65535 f +0000002374 00000 n +0000002325 00000 n +0000000208 00000 n +0000000119 00000 n +0000000015 00000 n +0000002228 00000 n +0000000558 00000 n +0000000469 00000 n +0000000365 00000 n +0000000912 00000 n +0000000822 00000 n +0000000715 00000 n +0000001267 00000 n +0000001177 00000 n +0000001070 00000 n +0000001622 00000 n +0000001532 00000 n +0000001425 00000 n +0000001977 00000 n +0000001887 00000 n +0000001780 00000 n +0000002135 00000 n +trailer +<< +/Size 23 +/Root 2 0 R +/Info 22 0 R +>> +startxref +2465 +%%EOF diff --git a/pitfall/ptest/test7.pdf b/pitfall/ptest/test7.pdf index b3ecf2dd..9b472763 100644 Binary files a/pitfall/ptest/test7.pdf and b/pitfall/ptest/test7.pdf differ diff --git a/pitfall/ptest/test7c.pdf b/pitfall/ptest/test7c.pdf index 2c7dc148..4f6b5fe9 100644 Binary files a/pitfall/ptest/test7c.pdf and b/pitfall/ptest/test7c.pdf differ diff --git a/pitfall/ptest/test7crkt.pdf b/pitfall/ptest/test7crkt.pdf new file mode 100644 index 00000000..d5a42433 Binary files /dev/null and b/pitfall/ptest/test7crkt.pdf differ diff --git a/pitfall/ptest/test7rkt.pdf b/pitfall/ptest/test7rkt.pdf new file mode 100644 index 00000000..e413e39f Binary files /dev/null and b/pitfall/ptest/test7rkt.pdf differ diff --git a/pitfall/ptest/test8.pdf b/pitfall/ptest/test8.pdf index 9105c7fe..c0c79404 100644 Binary files a/pitfall/ptest/test8.pdf and b/pitfall/ptest/test8.pdf differ diff --git a/pitfall/ptest/test8c.pdf b/pitfall/ptest/test8c.pdf index d7c179c4..c0921153 100644 Binary files a/pitfall/ptest/test8c.pdf and b/pitfall/ptest/test8c.pdf differ diff --git a/pitfall/ptest/test8crkt.pdf b/pitfall/ptest/test8crkt.pdf new file mode 100644 index 00000000..69b3ffa5 Binary files /dev/null and b/pitfall/ptest/test8crkt.pdf differ diff --git a/pitfall/ptest/test8rkt.pdf b/pitfall/ptest/test8rkt.pdf new file mode 100644 index 00000000..22436816 Binary files /dev/null and b/pitfall/ptest/test8rkt.pdf differ diff --git a/pitfall/ptest/test09.coffee b/pitfall/ptest/test9.coffee similarity index 78% rename from pitfall/ptest/test09.coffee rename to pitfall/ptest/test9.coffee index 054ffac0..bfd173dd 100644 --- a/pitfall/ptest/test09.coffee +++ b/pitfall/ptest/test9.coffee @@ -16,6 +16,11 @@ make = (doc) -> doc.end() +doc = new PDFDocument({compress: no}) +doc.pipe(fs.createWriteStream('test9.pdf')) +make doc + doc = new PDFDocument({compress: yes}) -doc.pipe(fs.createWriteStream('test09c.pdf')) -make doc \ No newline at end of file +doc.pipe(fs.createWriteStream('test9c.pdf')) +make doc + diff --git a/pitfall/ptest/test9.pdf b/pitfall/ptest/test9.pdf new file mode 100644 index 00000000..43041b1f --- /dev/null +++ b/pitfall/ptest/test9.pdf @@ -0,0 +1,76 @@ +%PDF-1.3 +%ÿÿÿÿ +5 0 obj +<< +/Type /Page +/Parent 1 0 R +/MediaBox [0 0 612 792] +/Contents 3 0 R +/Resources 4 0 R +>> +endobj +4 0 obj +<< +/ProcSet [/PDF /Text /ImageB /ImageC /ImageI] +>> +endobj +3 0 obj +<< +/Length 179 +>> +stream +1 0 0 -1 0 792 cm +0 20 m +100 160 l +130 200 150 120 v +190 -40 200 200 300 150 c +400 90 l +S +1 0 0 1 0 200 cm +0 20 m +100 160 l +130 200 150 120 v +190 -40 200 200 300 150 c +400 90 l +S + +endstream +endobj +6 0 obj +<< +/Producer (PDFKit) +/Creator (PDFKit) +/CreationDate (D:20181120230007Z) +>> +endobj +2 0 obj +<< +/Type /Catalog +/Pages 1 0 R +>> +endobj +1 0 obj +<< +/Type /Pages +/Count 1 +/Kids [5 0 R] +>> +endobj +xref +0 7 +0000000000 65535 f +0000000557 00000 n +0000000508 00000 n +0000000186 00000 n +0000000119 00000 n +0000000015 00000 n +0000000416 00000 n +trailer +<< +/Size 7 +/Root 2 0 R +/Info 6 0 R +>> +startxref +614 +%%EOF diff --git a/pitfall/ptest/test09.rkt b/pitfall/ptest/test9.rkt similarity index 100% rename from pitfall/ptest/test09.rkt rename to pitfall/ptest/test9.rkt diff --git a/pitfall/ptest/test9c.pdf b/pitfall/ptest/test9c.pdf new file mode 100644 index 00000000..6588c847 --- /dev/null +++ b/pitfall/ptest/test9c.pdf @@ -0,0 +1,64 @@ +%PDF-1.3 +%ÿÿÿÿ +5 0 obj +<< +/Type /Page +/Parent 1 0 R +/MediaBox [0 0 612 792] +/Contents 3 0 R +/Resources 4 0 R +>> +endobj +4 0 obj +<< +/ProcSet [/PDF /Text /ImageB /ImageC /ImageI] +>> +endobj +6 0 obj +<< +/Producer (PDFKit) +/Creator (PDFKit) +/CreationDate (D:20181120230007Z) +>> +endobj +2 0 obj +<< +/Type /Catalog +/Pages 1 0 R +>> +endobj +1 0 obj +<< +/Type /Pages +/Count 1 +/Kids [5 0 R] +>> +endobj +3 0 obj +<< +/Length 81 +/Filter /FlateDecode +>> +stream +xœ­LA€0 ºó +>`R¶©Ù;|®îêû¥êLi¡ †g‘iï…c"X‚Š ¶à Õ”|­†½ ꎴWMÔÏhÞz†èiNΗ‹o‹L Ð +endstream +endobj +xref +0 7 +0000000000 65535 f +0000000327 00000 n +0000000278 00000 n +0000000384 00000 n +0000000119 00000 n +0000000015 00000 n +0000000186 00000 n +trailer +<< +/Size 7 +/Root 2 0 R +/Info 6 0 R +>> +startxref +536 +%%EOF diff --git a/pitfall/ptest/test09crkt copy.pdf b/pitfall/ptest/test9crkt copy.pdf similarity index 100% rename from pitfall/ptest/test09crkt copy.pdf rename to pitfall/ptest/test9crkt copy.pdf diff --git a/pitfall/ptest/test09rkt copy.pdf b/pitfall/ptest/test9rkt copy.pdf similarity index 100% rename from pitfall/ptest/test09rkt copy.pdf rename to pitfall/ptest/test9rkt copy.pdf