[gs-cvs] rev 8467 - tests/pdf
alexcher at ghostscript.com
alexcher at ghostscript.com
Sun Dec 30 22:31:19 PST 2007
Author: alexcher
Date: 2007-12-30 22:31:19 -0800 (Sun, 30 Dec 2007)
New Revision: 8467
Added:
tests/pdf/singular_ctm_3_tr_mode.pdf
tests/pdf/singular_ctm_empty_fontbbox.pdf
Log:
Add 2 PDF files that set singular CTM and exercise font renderer. One file has
an embedded font with empty FontBBox. Old Ghostscript attempted to optain the
glyph box and failed. Another file sets text rendering mode 3, which is
mis-handled as a stringwidth call by the current code.
Added: tests/pdf/singular_ctm_3_tr_mode.pdf
===================================================================
--- tests/pdf/singular_ctm_3_tr_mode.pdf 2007-12-31 06:10:33 UTC (rev 8466)
+++ tests/pdf/singular_ctm_3_tr_mode.pdf 2007-12-31 06:31:19 UTC (rev 8467)
@@ -0,0 +1,365 @@
+%PDF-1.3
+%çóÏÓ
+1 0 obj
+<</Pages 2 0 R
+/Type /Catalog
+>>
+endobj
+3 0 obj
+<</Producer (Adobe Acrobat 8.11 Paper Capture Plug-in)
+/ModDate (D:20071214094812-08'00')
+/Creator (Type1075 Scanner)
+/CreationDate (D:20071121144943-08'00')
+>>
+endobj
+2 0 obj
+<</Type /Pages
+/Count 1
+/Kids [ 4 0 R
+]
+>>
+endobj
+4 0 obj
+<</Parent 2 0 R
+/Type /Pages
+/Count 1
+/Kids [ 5 0 R
+]
+>>
+endobj
+5 0 obj
+<</Contents [ 6 0 R
+]
+/Resources <</Font <</T1_2 7 0 R
+>>
+/ProcSet [ /PDF
+/Text
+/ImageB
+]
+>>
+/Parent 4 0 R
+/MediaBox [ 0.0
+0.0
+617.455
+798.545
+]
+/LastModified (D:20071121130756-08'00')
+/Type /Page
+>>
+endobj
+7 0 obj
+<</LastChar 255
+/Subtype /Type1
+/Widths [ 250
+333
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+250
+333
+408
+500
+500
+833
+778
+180
+333
+333
+500
+564
+250
+333
+250
+278
+500
+500
+500
+500
+500
+500
+500
+500
+500
+500
+278
+278
+564
+564
+564
+444
+921
+722
+667
+667
+722
+611
+556
+722
+722
+333
+389
+722
+611
+889
+722
+722
+556
+722
+667
+556
+611
+722
+722
+944
+722
+722
+611
+333
+278
+333
+469
+500
+333
+444
+500
+444
+500
+444
+333
+500
+500
+278
+278
+500
+278
+778
+500
+500
+500
+500
+333
+389
+278
+500
+500
+722
+500
+500
+444
+480
+200
+480
+541
+350
+0
+350
+333
+500
+444
+1000
+500
+500
+333
+1000
+556
+333
+889
+350
+611
+350
+350
+333
+333
+444
+444
+350
+500
+1000
+333
+980
+389
+333
+722
+350
+444
+722
+0
+333
+500
+500
+500
+500
+200
+500
+333
+760
+276
+500
+564
+0
+760
+333
+400
+564
+300
+300
+333
+500
+453
+250
+333
+300
+310
+500
+750
+750
+750
+444
+722
+722
+722
+722
+722
+722
+889
+667
+611
+611
+611
+611
+333
+333
+333
+333
+722
+722
+722
+722
+722
+722
+722
+564
+722
+722
+722
+722
+722
+722
+556
+500
+444
+444
+444
+444
+444
+444
+667
+444
+444
+444
+444
+444
+278
+278
+278
+278
+500
+500
+500
+500
+500
+500
+500
+564
+500
+500
+500
+500
+500
+500
+500
+500
+]
+/BaseFont /Times-Roman
+/Type /Font
+/FirstChar 0
+/Encoding 8 0 R
+>>
+endobj
+8 0 obj
+<</Type /Encoding
+/BaseEncoding /WinAnsiEncoding
+/Differences 9 0 R
+>>
+endobj
+9 0 obj
+[ 1
+/hyphen
+2
+/space
+3
+/space
+]
+endobj
+6 0 obj
+<</Length 68
+>>stream
+BT
+ 1 Tc
+ 3 Tr
+ 22.5455 0 0 0 288 744 Tm
+ /T1_2 1 Tf
+ ( )Tj
+ET
+endstream
+endobj
+xref
+0 10
+0000000000 65535 f
+0000000015 00000 n
+0000000239 00000 n
+0000000063 00000 n
+0000000297 00000 n
+0000000369 00000 n
+0000001864 00000 n
+0000000584 00000 n
+0000001731 00000 n
+0000001817 00000 n
+trailer
+<</ID [ (\217\274\354\241M[[N\237$\r\344S\306\035\320)
+(\207\034\231\304\347\223E\343\212z\204\033\000\250Z\222)
+]
+/Size 10
+/Root 1 0 R
+/Info 3 0 R
+>>
+startxref
+1979
+%%EOF
Property changes on: tests/pdf/singular_ctm_3_tr_mode.pdf
___________________________________________________________________
Name: svn:executable
+ *
Added: tests/pdf/singular_ctm_empty_fontbbox.pdf
===================================================================
--- tests/pdf/singular_ctm_empty_fontbbox.pdf 2007-12-31 06:10:33 UTC (rev 8466)
+++ tests/pdf/singular_ctm_empty_fontbbox.pdf 2007-12-31 06:31:19 UTC (rev 8467)
@@ -0,0 +1,137 @@
+%PDF-1.3
+%çóÏÓ
+1 0 obj
+<</Pages 2 0 R
+/Type /Catalog
+>>
+endobj
+3 0 obj
+<</Producer (Adobe Acrobat 8.11 Paper Capture Plug-in)
+/ModDate (D:20071214094812-08'00')
+/Creator (Type1075 Scanner)
+/CreationDate (D:20071121144943-08'00')
+>>
+endobj
+2 0 obj
+<</Type /Pages
+/Count 1
+/Kids [ 4 0 R
+]
+>>
+endobj
+4 0 obj
+<</Parent 2 0 R
+/Type /Pages
+/Count 1
+/Kids [ 5 0 R
+]
+>>
+endobj
+5 0 obj
+<</Tabs /S
+/Contents [ 6 0 R
+]
+/Rotate 0
+/MediaBox [ 0.0
+0.0
+617.455
+798.545
+]
+/StructParents 12
+/Resources <</Font <</C0_0 7 0 R
+>>
+/ProcSet [ /PDF
+/Text
+/ImageB
+]
+>>
+/LastModified (D:20071121130756-08'00')
+/Parent 4 0 R
+/Type /Page
+>>
+endobj
+7 0 obj
+<</Subtype /Type0
+/DescendantFonts [ 8 0 R
+]
+/Type /Font
+/BaseFont /HiddenHorzOCR
+/Encoding /Identity-H
+>>
+endobj
+8 0 obj
+<</FontDescriptor 9 0 R
+/Subtype /CIDFontType0
+/DW 1000
+/BaseFont /HiddenHorzOCR
+/CIDSystemInfo <</Supplement 0
+/Registry (Adobe)
+/Ordering (Identity)
+>>
+/Type /Font
+>>
+endobj
+9 0 obj
+<</ItalicAngle 0
+/Ascent 1000
+/FontFile3 10 0 R
+/XHeight 1000
+/FontName /HiddenHorzOCR
+/FontBBox [ 0
+0
+1000
+1000
+]
+/MissingWidth 1000
+/Flags 4
+/CapHeight 1000
+/Descent 0
+/Type /FontDescriptor
+/StemV 100
+/StemH 100
+>>
+endobj
+10 0 obj
+<</Length 270
+/Subtype /CIDFontType0C
+>>stream
+ HiddenHorzOCl Bøøøøøøøú|ú|" \# \÷z÷}÷{%÷$ N\iAdobeIdentityCopyright 2002 Adobe Systems Incorporated. All Rights Reserved. Hidden HorzOCl/FSType 8 defHiddenHorzOCl-Dingbats ø &÷ûF
+ú|endstream
+endobj
+6 0 obj
+<</Length 154
+>>stream
+/Artifact <</Type /Background /BBox [0 0 617 799 ]>>BDC
+q
+617.4546051 0 0 798.5455017 0 0 cm
+BT
+/C0_0 1 Tf
+22.5455 0 0 0 288 744 Tm
+<007E>Tj
+ET
+ Q endstream
+endobj
+xref
+0 11
+0000000000 65535 f
+0000000015 00000 n
+0000000239 00000 n
+0000000063 00000 n
+0000000297 00000 n
+0000000369 00000 n
+0000001502 00000 n
+0000000621 00000 n
+0000000743 00000 n
+0000000927 00000 n
+0000001159 00000 n
+trailer
+<</ID [ (\217\274\354\241M[[N\237$\r\344S\306\035\320)
+(\207\034\231\304\347\223E\343\212z\204\033\000\250Z\222)
+]
+/Size 11
+/Root 1 0 R
+/Info 3 0 R
+>>
+startxref
+1704
+%%EOF
Property changes on: tests/pdf/singular_ctm_empty_fontbbox.pdf
___________________________________________________________________
Name: svn:executable
+ *
More information about the gs-cvs
mailing list