[latex3-commits] [git/LaTeX3-latex3-pdfresources] backendtest: viewerpreferences testfile (f6558fd)

Ulrike Fischer fischer at troubleshooting-tex.de
Sun Aug 25 23:36:34 CEST 2019


Repository : https://github.com/latex3/pdfresources
On branch  : backendtest
Link       : https://github.com/latex3/pdfresources/commit/f6558fd2335b9c38ac301d7d71707577bb6942f9

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

commit f6558fd2335b9c38ac301d7d71707577bb6942f9
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sun Aug 25 23:36:34 2019 +0200

    viewerpreferences testfile


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

f6558fd2335b9c38ac301d7d71707577bb6942f9
 hluatex-experimental.def                           |   6 +-
 testfiles-pool/viewerpreferences.luatex.tpf        | 175 -------------------
 testfiles-pool/viewerpreferences.tpf               | 188 ---------------------
 testfiles/viewerpreferences.luatex.tpf             | 163 ++++++++++++++++++
 .../viewerpreferences.pvt                          |  10 +-
 testfiles/viewerpreferences.tpf                    | 166 ++++++++++++++++++
 testfiles/viewerpreferences.xetex.tpf              | 148 ++++++++++++++++
 7 files changed, 489 insertions(+), 367 deletions(-)

diff --git a/hluatex-experimental.def b/hluatex-experimental.def
index 4e9232f..a76e75f 100644
--- a/hluatex-experimental.def
+++ b/hluatex-experimental.def
@@ -632,7 +632,7 @@
   {
    \pdf_pagesattr_gput:nn { CropBox } { [\@pdfpagescrop] }
   }
-  \pdf_catalog_gput:nn { PageMode }{ /\@pdfpagemode }
+  \pdf_catalog_gput:nx { PageMode }{ /\@pdfpagemode }
   \tl_if_empty:NF \@baseurl
    {
     \Hy at pstringdef\Hy at pstringB{\@baseurl}%
@@ -640,13 +640,13 @@
    }
   \tl_if_empty:oF { \@pdfpagelayout }
    {
-    \pdf_catalog_gput:nn{ PageLayout }{ /\@pdfpagelayout }
+    \pdf_catalog_gput:nx{ PageLayout }{ /\@pdfpagelayout }
    }
   \tl_if_exist:NT\@pdflang
    {
     \tl_if_empty:NF\@pdflang
     {
-     \pdf_catalog_gput:nn { Lang } { (\@pdflang) }
+     \pdf_catalog_gput:nx { Lang } { (\@pdflang) }
     }
    }
   \bool_if:nF
diff --git a/testfiles-pool/viewerpreferences.luatex.tpf b/testfiles-pool/viewerpreferences.luatex.tpf
deleted file mode 100644
index f9dbce0..0000000
--- a/testfiles-pool/viewerpreferences.luatex.tpf
+++ /dev/null
@@ -1,175 +0,0 @@
-%PDF-1.5
-%ÌÕÁÔÅØÐÄÆ
-6 0 obj
-<< /Type/OCG/Name(View)/Usage<</Print<</PrintState/OFF>> /View<</ViewState/ON>> >> >>
-endobj
-7 0 obj
-<< /Type/OCG/Name(Print)/Usage<</Print<</PrintState/ON>> /View<</ViewState/OFF>> >> >>
-endobj
-9 0 obj
-[ 6 0 R 7 0 R ]
-endobj
-8 0 obj
-<< /OFF[7 0 R]/AS[<</Event/View/OCGs 9 0 R/Category[/View]>><</Event/Print/OCGs 9 0 R/Category[/Print]>><</Event/Export/OCGs 9 0 R/Category[/Print]>>] >>
-endobj
-10 0 obj
-<< /S /GoTo /D [ 11 0 R /Fit ] >>
-endobj
-13 0 obj
-<< /Length 142 >>        
-stream
-0 g 0 G
-0 g 0 G
-BT
-/F15 9.96264 Tf
-1 0 0 1 148.712 657.235 Tm [<001C0023>-28<002B>]TJ
-0 g 0 G
-1 0 0 1 303.133 89.365 Tm [<0052>]TJ
-0 g 0 G
-ET
-endstream
-endobj
-11 0 obj
-<< /Type /Page /Contents 13 0 R /Resources 12 0 R /MediaBox [ 0 0 612 792 ] /Parent 17 0 R >>
-endobj
-14 0 obj
-<< /D [ 11 0 R /XYZ 132.768 705.06 null ] >>
-endobj
-15 0 obj
-<< /D [ 11 0 R /XYZ 133.768 667.198 null ] >>
-endobj
-12 0 obj
-<< /ExtGState 1 0 R /ColorSpace 2 0 R /Pattern 3 0 R /Shading 4 0 R /Properties 5 0 R  /Font << /F15 16 0 R >> /ProcSet [ /PDF /Text ] >>
-endobj
-1 0 obj
-<<  >>
-endobj
-2 0 obj
-<<  >>
-endobj
-3 0 obj
-<<  >>
-endobj
-4 0 obj
-<<  >>
-endobj
-5 0 obj
-<< /OCView 6 0 R /OCPrint 7 0 R  >>
-endobj
-18 0 obj
-<< /OCGs [6 0 R 7 0 R]/D 8 0 R >>
-endobj
-19 0 obj
-<< /HideToolbar true /NonFullScreenPageMode /UseNone /NumCopies 4  >>
-endobj
-20 0 obj
-[ 28 [ 500 ] 35 [ 556 ] 43 [ 444 ] 82 [ 500 ] ]
-endobj
-22 0 obj
-<< /Length 11 >>         
-[BINARY STREAM]
-endobj
-23 0 obj
-<< /Subtype /CIDFontType0C /Length 955 >>        
-[BINARY STREAM]
-endobj
-21 0 obj
-<< /Type /FontDescriptor /FontName /NSMWQI+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 23 0 R /CIDSet 22 0 R >>
-endobj
-24 0 obj
-<< /Length 734 >>        
-stream
-%!PS-Adobe-3.0 Resource-CMap
-%%DocumentNeededResources: ProcSet (CIDInit)
-%%IncludeResource: ProcSet (CIDInit)
-%%BeginResource: CMap (TeX-NSMWQI-LMRoman10-Regular-0)
-%%Title: (TeX-NSMWQI-LMRoman10-Regular-0 TeX NSMWQI-LMRoman10-Regular 0)
-%%Version: 1.000
-%%EndComments
-/CIDInit /ProcSet findresource begin
-12 dict begin
-begincmap
-/CIDSystemInfo
-<< /Registry (TeX)
-/Ordering (NSMWQI-LMRoman10-Regular)
-/Supplement 0
->> def
-/CMapName /TeX-Identity-NSMWQI-LMRoman10-Regular def
-/CMapType 2 def
-1 begincodespacerange
-<0000> <FFFF>
-endcodespacerange
-0 beginbfrange
-endbfrange
-4 beginbfchar
-<001C> <0061>
-<0023> <0062>
-<002B> <0063>
-<0052> <0031>
-endbfchar
-endcmap
-CMapName currentdict /CMap defineresource pop
-end
-end
-%%EndResource
-%%EOF
-endstream
-endobj
-16 0 obj
-<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /NSMWQI+LMRoman10-Regular /DescendantFonts [ 25 0 R ] /ToUnicode 24 0 R >>
-endobj
-25 0 obj
-<< /Type /Font /Subtype /CIDFontType0 /BaseFont /NSMWQI+LMRoman10-Regular /FontDescriptor 21 0 R /W 20 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
-endobj
-17 0 obj
-<< /Type /Pages  /Count 1 /Kids [ 11 0 R ] >>
-endobj
-26 0 obj
-<< /Names [ (Doc-Start) 15 0 R (page.1) 14 0 R ] /Limits [ (Doc-Start) (page.1) ] >>
-endobj
-27 0 obj
-<< /Dests 26 0 R >>
-endobj
-28 0 obj
-<< /Type /Catalog /Pages 17 0 R /Names 27 0 R /OCProperties 18 0 R/ViewerPreferences 19 0 R/PageMode /UseOutlines/PageLayout /SinglePage /OpenAction 10 0 R >>
-endobj
-29 0 obj
-<< /Producer (LuaTeX)/Creator (LaTeX with hyperref) /Trapped /False >>
-endobj
-xref
-0 30
-0000000000 65535 f 
-0000001062 00000 n 
-0000001084 00000 n 
-0000001106 00000 n 
-0000001128 00000 n 
-0000001150 00000 n 
-0000000020 00000 n 
-0000000121 00000 n 
-0000000254 00000 n 
-0000000223 00000 n 
-0000000423 00000 n 
-0000000675 00000 n 
-0000000908 00000 n 
-0000000473 00000 n 
-0000000785 00000 n 
-0000000846 00000 n 
-0000003541 00000 n 
-0000003895 00000 n 
-0000001201 00000 n 
-0000001251 00000 n 
-0000001337 00000 n 
-0000002511 00000 n 
-0000001401 00000 n 
-0000001472 00000 n 
-0000002747 00000 n 
-0000003695 00000 n 
-0000003957 00000 n 
-0000004058 00000 n 
-0000004094 00000 n 
-0000004269 00000 n 
-trailer
-<< /Size 30 /Root 28 0 R /Info 29 0 R >>
-startxref
-4356
-%%EOF
diff --git a/testfiles-pool/viewerpreferences.tpf b/testfiles-pool/viewerpreferences.tpf
deleted file mode 100644
index 1db22f2..0000000
--- a/testfiles-pool/viewerpreferences.tpf
+++ /dev/null
@@ -1,188 +0,0 @@
-%PDF-1.5
-%ÐÔÅØ
-6 0 obj
-<< /Type/OCG/Name(View)/Usage<</Print<</PrintState/OFF>> /View<</ViewState/ON>> >> >>
-endobj
-7 0 obj
-<< /Type/OCG/Name(Print)/Usage<</Print<</PrintState/ON>> /View<</ViewState/OFF>> >> >>
-endobj
-9 0 obj
-[ 6 0 R 7 0 R ]
-endobj
-8 0 obj
-<< /OFF[7 0 R]/AS[<</Event/View/OCGs 9 0 R/Category[/View]>><</Event/Print/OCGs 9 0 R/Category[/Print]>><</Event/Export/OCGs 9 0 R/Category[/Print]>>] >>
-endobj
-10 0 obj
-<< /S /GoTo /D [11 0 R /Fit] >>
-endobj
-13 0 obj
-<<
-/Length 114       
->>
-stream
-0 g 0 G
-0 g 0 G
-BT
-/F8 9.9626 Tf 148.712 657.235 Td [(ab)-28(c)]TJ
-0 g 0 G
- 154.421 -567.87 Td [(1)]TJ
-0 g 0 G
-ET
-endstream
-endobj
-11 0 obj
-<<
-/Type /Page
-/Contents 13 0 R
-/Resources 12 0 R
-/MediaBox [0 0 612 792]
-/Parent 17 0 R
->>
-endobj
-14 0 obj
-<<
-/D [11 0 R /XYZ 132.768 705.06 null]
->>
-endobj
-15 0 obj
-<<
-/D [11 0 R /XYZ 133.768 667.198 null]
->>
-endobj
-12 0 obj
-<<
-/ExtGState 1 0 R /ColorSpace 2 0 R /Pattern 3 0 R /Shading 4 0 R /Properties 5 0 R 
-/Font << /F8 16 0 R >>
-/ProcSet [ /PDF /Text ]
->>
-endobj
-1 0 obj
-<<  >>
-endobj
-2 0 obj
-<<  >>
-endobj
-3 0 obj
-<<  >>
-endobj
-4 0 obj
-<<  >>
-endobj
-5 0 obj
-<< /OCView 6 0 R /OCPrint 7 0 R  >>
-endobj
-18 0 obj
-<< /OCGs [6 0 R 7 0 R]/D 8 0 R >>
-endobj
-19 0 obj
-<< /HideToolbar true /NonFullScreenPageMode /UseNone /NumCopies 4  >>
-endobj
-20 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]
-endobj
-21 0 obj
-<<
-/Length1 1407
-/Length2 7801
-/Length3 0
-/Length 9208      
->>
-[BINARY STREAM]
-endobj
-22 0 obj
-<<
-/Type /FontDescriptor
-/FontName /EVYFYC+CMR10
-/Flags 4
-/FontBBox [-40 -250 1009 750]
-/Ascent 694
-/CapHeight 683
-/Descent -194
-/ItalicAngle 0
-/StemV 69
-/XHeight 431
-/CharSet (/a/b/c/one)
-/FontFile 21 0 R
->>
-endobj
-16 0 obj
-<<
-/Type /Font
-/Subtype /Type1
-/BaseFont /EVYFYC+CMR10
-/FontDescriptor 22 0 R
-/FirstChar 49
-/LastChar 99
-/Widths 20 0 R
->>
-endobj
-17 0 obj
-<<
-/Type /Pages
-/Count 1
-/Kids [11 0 R]
->>
-endobj
-23 0 obj
-<<
-/Names [(Doc-Start) 15 0 R (page.1) 14 0 R]
-/Limits [(Doc-Start) (page.1)]
->>
-endobj
-24 0 obj
-<<
-/Dests 23 0 R
->>
-endobj
-25 0 obj
-<<
-/Type /Catalog
-/Pages 17 0 R
-/Names 24 0 R
-/OCProperties 18 0 R/ViewerPreferences 19 0 R/PageMode /UseOutlines/PageLayout /SinglePage
-/OpenAction 10 0 R
->>
-endobj
-26 0 obj
-<<
-/Producer (pdfTeX)/Creator (LaTeX with hyperref)
-/Trapped /False
->>
-endobj
-xref
-0 27
-0000000000 65535 f 
-0000001019 00000 n 
-0000001041 00000 n 
-0000001063 00000 n 
-0000001085 00000 n 
-0000001107 00000 n 
-0000000015 00000 n 
-0000000116 00000 n 
-0000000249 00000 n 
-0000000218 00000 n 
-0000000418 00000 n 
-0000000639 00000 n 
-0000000866 00000 n 
-0000000466 00000 n 
-0000000747 00000 n 
-0000000806 00000 n 
-0000011110 00000 n 
-0000011249 00000 n 
-0000001158 00000 n 
-0000001208 00000 n 
-0000001294 00000 n 
-0000001579 00000 n 
-0000010885 00000 n 
-0000011308 00000 n 
-0000011405 00000 n 
-0000011441 00000 n 
-0000011616 00000 n 
-trailer
-<< /Size 27
-/Root 25 0 R
-/Info 26 0 R
- >>
-startxref
-11703
-%%EOF
diff --git a/testfiles/viewerpreferences.luatex.tpf b/testfiles/viewerpreferences.luatex.tpf
new file mode 100644
index 0000000..eb4d885
--- /dev/null
+++ b/testfiles/viewerpreferences.luatex.tpf
@@ -0,0 +1,163 @@
+%PDF-1.7
+%ÌÕÁÔÅØÐÄÆ
+8 0 obj
+[ 5 0 R 6 0 R ]
+endobj
+5 0 obj
+<< /Type/OCG/Name(View)/Usage<</Print<</PrintState/OFF>> /View<</ViewState/ON>> >> >>
+endobj
+6 0 obj
+<< /Type/OCG/Name(Print)/Usage<</Print<</PrintState/ON>> /View<</ViewState/OFF>> >> >>
+endobj
+7 0 obj
+<< /OFF[6 0 R]/AS[<</Event/View/OCGs 8 0 R/Category[/View]>><</Event/Print/OCGs 8 0 R/Category[/Print]>><</Event/Export/OCGs 8 0 R/Category[/Print]>>] >>
+endobj
+11 0 obj
+<< /Length 196 >>        
+stream
+0 g 0 G
+0 g 0 G
+BT
+/F25 9.96264 Tf
+1 0 0 1 148.712 657.235 Tm [<004E>-333<0079>-333<005F>-333<006600660036004200690029001C0023>-28<002B>]TJ
+0 g 0 G
+1 0 0 1 303.133 89.365 Tm [<0052>]TJ
+0 g 0 G
+ET
+endstream
+endobj
+9 0 obj
+<< /Type /Page /Contents 11 0 R /Resources 10 0 R /MediaBox [ 0 0 612 792 ] /Parent 15 0 R >>
+endobj
+12 0 obj
+<< /D [ 9 0 R /XYZ 132.768 705.06 null ] >>
+endobj
+14 0 obj
+<< /D [ 9 0 R /XYZ 201.843 657.235 null ] >>
+endobj
+10 0 obj
+<< /Font << /F25 13 0 R >> /ProcSet [ /PDF /Text ] >>
+endobj
+16 0 obj
+<< /OCGs [5 0 R 6 0 R]/D 7 0 R >>
+endobj
+17 0 obj
+<< /HideToolbar true /NonFullScreenPageMode /UseNone /NumCopies 4  >>
+endobj
+18 0 obj
+[ 28 [ 500 ] 35 [ 556 ] 41 [ 278 ] 43 [ 444 ] 54 [ 653 ] 66 [ 278 ] 78 [ 500 ] 82 [ 500 ] 95 [ 736 ] 102 [ 500 ] 105 [ 389 ] 121 [ 500 ] ]
+endobj
+20 0 obj
+<< /Length 16 >>         
+[BINARY STREAM]
+endobj
+21 0 obj
+<< /Subtype /CIDFontType0C /Length 1828 >>       
+[BINARY STREAM]
+endobj
+19 0 obj
+<< /Type /FontDescriptor /FontName /QSDFHU+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 21 0 R /CIDSet 20 0 R >>
+endobj
+22 0 obj
+<< /Length 847 >>        
+stream
+%!PS-Adobe-3.0 Resource-CMap
+%%DocumentNeededResources: ProcSet (CIDInit)
+%%IncludeResource: ProcSet (CIDInit)
+%%BeginResource: CMap (TeX-QSDFHU-LMRoman10-Regular-0)
+%%Title: (TeX-QSDFHU-LMRoman10-Regular-0 TeX QSDFHU-LMRoman10-Regular 0)
+%%Version: 1.000
+%%EndComments
+/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CIDSystemInfo
+<< /Registry (TeX)
+/Ordering (QSDFHU-LMRoman10-Regular)
+/Supplement 0
+>> def
+/CMapName /TeX-Identity-QSDFHU-LMRoman10-Regular def
+/CMapType 2 def
+1 begincodespacerange
+<0000> <FFFF>
+endcodespacerange
+0 beginbfrange
+endbfrange
+12 beginbfchar
+<001C> <0061>
+<0023> <0062>
+<0029> <005D>
+<002B> <0063>
+<0036> <0046>
+<0042> <0069>
+<004E> <0039>
+<0052> <0031>
+<005F> <0052>
+<0066> <002F>
+<0069> <0074>
+<0079> <0030>
+endbfchar
+endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end
+%%EndResource
+%%EOF
+endstream
+endobj
+13 0 obj
+<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /QSDFHU+LMRoman10-Regular /DescendantFonts [ 23 0 R ] /ToUnicode 22 0 R >>
+endobj
+23 0 obj
+<< /Type /Font /Subtype /CIDFontType0 /BaseFont /QSDFHU+LMRoman10-Regular /FontDescriptor 19 0 R /W 18 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
+endobj
+15 0 obj
+<< /Type /Pages  /Count 1 /Kids [ 9 0 R ] >>
+endobj
+24 0 obj
+<< /Names [ (Doc-Start) 14 0 R (page.1) 12 0 R ] /Limits [ (Doc-Start) (page.1) ] >>
+endobj
+25 0 obj
+<< /Dests 24 0 R >>
+endobj
+26 0 obj
+<< /Type /Catalog /Pages 15 0 R /Names 25 0 R /OCProperties 16 0 R/ViewerPreferences 17 0 R/Lang (de-DE)/PageMode /UseOutlines/PageLayout /SinglePage/OpenAction [ >>
+endobj
+27 0 obj
+<< /Producer (LuaTeX)/Author ()/Title ()/Subject ()/Creator (LaTeX with hyperref)/CreationDate ()/ModDate ()/Keywords () /Trapped /False >>
+endobj
+xref
+0 28
+0000000001 65535 f 
+0000000002 00000 f 
+0000000003 00000 f 
+0000000004 00000 f 
+0000000000 00000 f 
+0000000051 00000 n 
+0000000152 00000 n 
+0000000254 00000 n 
+0000000020 00000 n 
+0000000679 00000 n 
+0000000909 00000 n 
+0000000423 00000 n 
+0000000788 00000 n 
+0000004401 00000 n 
+0000000848 00000 n 
+0000004755 00000 n 
+0000000979 00000 n 
+0000001029 00000 n 
+0000001115 00000 n 
+0000003258 00000 n 
+0000001270 00000 n 
+0000001346 00000 n 
+0000003494 00000 n 
+0000004555 00000 n 
+0000004816 00000 n 
+0000004917 00000 n 
+0000004953 00000 n 
+0000005135 00000 n 
+trailer
+<< /Size 28 /Root 26 0 R /Info 27 0 R >>
+startxref
+5291
+%%EOF
diff --git a/testfiles-pool/viewerpreferences.pvt b/testfiles/viewerpreferences.pvt
similarity index 59%
rename from testfiles-pool/viewerpreferences.pvt
rename to testfiles/viewerpreferences.pvt
index dbc918d..4aa039b 100644
--- a/testfiles-pool/viewerpreferences.pvt
+++ b/testfiles/viewerpreferences.pvt
@@ -1,4 +1,12 @@
-%\input{regression-test}
+\PassOptionsToPackage{enable-debug,check-declarations}{expl3}
+\RequirePackage[debug]{pdfresources}
+\DeclareDocumentMetaData
+ {
+   pdfversion=1.7, 
+   lang=de-DE,
+   uncompress
+ }
+\input{regression-test}
 \documentclass{article}
 \usepackage[customdriver=hluatex-experimental,
             ocgcolorlinks,
diff --git a/testfiles/viewerpreferences.tpf b/testfiles/viewerpreferences.tpf
new file mode 100644
index 0000000..b393699
--- /dev/null
+++ b/testfiles/viewerpreferences.tpf
@@ -0,0 +1,166 @@
+%PDF-1.7
+%ÐÔÅØ
+8 0 obj
+[ 5 0 R 6 0 R ]
+endobj
+5 0 obj
+<< /Type/OCG/Name(View)/Usage<</Print<</PrintState/OFF>> /View<</ViewState/ON>> >> >>
+endobj
+6 0 obj
+<< /Type/OCG/Name(Print)/Usage<</Print<</PrintState/ON>> /View<</ViewState/OFF>> >> >>
+endobj
+7 0 obj
+<< /OFF[6 0 R]/AS[<</Event/View/OCGs 8 0 R/Category[/View]>><</Event/Print/OCGs 8 0 R/Category[/Print]>><</Event/Export/OCGs 8 0 R/Category[/Print]>>] >>
+endobj
+11 0 obj
+<<
+/Length 141       
+>>
+stream
+0 g 0 G
+0 g 0 G
+BT
+/F8 9.9626 Tf 148.712 657.235 Td [(9)-333(0)-334(R)-333(//Fit]ab)-28(c)]TJ
+0 g 0 G
+ 154.421 -567.87 Td [(1)]TJ
+0 g 0 G
+ET
+endstream
+endobj
+9 0 obj
+<<
+/Type /Page
+/Contents 11 0 R
+/Resources 10 0 R
+/MediaBox [0 0 612 792]
+/Parent 15 0 R
+>>
+endobj
+12 0 obj
+<<
+/D [9 0 R /XYZ 132.768 705.06 null]
+>>
+endobj
+14 0 obj
+<<
+/D [9 0 R /XYZ 201.846 657.235 null]
+>>
+endobj
+10 0 obj
+<<
+/Font << /F8 13 0 R >>
+/ProcSet [ /PDF /Text ]
+>>
+endobj
+16 0 obj
+<< /OCGs [5 0 R 6 0 R]/D 7 0 R >>
+endobj
+17 0 obj
+<< /HideToolbar true /NonFullScreenPageMode /UseNone /NumCopies 4  >>
+endobj
+18 0 obj
+[500 500 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]
+endobj
+19 0 obj
+<<
+/Length1 1542
+/Length2 9653
+/Length3 0
+/Length 11195     
+>>
+[BINARY STREAM]
+endobj
+20 0 obj
+<<
+/Type /FontDescriptor
+/FontName /NXFMUP+CMR10
+/Flags 4
+/FontBBox [-40 -250 1009 750]
+/Ascent 694
+/CapHeight 683
+/Descent -194
+/ItalicAngle 0
+/StemV 69
+/XHeight 431
+/CharSet (/F/R/a/b/bracketright/c/i/nine/one/slash/t/zero)
+/FontFile 19 0 R
+>>
+endobj
+13 0 obj
+<<
+/Type /Font
+/Subtype /Type1
+/BaseFont /NXFMUP+CMR10
+/FontDescriptor 20 0 R
+/FirstChar 47
+/LastChar 116
+/Widths 18 0 R
+>>
+endobj
+15 0 obj
+<<
+/Type /Pages
+/Count 1
+/Kids [9 0 R]
+>>
+endobj
+21 0 obj
+<<
+/Names [(Doc-Start) 14 0 R (page.1) 12 0 R]
+/Limits [(Doc-Start) (page.1)]
+>>
+endobj
+22 0 obj
+<<
+/Dests 21 0 R
+>>
+endobj
+23 0 obj
+<<
+/Type /Catalog
+/Pages 15 0 R
+/Names 22 0 R
+/OCProperties 16 0 R/ViewerPreferences 17 0 R/Lang (de-DE)/PageMode /UseOutlines/PageLayout /SinglePage/OpenAction [
+>>
+endobj
+24 0 obj
+<<
+/Producer (pdfTeX)/Author ()/Title ()/Subject ()/Creator (LaTeX with hyperref)/CreationDate ()/ModDate ()/Keywords ()
+/Trapped /False
+>>
+endobj
+xref
+0 25
+0000000001 65535 f 
+0000000002 00000 f 
+0000000003 00000 f 
+0000000004 00000 f 
+0000000000 00000 f 
+0000000046 00000 n 
+0000000147 00000 n 
+0000000249 00000 n 
+0000000015 00000 n 
+0000000618 00000 n 
+0000000842 00000 n 
+0000000418 00000 n 
+0000000725 00000 n 
+0000012993 00000 n 
+0000000783 00000 n 
+0000013133 00000 n 
+0000000911 00000 n 
+0000000961 00000 n 
+0000001047 00000 n 
+0000001438 00000 n 
+0000012731 00000 n 
+0000013191 00000 n 
+0000013288 00000 n 
+0000013324 00000 n 
+0000013506 00000 n 
+trailer
+<< /Size 25
+/Root 23 0 R
+/Info 24 0 R
+ >>
+startxref
+13662
+%%EOF
diff --git a/testfiles/viewerpreferences.xetex.tpf b/testfiles/viewerpreferences.xetex.tpf
new file mode 100644
index 0000000..9335429
--- /dev/null
+++ b/testfiles/viewerpreferences.xetex.tpf
@@ -0,0 +1,148 @@
+%PDF-1.7
+%äðíø
+16 0 obj
+<</Length 232>>
+stream
+ q 1 0 0 1 72 720 cm BT /F1 9.9626 Tf 76.712 -62.765 Td[<00210054001c003b00320052>-333<006600660036004200690029>]TJ ET BT /F1 9.9626 Tf 138.57 -62.765 Td[<001c0023>-28<002b>]TJ ET BT /F1 9.9626 Tf 231.133 -630.635 Td[<0052>]TJ ET Q
+endstream
+endobj
+17 0 obj
+<</ExtGState 4 0 R/ColorSpace 5 0 R/Pattern 6 0 R/Shading 7 0 R/Font<</F1 15 0 R>>/ProcSet[/PDF/Text/ImageC/ImageB/ImageI]>>
+endobj
+4 0 obj
+<<>>
+endobj
+5 0 obj
+<<>>
+endobj
+6 0 obj
+<<>>
+endobj
+7 0 obj
+<<>>
+endobj
+8 0 obj
+<</Type/OCG/Name(View)/Usage<</Print<</PrintState/OFF>>/View<</ViewState/ON>>>>>>
+endobj
+9 0 obj
+<</Type/OCG/Name(Print)/Usage<</Print<</PrintState/ON>>/View<</ViewState/OFF>>>>>>
+endobj
+10 0 obj
+<</OFF[9 0 R]/AS[<</Event/View/OCGs 13 0 R/Category[/View]>><</Event/Print/OCGs 13 0 R/Category[/Print]>><</Event/Export/OCGs
+13 0 R/Category[/Print]>>]>>
+endobj
+13 0 obj
+[8 0 R 9 0 R]
+endobj
+11 0 obj
+<</OCGs[8 0 R 9 0 R]/D 10 0 R>>
+endobj
+12 0 obj
+<</HideToolbar true/NonFullScreenPageMode/UseNone/NumCopies 4>>
+endobj
+3 0 obj
+<</Resources 17 0 R/Type/Page/Parent 18 0 R/Contents[16 0 R]>>
+endobj
+18 0 obj
+<</Type/Pages/Count 1/Kids[3 0 R]/MediaBox[0 0 612 792]>>
+endobj
+2 0 obj
+<</Creator(TeX)/Producer(xdvipdfmx)/CreationDate(D:20160520090000-00'00')>>
+endobj
+1 0 obj
+<</OCProperties 11 0 R/ViewerPreferences 12 0 R/Lang(de-DE)/PageMode/UseOutlines/PageLayout/SinglePage/Pages
+18 0 R/Type/Catalog>>
+endobj
+19 0 obj
+<</Length 525>>
+stream
+/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CMapName /APWWDF+LMRoman10-Regular-UTF16 def
+/CMapType 2 def
+/CIDSystemInfo <<
+  /Registry (Adobe)
+  /Ordering (UCS)
+  /Supplement 0
+>> def
+1 begincodespacerange
+<0000> <FFFF>
+endcodespacerange
+13 beginbfchar
+<001C> <0061>
+<0021> <0040>
+<0023> <0062>
+<0029> <005D>
+<002B> <0063>
+<0032> <0065>
+<0036> <0046>
+<003B> <0067>
+<0042> <0069>
+<0052> <0031>
+<0054> <0070>
+<0066> <002F>
+<0069> <0074>
+endbfchar
+endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end
+endstream
+endobj
+21 0 obj
+<</Subtype/CIDFontType0C/Length 2044>>
+[BINARY STREAM]
+endobj
+22 0 obj
+[28[500]33[778]35[556]41[278]43[444]50[444]54[653]59[500]66[278]82[500]84[556]102[500]105[389]]
+endobj
+23 0 obj
+<</Length 14>>
+[BINARY STREAM]
+endobj
+14 0 obj
+<</Type/Font/Subtype/CIDFontType0/BaseFont/APWWDF+LMRoman10-Regular/CIDSystemInfo<</Registry(Adobe)/Ordering(Identity)/Supplement
+0>>/FontDescriptor 20 0 R/DW 280/W 22 0 R>>
+endobj
+20 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/APWWDF+LMRoman10-Regular/FontFile3
+21 0 R/CIDSet 23 0 R>>
+endobj
+15 0 obj
+<</Type/Font/Subtype/Type0/BaseFont/APWWDF+LMRoman10-Regular-Identity-H/Encoding/Identity-H/DescendantFonts[14 0 R]/ToUnicode
+19 0 R>>
+endobj
+xref
+0 24
+0000000000 65535 f 
+0000001285 00000 n 
+0000001194 00000 n 
+0000001042 00000 n 
+0000000438 00000 n 
+0000000458 00000 n 
+0000000478 00000 n 
+0000000498 00000 n 
+0000000518 00000 n 
+0000000615 00000 n 
+0000000713 00000 n 
+0000000914 00000 n 
+0000000962 00000 n 
+0000000884 00000 n 
+0000004298 00000 n 
+0000004749 00000 n 
+0000000015 00000 n 
+0000000297 00000 n 
+0000001120 00000 n 
+0000001431 00000 n 
+0000004488 00000 n 
+0000002006 00000 n 
+0000004123 00000 n 
+0000004235 00000 n 
+trailer
+<</Root 1 0 R/Info 2 0 R/ID[<7f428725bdb67706a21a993579fb3775><7f428725bdb67706a21a993579fb3775>]/Size
+24>>
+startxref
+4900
+%%EOF





More information about the latex3-commits mailing list