[latex3-commits] [git/LaTeX3-latex3-pdfresources] testlinkstuff: more checkruns (0f88217)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat May 25 23:42:41 CEST 2019


Repository : https://github.com/latex3/pdfresources
On branch  : testlinkstuff
Link       : https://github.com/latex3/pdfresources/commit/0f88217261d7a65a83cc5e817de60d5645b35504

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

commit 0f88217261d7a65a83cc5e817de60d5645b35504
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat May 25 23:42:41 2019 +0200

    more checkruns


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

0f88217261d7a65a83cc5e817de60d5645b35504
 build.lua                            |    2 +-
 pdfresources.dtx                     |   56 +++++++++++++++++++---------------
 testfiles/properties-ocgx.luatex.tpf |   32 +++++++++----------
 testfiles/properties-ocgx.tpf        |   26 ++++++++--------
 4 files changed, 62 insertions(+), 54 deletions(-)

diff --git a/build.lua b/build.lua
index 4f56812..37d843c 100644
--- a/build.lua
+++ b/build.lua
@@ -9,6 +9,6 @@ module  = "pdfresources"
 installfiles = {"*.sty","*.cls","*.def"}
 sourcefiles =  {"*.dtx","*.ins","hluatex-experimental.def","tmpl3shipout.sty"}
 
-checkruns = 2
+checkruns = 3
 checkengines = {"luatex","pdftex"}
 
diff --git a/pdfresources.dtx b/pdfresources.dtx
index 9e24104..8d7f6c0 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -885,6 +885,13 @@
 %  \item[Threads] this is an indirect reference pointing to an array of dictionaries. If threads are
 %  added to a document it should be done by one package only.
 % \end{description}
+% \begin{function}[added = 2019-05-25]{\pdf_catalog_gput:nn}
+%   \begin{syntax}
+%     \cs{pdf_catalog_gput:nn} \meta{name} \meta{value}
+%   \end{syntax}
+%   Inserts \texttt{/name value} in the catalog.
+% \end{function}
+% \begin{macro}{\pdf_catalog_gput:nn}
 %    \begin{macrocode}
 %<*package>
 \prop_new:N \g_@@_catalog_prop
@@ -900,6 +907,7 @@
  }
 %</package>
 %    \end{macrocode}
+% \end{macro}
 %^^A open:  AcroForm, AA (dict, additional-actions),
 %^^A open but unclear: Names. Is created automatically (for the Dests subdict), but no
 %^^A other use found in the texmf tree. So perhaps later.
@@ -947,8 +955,15 @@
 %    \end{macrocode}
 % \end{macro}
 % \paragraph{ViewerPreferences}
-% This is a dictionary with various entries. So we setup a prop that can be filled and is pushed to
-% the catalog / an object later.
+% This is a dictionary with various entries. So we setup a prop that can be filled
+% and is pushed to the catalog / an object later.
+% \begin{function}[added = 2019-05-25]{\pdf_catalog_ViewerPreferences_gput:nn}
+%   \begin{syntax}
+%     \cs{pdf_catalog_ViewerPreferences_gput:n} \meta{name}\meta{value}
+%   \end{syntax}
+%   Inserts the /name value in the ViewerPreferences dictionary.
+% \end{function}
+% \begin{macro}{\pdf_catalog_ViewerPreferences_gput:nn}
 %    \begin{macrocode}
 %<*package>
 % user command: \pdf_catalog_ViewerPreferences_gput:nn, no, nx
@@ -957,6 +972,7 @@
 \_@@_value_dict_new:nnn { catalog }{ ViewerPreferences }{ \driver_pdf_catalog_gput:nn }
 %</package>
 %    \end{macrocode}
+% \end{macro}
 % \paragraph{OCProperties}
 %  This is a dictionary with three entries:
 %  \begin{description}
@@ -1030,30 +1046,23 @@
 %    \end{macrocode}
 % \paragraph{OutputIntents}
 % This is an array of dict/indirect references. So we need a seq to hold the items
-% and some code to put it in the catalog. The user is responsable that the indirect reference points to
-% sensible objects.
+% and some code to put it in the catalog. The user is responsable that the indirect
+% reference points to sensible objects.
+% \begin{function}[added = 2019-05-25]{\pdf_catalog_OutputIntents_gput:nn}
+%   \begin{syntax}
+%     \cs{pdf_catalog_OutputIntents_gput:nn} \meta{name}\meta{indirect object reference}
+%   \end{syntax}
+%   Inserts \texttt{/name reference} in the OutputIntents dictionay of the catalog.
+%   The referenced object must be created by the user.
+% \end{function}
 %    \begin{macrocode}
 %<*package>
-\seq_new:N\g_@@_catalog_OutputIntents_seq
+% user command: \pdf_catalog_OutputIntents_gput:nn, no, nx
+% push command: \__pdf_value_catalog_OutputIntents_gpush:
 
-\cs_new_protected:Npn\pdf_catalog_OutputIntents_gput:n #1
- {
-  \tl_if_empty:nTF { #1 }
-  {
-   \msg_none:nnn { pdf }{ empty-value }{ OutputIntents }
-  }
-  {
-   \seq_gput_right:Nn \g_@@_catalog_OutputIntents_seq { #1 }
-  }
- }
+\_@@_value_array_new:nnn { catalog } { OutputIntents }
+                         {\driver_pdf_catalog_gput:nn}
 
-\cs_new_protected:Npn\@@_catalog_array_gpush:n #1
- {
-  \int_compare:nNnT {\seq_count:c {g_@@_catalog_#1_seq}} > {0}
-  {
-   \exp_args:Nnx \driver_pdf_catalog_gput:nn  {#1} {[\seq_use:cn{g_@@_catalog_#1_seq} {~}]}
-  }
- }
 %</package>
 %    \end{macrocode}
 % \subsubsection{catalog, output}
@@ -1062,11 +1071,10 @@
 %\AfterEndPreamble %need to be decided ...
 \AtEndDocument
  {
-  \@@_catalog_array_gpush:n {OutputIntents} %OutputIntents
+  \@@_value_catalog_OutputIntents_gpush:    %OutputIntents
   \@@_value_catalog_AF_gpush:               %AF
   \@@_catalog_OCProperties_gpush:           %OCProperties
   \@@_value_catalog_ViewerPreferences_gpush:
-  %\@@_catalog_ViewerPreferences_gpush:      %ViewerPreferences
   \prop_map_function:NN  \g_@@_catalog_prop \driver_pdf_catalog_gput:nn
  }
 %</package>
diff --git a/testfiles/properties-ocgx.luatex.tpf b/testfiles/properties-ocgx.luatex.tpf
index fe4a0bb..bf08230 100644
--- a/testfiles/properties-ocgx.luatex.tpf
+++ b/testfiles/properties-ocgx.luatex.tpf
@@ -159,13 +159,13 @@ endobj
 << /test <</test(value)>>  >>
 endobj
 6 0 obj
-<< /test <</test(value)>> /rm at oc0 6 0 R /rm at oc1 7 0 R  >>
+<< /test <</test(value)>> /rm at oc0 9 0 R /rm at oc1 10 0 R  >>
 endobj
 7 0 obj
-<< /test <</test(value)>> /rm at oc2 15 0 R  >>
+<< /test <</test(value)>> /rm at oc2 18 0 R  >>
 endobj
 8 0 obj
-<< /test <</test(value)>> /rm at oc3 6 0 R  >>
+<< /test <</test(value)>> /rm at oc3 9 0 R  >>
 endobj
 32 0 obj
 [ 28 [ 500 ] 47 [ 556 ] 50 [ 444 ] 72 [ 278 ] 74 [ 917 833 ] 81 [ 500 500 ] 88 [ 278 ] 96 [ 392 556 ] 105 [ 389 500 500 ] 116 [ 528 ] 118 [ 528 ] ]
@@ -256,16 +256,16 @@ xref
 0000003026 00000 n 
 0000003048 00000 n 
 0000003093 00000 n 
-0000003166 00000 n 
-0000003226 00000 n 
+0000003167 00000 n 
+0000003227 00000 n 
 0000000020 00000 n 
 0000000067 00000 n 
 0000000893 00000 n 
 0000001010 00000 n 
 0000000733 00000 n 
 0000000118 00000 n 
-0000007294 00000 n 
-0000007648 00000 n 
+0000007295 00000 n 
+0000007649 00000 n 
 0000000866 00000 n 
 0000001164 00000 n 
 0000001756 00000 n 
@@ -281,16 +281,16 @@ xref
 0000002529 00000 n 
 0000002129 00000 n 
 0000002662 00000 n 
-0000003285 00000 n 
-0000006095 00000 n 
-0000003449 00000 n 
-0000003524 00000 n 
-0000006331 00000 n 
-0000007448 00000 n 
-0000007724 00000 n 
-0000008014 00000 n 
+0000003286 00000 n 
+0000006096 00000 n 
+0000003450 00000 n 
+0000003525 00000 n 
+0000006332 00000 n 
+0000007449 00000 n 
+0000007725 00000 n 
+0000008015 00000 n 
 trailer
 << /Size 40 /Root 38 0 R /Info 39 0 R >>
 startxref
-8086
+8087
 %%EOF
diff --git a/testfiles/properties-ocgx.tpf b/testfiles/properties-ocgx.tpf
index 86b1619..6640152 100644
--- a/testfiles/properties-ocgx.tpf
+++ b/testfiles/properties-ocgx.tpf
@@ -190,13 +190,13 @@ endobj
 << /test <</test(value)>>  >>
 endobj
 6 0 obj
-<< /test <</test(value)>> /rm at oc0 6 0 R /rm at oc1 7 0 R  >>
+<< /test <</test(value)>> /rm at oc0 9 0 R /rm at oc1 10 0 R  >>
 endobj
 7 0 obj
-<< /test <</test(value)>> /rm at oc2 14 0 R  >>
+<< /test <</test(value)>> /rm at oc2 17 0 R  >>
 endobj
 8 0 obj
-<< /test <</test(value)>> /rm at oc3 6 0 R  >>
+<< /test <</test(value)>> /rm at oc3 9 0 R  >>
 endobj
 29 0 obj
 [277.8 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 555.6 527.8 722.2 527.8 527.8]
@@ -267,16 +267,16 @@ xref
 0000002625 00000 n 
 0000002647 00000 n 
 0000002692 00000 n 
-0000002765 00000 n 
-0000002825 00000 n 
+0000002766 00000 n 
+0000002826 00000 n 
 0000000015 00000 n 
 0000000062 00000 n 
 0000000715 00000 n 
 0000000830 00000 n 
 0000000580 00000 n 
 0000000113 00000 n 
-0000016234 00000 n 
-0000016374 00000 n 
+0000016235 00000 n 
+0000016375 00000 n 
 0000000983 00000 n 
 0000001468 00000 n 
 0000001583 00000 n 
@@ -289,16 +289,16 @@ xref
 0000002406 00000 n 
 0000002156 00000 n 
 0000001838 00000 n 
-0000002884 00000 n 
-0000003311 00000 n 
-0000015974 00000 n 
-0000016447 00000 n 
-0000016737 00000 n 
+0000002885 00000 n 
+0000003312 00000 n 
+0000015975 00000 n 
+0000016448 00000 n 
+0000016738 00000 n 
 trailer
 << /Size 34
 /Root 32 0 R
 /Info 33 0 R
  >>
 startxref
-16809
+16810
 %%EOF





More information about the latex3-commits mailing list