[latex3-commits] [git/LaTeX3-latex3-pdfresources] master: a testfile for annotations (2284214)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Mar 10 15:52:41 CET 2020


Repository : https://github.com/latex3/pdfresources
On branch  : master
Link       : https://github.com/latex3/pdfresources/commit/2284214229535afaf07326bf25ab7648c7b5ba85

>---------------------------------------------------------------

commit 2284214229535afaf07326bf25ab7648c7b5ba85
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue Mar 10 15:52:41 2020 +0100

    a testfile for annotations


>---------------------------------------------------------------

2284214229535afaf07326bf25ab7648c7b5ba85
 testfiles/annot.luatex.tpf                         | 120 +++++++++++++++++++++
 {testfiles-dvips => testfiles}/annot.pvt           |   0
 testfiles/{catalogAF.tpf => annot.tpf}             | 110 +++++++++----------
 .../annot.xetex.tpf                                |  96 +++++++++--------
 4 files changed, 224 insertions(+), 102 deletions(-)

diff --git a/testfiles/annot.luatex.tpf b/testfiles/annot.luatex.tpf
new file mode 100644
index 0000000..62cd90c
--- /dev/null
+++ b/testfiles/annot.luatex.tpf
@@ -0,0 +1,120 @@
+%PDF-1.5
+%ÌÕÁÔÅØÐÄÆ
+8 0 obj
+<< /Length 134 >>        
+stream
+BT
+/F25 9.96264 Tf
+1 0 0 1 148.712 707.125 Tm [<0074007400740074007600760078007800720072>]TJ
+1 0 0 1 303.133 139.255 Tm [<0052>]TJ
+ET
+endstream
+endobj
+7 0 obj
+<< /Type /Page /Contents 8 0 R /Resources 6 0 R /MediaBox [ 0 0 595.276 841.89 ] /Parent 10 0 R /Annots 11 0 R >>
+endobj
+11 0 obj
+[ 5 0 R ]
+endobj
+5 0 obj
+<< /Type /Annot /Subtype/Widget/F 4/T(abc)/FT/Tx/Q 0/BS<</W 1 /S /S>>/MK<</BC[1 0 0]/BG[1 1 1]>>/DA(/Helv 10 Tf 0 0 0 rg)/DV()/V() /Rect [ 159.233 707.125 187.579 735.472 ] >>
+endobj
+6 0 obj
+<< /Font << /F25 9 0 R >> /ProcSet [ /PDF /Text ] >>
+endobj
+12 0 obj
+[ 82 [ 500 ] 114 [ 722 ] 116 [ 528 ] 118 [ 528 ] 120 [ 444 ] ]
+endobj
+14 0 obj
+<< /Length 16 >>         
+[BINARY STREAM]
+endobj
+15 0 obj
+<< /Subtype /CIDFontType0C /Length 1182 >>       
+[BINARY STREAM]
+endobj
+13 0 obj
+<< /Type /FontDescriptor /FontName /UPCXSX+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 15 0 R /CIDSet 14 0 R >>
+endobj
+16 0 obj
+<< /Length 748 >>        
+stream
+%!PS-Adobe-3.0 Resource-CMap
+%%DocumentNeededResources: ProcSet (CIDInit)
+%%IncludeResource: ProcSet (CIDInit)
+%%BeginResource: CMap (TeX-UPCXSX-LMRoman10-Regular-0)
+%%Title: (TeX-UPCXSX-LMRoman10-Regular-0 TeX UPCXSX-LMRoman10-Regular 0)
+%%Version: 1.000
+%%EndComments
+/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CIDSystemInfo
+<< /Registry (TeX)
+/Ordering (UPCXSX-LMRoman10-Regular)
+/Supplement 0
+>> def
+/CMapName /TeX-Identity-UPCXSX-LMRoman10-Regular def
+/CMapType 2 def
+1 begincodespacerange
+<0000> <FFFF>
+endcodespacerange
+0 beginbfrange
+endbfrange
+5 beginbfchar
+<0052> <0031>
+<0072> <0077>
+<0074> <0078>
+<0076> <0079>
+<0078> <007A>
+endbfchar
+endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end
+%%EndResource
+%%EOF
+endstream
+endobj
+9 0 obj
+<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /UPCXSX+LMRoman10-Regular /DescendantFonts [ 17 0 R ] /ToUnicode 16 0 R >>
+endobj
+17 0 obj
+<< /Type /Font /Subtype /CIDFontType0 /BaseFont /UPCXSX+LMRoman10-Regular /FontDescriptor 13 0 R /W 12 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
+endobj
+10 0 obj
+<< /Type /Pages  /Count 1 /Kids [ 7 0 R ] >>
+endobj
+18 0 obj
+<< /Type /Catalog /Pages 10 0 R >>
+endobj
+19 0 obj
+<< /Producer (LuaTeX) /Creator (TeX) /Trapped /False >>
+endobj
+xref
+0 20
+0000000001 65535 f 
+0000000002 00000 f 
+0000000003 00000 f 
+0000000004 00000 f 
+0000000000 00000 f 
+0000000368 00000 n 
+0000000559 00000 n 
+0000000213 00000 n 
+0000000020 00000 n 
+0000003092 00000 n 
+0000003445 00000 n 
+0000000342 00000 n 
+0000000627 00000 n 
+0000002048 00000 n 
+0000000706 00000 n 
+0000000782 00000 n 
+0000002284 00000 n 
+0000003245 00000 n 
+0000003506 00000 n 
+0000003557 00000 n 
+trailer
+<< /Size 20 /Root 18 0 R /Info 19 0 R >>
+startxref
+3629
+%%EOF
diff --git a/testfiles-dvips/annot.pvt b/testfiles/annot.pvt
similarity index 100%
copy from testfiles-dvips/annot.pvt
copy to testfiles/annot.pvt
diff --git a/testfiles/catalogAF.tpf b/testfiles/annot.tpf
similarity index 57%
copy from testfiles/catalogAF.tpf
copy to testfiles/annot.tpf
index b755025..f4532ad 100644
--- a/testfiles/catalogAF.tpf
+++ b/testfiles/annot.tpf
@@ -1,55 +1,54 @@
-%PDF-2.0
+%PDF-1.5
 %ÐÔÅØ
-5 0 obj
-<< /Type/Filespec/UF(example1.pdf) >>
-endobj
-6 0 obj
-<< /Type/Filespec/UF(example2.pdf) >>
-endobj
-9 0 obj
+8 0 obj
 <<
-/Length 91        
+/Length 83        
 >>
 stream
 BT
-/F8 9.9626 Tf 148.712 707.125 Td [(some)-333(te)-1(xt)]TJ 154.421 -567.87 Td [(1)]TJ
+/F8 9.9626 Tf 148.712 707.125 Td [(xxxxyyzzww)]TJ 154.421 -567.87 Td [(1)]TJ
 ET
 endstream
 endobj
-8 0 obj
+7 0 obj
 <<
 /Type /Page
-/Contents 9 0 R
-/Resources 7 0 R
+/Contents 8 0 R
+/Resources 6 0 R
 /MediaBox [0 0 595.276 841.89]
-/Parent 11 0 R
+/Parent 10 0 R
+/Annots [ 5 0 R ]
 >>
 endobj
-7 0 obj
+5 0 obj
 <<
-/Font << /F8 10 0 R >>
-/ProcSet [ /PDF /Text ]
+/Type /Annot
+/Subtype/Widget/F 4/T(abc)/FT/Tx/Q 0/BS<</W 1 /S /S>>/MK<</BC[1 0 0]/BG[1 1 1]>>/DA(/Helv 10 Tf 0 0 0 rg)/DV()/V()
+/Rect [159.228 707.125 187.575 735.472]
 >>
 endobj
-12 0 obj
-[ 5 0 R 6 0 R ]
+6 0 obj
+<<
+/Font << /F8 9 0 R >>
+/ProcSet [ /PDF /Text ]
+>>
 endobj
-13 0 obj
-[500 500 500 500 500 500 500 500 500 277.8 277.8 277.8 777.8 472.2 472.2 777.8 750 708.3 722.2 763.9 680.6 652.8 784.7 750 361.1 513.9 777.8 625 916.7 750 777.8 680.6 777.8 736.1 555.6 722.2 750 750 1027.8 750 750 611.1 277.8 500 277.8 500 277.8 277.8 500 555.6 444.4 555.6 444.4 305.6 500 555.6 277.8 305.6 527.8 277.8 833.3 555.6 500 555.6 527.8 391.7 394.4 388.9 555.6 527.8 722.2 527.8]
+11 0 obj
+[500 500 500 500 500 500 500 500 500 277.8 277.8 277.8 777.8 472.2 472.2 777.8 750 708.3 722.2 763.9 680.6 652.8 784.7 750 361.1 513.9 777.8 625 916.7 750 777.8 680.6 777.8 736.1 555.6 722.2 750 750 1027.8 750 750 611.1 277.8 500 277.8 500 277.8 277.8 500 555.6 444.4 555.6 444.4 305.6 500 555.6 277.8 305.6 527.8 277.8 833.3 555.6 500 555.6 527.8 391.7 394.4 388.9 555.6 527.8 722.2 527.8 527.8 444.4]
 endobj
-14 0 obj
+12 0 obj
 <<
-/Length1 1455
-/Length2 9286
+/Length1 1425
+/Length2 6945
 /Length3 0
-/Length 10741     
+/Length 8370      
 >>
 [BINARY STREAM]
 endobj
-15 0 obj
+13 0 obj
 <<
 /Type /FontDescriptor
-/FontName /CTWJDN+CMR10
+/FontName /NDDKHM+CMR10
 /Flags 4
 /FontBBox [-40 -250 1009 750]
 /Ascent 694
@@ -58,36 +57,35 @@ endobj
 /ItalicAngle 0
 /StemV 69
 /XHeight 431
-/CharSet (/e/m/o/one/s/t/x)
-/FontFile 14 0 R
+/CharSet (/one/w/x/y/z)
+/FontFile 12 0 R
 >>
 endobj
-10 0 obj
+9 0 obj
 <<
 /Type /Font
 /Subtype /Type1
-/BaseFont /CTWJDN+CMR10
-/FontDescriptor 15 0 R
+/BaseFont /NDDKHM+CMR10
+/FontDescriptor 13 0 R
 /FirstChar 49
-/LastChar 120
-/Widths 13 0 R
+/LastChar 122
+/Widths 11 0 R
 >>
 endobj
-11 0 obj
+10 0 obj
 <<
 /Type /Pages
 /Count 1
-/Kids [8 0 R]
+/Kids [7 0 R]
 >>
 endobj
-16 0 obj
+14 0 obj
 <<
 /Type /Catalog
-/Pages 11 0 R
-/AF 12 0 R/Lang (de-DE)
+/Pages 10 0 R
 >>
 endobj
-17 0 obj
+15 0 obj
 <<
 /Producer (pdfTeX)
 /Creator (TeX)
@@ -95,30 +93,28 @@ endobj
 >>
 endobj
 xref
-0 18
+0 16
 0000000001 65535 f 
 0000000002 00000 f 
 0000000003 00000 f 
 0000000004 00000 f 
 0000000000 00000 f 
+0000000286 00000 n 
+0000000475 00000 n 
+0000000156 00000 n 
 0000000015 00000 n 
-0000000068 00000 n 
-0000000382 00000 n 
-0000000270 00000 n 
-0000000121 00000 n 
-0000011959 00000 n 
-0000012099 00000 n 
-0000000450 00000 n 
-0000000482 00000 n 
-0000000889 00000 n 
-0000011728 00000 n 
-0000012157 00000 n 
-0000012232 00000 n 
+0000009656 00000 n 
+0000009795 00000 n 
+0000000542 00000 n 
+0000000961 00000 n 
+0000009429 00000 n 
+0000009853 00000 n 
+0000009904 00000 n 
 trailer
-<< /Size 18
-/Root 16 0 R
-/Info 17 0 R
+<< /Size 16
+/Root 14 0 R
+/Info 15 0 R
  >>
 startxref
-12304
+9976
 %%EOF
diff --git a/testfiles2019/pagesattr.xetex.tpf b/testfiles/annot.xetex.tpf
similarity index 55%
copy from testfiles2019/pagesattr.xetex.tpf
copy to testfiles/annot.xetex.tpf
index 99db5c4..fdfbdd3 100644
--- a/testfiles2019/pagesattr.xetex.tpf
+++ b/testfiles/annot.xetex.tpf
@@ -1,12 +1,12 @@
 %PDF-1.5
 %äðíø
-10 0 obj
-<</Length 141>>
+11 0 obj
+<</Length 181>>
 stream
- q 1 0 0 1 72 769.89 cm q BT /F1 9.9626 Tf 76.712 -62.765 Td[<00620051004b0032>-333<0069003200740069>]TJ 154.421 -567.87 Td[<0052>]TJ ET Q Q
+ q 1 0 0 1 72 769.89 cm BT /F1 9.9626 Tf 76.712 -62.765 Td[<00740074>]TJ ET BT /F1 9.9626 Tf 87.233 -62.765 Td[<00740074007600760078007800720072>]TJ 143.9 -567.87 Td[<0052>]TJ ET Q
 endstream
 endobj
-11 0 obj
+12 0 obj
 <</ExtGState 4 0 R/ColorSpace 5 0 R/Pattern 6 0 R/Shading 7 0 R/Font<</F1 9 0 R>>/ProcSet[/PDF/Text/ImageC/ImageB/ImageI]>>
 endobj
 4 0 obj
@@ -21,21 +21,27 @@ endobj
 7 0 obj
 <<>>
 endobj
+10 0 obj
+<</Type/Annot/Subtype/Widget/F 4/T(abc)/FT/Tx/Q 0/BS<</W 1/S/S>>/MK<</BC[1 0 0]/BG[1
+1 1]>>/DA(/Helv 10 Tf 0 0 0 rg)/DV()/V()/Rect[159.233 707.125 187.579 735.472]>>
+endobj
+14 0 obj
+[10 0 R]
+endobj
 3 0 obj
-<</Resources 11 0 R/Type/Page/Parent 12 0 R/Contents[10 0 R]>>
+<</Resources 12 0 R/Type/Page/Parent 13 0 R/Contents[11 0 R]/Annots 14 0 R>>
 endobj
-12 0 obj
-<</YYY(y22)/ZZZ(zzz)/SSS(somesetting)/Type/Pages/Count 1/Kids[3 0 R]/MediaBox[0 0
-595.28 841.89]>>
+13 0 obj
+<</Type/Pages/Count 1/Kids[3 0 R]/MediaBox[0 0 595.28 841.89]>>
 endobj
 2 0 obj
 <</Creator(TeX)/Producer(xdvipdfmx)/CreationDate(D:20160520090000-00'00')>>
 endobj
 1 0 obj
-<</Pages 12 0 R/Type/Catalog>>
+<</Pages 13 0 R/Type/Catalog>>
 endobj
-13 0 obj
-<</Length 440>>
+15 0 obj
+<</Length 412>>
 stream
 /CIDInit /ProcSet findresource begin
 12 dict begin
@@ -50,14 +56,12 @@ begincmap
 1 begincodespacerange
 <0000> <FFFF>
 endcodespacerange
-7 beginbfchar
-<0032> <0065>
-<004B> <006D>
-<0051> <006F>
+5 beginbfchar
 <0052> <0031>
-<0062> <0073>
-<0069> <0074>
+<0072> <0077>
 <0074> <0078>
+<0076> <0079>
+<0078> <007A>
 endbfchar
 endcmap
 CMapName currentdict /CMap defineresource pop
@@ -65,53 +69,55 @@ end
 end
 endstream
 endobj
-15 0 obj
-<</Subtype/CIDFontType0C/Length 1387>>
+17 0 obj
+<</Subtype/CIDFontType0C/Length 1156>>
 [BINARY STREAM]
 endobj
-16 0 obj
-[50[444]75[833]81[500 500]98[394]105[389]116[528]]
+18 0 obj
+[82[500]114[722]116[528]118[528]120[444]]
 endobj
-17 0 obj
-<</Length 15>>
+19 0 obj
+<</Length 16>>
 [BINARY STREAM]
 endobj
 8 0 obj
 <</Type/Font/Subtype/CIDFontType0/BaseFont/EXQIVM+LMRoman10-Regular/CIDSystemInfo<</Registry(Adobe)/Ordering(Identity)/Supplement
-0>>/FontDescriptor 14 0 R/DW 280/W 16 0 R>>
+0>>/FontDescriptor 16 0 R/DW 280/W 18 0 R>>
 endobj
-14 0 obj
+16 0 obj
 <</Type/FontDescriptor/Ascent 806/Descent -194/StemV 69/CapHeight 806/AvgWidth 549/FontBBox[-430
 -290 1417 1127]/ItalicAngle 0/Flags 6/Style<</Panose<000000000500000000000000>>>/FontName/EXQIVM+LMRoman10-Regular/FontFile3
-15 0 R/CIDSet 17 0 R>>
+17 0 R/CIDSet 19 0 R>>
 endobj
 9 0 obj
 <</Type/Font/Subtype/Type0/BaseFont/EXQIVM+LMRoman10-Regular-Identity-H/Encoding/Identity-H/DescendantFonts[8 0 R]/ToUnicode
-13 0 R>>
+15 0 R>>
 endobj
 xref
-0 18
+0 20
 0000000000 65535 f 
-0000000710 00000 n 
-0000000619 00000 n 
-0000000426 00000 n 
-0000000346 00000 n 
-0000000366 00000 n 
+0000000936 00000 n 
+0000000845 00000 n 
+0000000673 00000 n 
 0000000386 00000 n 
 0000000406 00000 n 
-0000002837 00000 n 
-0000003287 00000 n 
+0000000426 00000 n 
+0000000446 00000 n 
+0000002796 00000 n 
+0000003246 00000 n 
+0000000466 00000 n 
 0000000015 00000 n 
-0000000206 00000 n 
-0000000504 00000 n 
-0000000756 00000 n 
-0000003026 00000 n 
-0000001246 00000 n 
-0000002706 00000 n 
-0000002773 00000 n 
+0000000246 00000 n 
+0000000765 00000 n 
+0000000648 00000 n 
+0000000982 00000 n 
+0000002985 00000 n 
+0000001444 00000 n 
+0000002673 00000 n 
+0000002731 00000 n 
 trailer
-<</Root 1 0 R/Info 2 0 R/ID[<4a63c937f28c3f4d560572b800302e3b><4a63c937f28c3f4d560572b800302e3b>]/Size
-18>>
+<</Root 1 0 R/Info 2 0 R/ID[<491967003a5063ac66132f5d046da634><491967003a5063ac66132f5d046da634>]/Size
+20>>
 startxref
-3436
+3395
 %%EOF





More information about the latex3-commits mailing list.