[latex3-commits] [git/LaTeX3-latex3-pdfresources] master: adapted testfile, note about docview (9b68d69)

Ulrike Fischer fischer at troubleshooting-tex.de
Mon Mar 9 19:13:34 CET 2020


Repository : https://github.com/latex3/pdfresources
On branch  : master
Link       : https://github.com/latex3/pdfresources/commit/9b68d69bb014fcb1373255344f957fd5b7b8145c

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

commit 9b68d69bb014fcb1373255344f957fd5b7b8145c
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Mar 9 19:13:34 2020 +0100

    adapted testfile, note about docview


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

9b68d69bb014fcb1373255344f957fd5b7b8145c
 pdfresources.dtx                     |   5 ++
 testfiles-luatex/non-ascii-links.tpf | 140 +++++++++++++++--------------------
 2 files changed, 65 insertions(+), 80 deletions(-)

diff --git a/pdfresources.dtx b/pdfresources.dtx
index b5e44c9..ba5ef41 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -2553,6 +2553,11 @@
 % \end{macro}
 %
 % \subsubsection{Doc View / Openaction}
+% \begin{NOTE}{UF}
+%   /OpenAction can be an array:
+%   /OpenAction [5 0 R /Fit] or an action << /S /GoTo /D [ 7 0 R /Fit ] >>
+%  The implementation belows allows only the first. The second could be set directly.
+% \end{NOTE}
 %
 % \begin{function}[added = 2019-08-18]
 %   {\pdf_docview:nn}
diff --git a/testfiles-luatex/non-ascii-links.tpf b/testfiles-luatex/non-ascii-links.tpf
index 54a8c03..4a85eb8 100644
--- a/testfiles-luatex/non-ascii-links.tpf
+++ b/testfiles-luatex/non-ascii-links.tpf
@@ -1,73 +1,55 @@
 %PDF-1.5
 %ÌÕÁÔÅØÐÄÆ
-6 0 obj
-<< /S /GoTo /D [ 7 0 R /Fit ] >>
-endobj
-11 0 obj
+9 0 obj
 << /Length 178 >>        
 stream
 BT
-/F15 9.96264 Tf
+/F25 9.96264 Tf
 1 0 0 1 148.712 707.125 Tm [<00510048002F>-333<0032004D003B004800420062003F>-333<0044001C0054001C004D003200620032>]TJ
 1 0 0 1 303.133 139.255 Tm [<0052>]TJ
 ET
 endstream
 endobj
-7 0 obj
-<< /Type /Page /Contents 11 0 R /Resources 10 0 R /MediaBox [ 0 0 595.276 841.89 ] /Parent 15 0 R /Annots 16 0 R >>
+5 0 obj
+<< /Type /Page /Contents 9 0 R /Resources 8 0 R /MediaBox [ 0 0 595.276 841.89 ] /Parent 13 0 R /Annots 14 0 R >>
 endobj
-16 0 obj
-[ 8 0 R 9 0 R ]
+14 0 obj
+[ 6 0 R 7 0 R ]
 endobj
-8 0 obj
+6 0 obj
 << /Type /Annot /Border [0 0 1] /C [0 1 1]  /Rect [ 147.716 704.077 196.264 715.035 ]
  /Subtype/Link/A<</Type/Action /S/URI /URI(http://ang.wikipedia.org/wiki/Elisabe\303\276_I_Engla_Cw\304\223n) >>
  >>
 endobj
-9 0 obj
+7 0 obj
 << /Type /Annot /Border [0 0 1] /C [0 1 1]  /Rect [ 197.589 704.077 236.443 715.035 ]
  /Subtype/Link/A<</Type/Action /S/URI /URI(http://ja.wikipedia.org/wiki/\343\202\250\343\203\252\343\202\266\343\203\231\343\202\2711\344\270\226_\(\343\202\244\343\203\263\343\202\260\343\203\251\343\203\263\343\203\211\345\245\263\347\216\213) >>
  >>
 endobj
-12 0 obj
-<< /D [ 7 0 R /XYZ 132.768 754.95 null ] >>
-endobj
-13 0 obj
-<< /D [ 7 0 R /XYZ 133.768 717.088 null ] >>
-endobj
 10 0 obj
-<< /ExtGState 1 0 R /ColorSpace 2 0 R /Pattern 3 0 R /Shading 4 0 R /Properties 5 0 R  /Font << /F15 14 0 R >> /ProcSet [ /PDF /Text ] >>
-endobj
-1 0 obj
-<<  >>
+<< /D [ 5 0 R /XYZ 132.768 754.95 null ] >>
 endobj
-2 0 obj
-<<  >>
-endobj
-3 0 obj
-<<  >>
-endobj
-4 0 obj
-<<  >>
+11 0 obj
+<< /D [ 5 0 R /XYZ 133.768 717.088 null ] >>
 endobj
-5 0 obj
-<<  >>
+8 0 obj
+<< /Font << /F25 12 0 R >> /ProcSet [ /PDF /Text ] >>
 endobj
-17 0 obj
+15 0 obj
 [ 28 [ 500 ] 47 [ 556 ] 50 [ 444 ] 59 [ 500 ] 63 [ 556 ] 66 [ 278 ] 68 [ 306 ] 72 [ 278 ] 77 [ 556 ] 81 [ 500 500 ] 84 [ 556 ] 98 [ 394 ] ]
 endobj
-19 0 obj
+17 0 obj
 << /Length 13 >>         
 [BINARY STREAM]
 endobj
-20 0 obj
+18 0 obj
 << /Subtype /CIDFontType0C /Length 2126 >>       
 [BINARY STREAM]
 endobj
-18 0 obj
-<< /Type /FontDescriptor /FontName /HUWMDL+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 20 0 R /CIDSet 19 0 R >>
+16 0 obj
+<< /Type /FontDescriptor /FontName /HUWMDL+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 18 0 R /CIDSet 17 0 R >>
 endobj
-21 0 obj
+19 0 obj
 << /Length 861 >>        
 stream
 %!PS-Adobe-3.0 Resource-CMap
@@ -115,58 +97,56 @@ end
 %%EOF
 endstream
 endobj
-14 0 obj
-<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /HUWMDL+LMRoman10-Regular /DescendantFonts [ 22 0 R ] /ToUnicode 21 0 R >>
+12 0 obj
+<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /HUWMDL+LMRoman10-Regular /DescendantFonts [ 20 0 R ] /ToUnicode 19 0 R >>
 endobj
-22 0 obj
-<< /Type /Font /Subtype /CIDFontType0 /BaseFont /HUWMDL+LMRoman10-Regular /FontDescriptor 18 0 R /W 17 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
+20 0 obj
+<< /Type /Font /Subtype /CIDFontType0 /BaseFont /HUWMDL+LMRoman10-Regular /FontDescriptor 16 0 R /W 15 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
 endobj
-15 0 obj
-<< /Type /Pages  /Count 1 /Kids [ 7 0 R ] >>
+13 0 obj
+<< /Type /Pages  /Count 1 /Kids [ 5 0 R ] >>
 endobj
-23 0 obj
-<< /Names [ (Doc-Start) 13 0 R (page.1) 12 0 R ] /Limits [ (Doc-Start) (page.1) ] >>
+21 0 obj
+<< /Names [ (Doc-Start) 11 0 R (page.1) 10 0 R ] /Limits [ (Doc-Start) (page.1) ] >>
 endobj
-24 0 obj
-<< /Dests 23 0 R >>
+22 0 obj
+<< /Dests 21 0 R >>
 endobj
-25 0 obj
-<< /Type /Catalog /Pages 15 0 R /Names 24 0 R /PageMode /UseOutlines /OpenAction 6 0 R >>
+23 0 obj
+<< /Type /Catalog /Pages 13 0 R /Names 22 0 R /PageMode /UseOutlines/OpenAction [5 0 R /Fit] >>
 endobj
-26 0 obj
-<< /Producer (LuaTeX)/Creator (LaTeX with hyperref) /Trapped /False >>
+24 0 obj
+<< /Producer (LuaTeX)/Author ()/Title ()/Subject ()/Creator (LaTeX with hyperref)/CreationDate ()/ModDate ()/Keywords () /Trapped /False >>
 endobj
 xref
-0 27
-0000000000 65535 f 
-0000001316 00000 n 
-0000001338 00000 n 
-0000001360 00000 n 
-0000001382 00000 n 
-0000001404 00000 n 
+0 25
+0000000001 65535 f 
+0000000002 00000 f 
+0000000003 00000 f 
+0000000004 00000 f 
+0000000000 00000 f 
+0000000257 00000 n 
+0000000418 00000 n 
+0000000636 00000 n 
+0000001111 00000 n 
 0000000020 00000 n 
-0000000306 00000 n 
-0000000469 00000 n 
-0000000687 00000 n 
-0000001162 00000 n 
-0000000068 00000 n 
-0000001041 00000 n 
-0000001101 00000 n 
-0000005022 00000 n 
-0000005376 00000 n 
-0000000437 00000 n 
-0000001426 00000 n 
-0000003865 00000 n 
-0000001582 00000 n 
-0000001655 00000 n 
-0000004101 00000 n 
-0000005176 00000 n 
-0000005437 00000 n 
-0000005538 00000 n 
-0000005574 00000 n 
-0000005680 00000 n 
+0000000990 00000 n 
+0000001050 00000 n 
+0000004776 00000 n 
+0000005130 00000 n 
+0000000386 00000 n 
+0000001180 00000 n 
+0000003619 00000 n 
+0000001336 00000 n 
+0000001409 00000 n 
+0000003855 00000 n 
+0000004930 00000 n 
+0000005191 00000 n 
+0000005292 00000 n 
+0000005328 00000 n 
+0000005440 00000 n 
 trailer
-<< /Size 27 /Root 25 0 R /Info 26 0 R >>
+<< /Size 25 /Root 23 0 R /Info 24 0 R >>
 startxref
-5767
+5596
 %%EOF





More information about the latex3-commits mailing list.