diff options
Diffstat (limited to 'macros/latex/contrib/pdfmanagement-testphase/l3pdfmanagement.dtx')
-rw-r--r-- | macros/latex/contrib/pdfmanagement-testphase/l3pdfmanagement.dtx | 97 |
1 files changed, 43 insertions, 54 deletions
diff --git a/macros/latex/contrib/pdfmanagement-testphase/l3pdfmanagement.dtx b/macros/latex/contrib/pdfmanagement-testphase/l3pdfmanagement.dtx index 63865b4627..a2ece6cbcd 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/l3pdfmanagement.dtx +++ b/macros/latex/contrib/pdfmanagement-testphase/l3pdfmanagement.dtx @@ -23,11 +23,10 @@ % for those people who are interested. % %<*driver> -\RequirePackage{pdfmanagement-testphase} \DocumentMetadata{pdfstandard=A-2b} \documentclass[full]{l3doc} \usepackage{tabularx} -\usepackage{array,booktabs,hyperxmp} +\usepackage{array,booktabs} \hypersetup{pdfauthor=The LaTeX Project,pdftitle=l3pdfmanagement (LaTeX PDF management testphase bundle)} \providecommand\potentialclash{\noindent\llap{\dbend\ }} @@ -58,7 +57,7 @@ % }^^A % } % -% \date{Version 0.95r, released 2022-08-24} +% \date{Version 0.95s, released 2022-09-26} % % \maketitle % \begin{documentation} @@ -538,8 +537,8 @@ % The value is an object reference. It is sensible to declare the object % first. E.g. % \begin{verbatim} -% \pdf_object_new:nn {module/intent}{dict} -% \pdf_object_write:nn {module/intent}{...} +% \pdf_object_new:n {module/intent} +% \pdf_object_write:nnn {module/intent}{dict}{...} % \pdfmanagement_add:nnx {Catalog} {OutputIntents}{\pdf_object_ref:n {module/intent}} % \end{verbatim} % @@ -633,7 +632,7 @@ %<@@=pdfmanagement> %<*header> % -\ProvidesExplPackage{l3pdfmanagement}{2022-08-24}{0.95r} +\ProvidesExplPackage{l3pdfmanagement}{2022-09-26}{0.95s} {Management of core PDF dictionaries (LaTeX PDF management testphase bundle)} %</header> % \end{macrocode} @@ -1279,9 +1278,9 @@ \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AA } } { - \pdf_object_new:nn { @@/Catalog/AA } { dict } - \pdf_object_write:nx - { @@/Catalog/AA } + \pdf_object_new:n { @@/Catalog/AA } + \pdf_object_write:nnx + { @@/Catalog/AA }{ dict } { \pdfdict_use:n { g__pdf_Core/Catalog/AA } } \exp_args:Nnx \__pdf_backend_catalog_gput:nn @@ -1309,9 +1308,9 @@ { \seq_if_empty:cF { g_@@_/Catalog/AcroForm/Fields_seq } { - \pdf_object_new:nn { @@/Catalog/AcroForm/Fields } { array } - \pdf_object_write:nx - { @@/Catalog/AcroForm/Fields } + \pdf_object_new:n { @@/Catalog/AcroForm/Fields } + \pdf_object_write:nnx + { @@/Catalog/AcroForm/Fields } { array } { \seq_use:cn { g_@@_/Catalog/AcroForm/Fields_seq } {~} } \exp_args:Nnnx \prop_gput:cnn %we have to use \prop here to avoid the handler ... @@ -1321,10 +1320,9 @@ } \seq_if_empty:cF { g_@@_/Catalog/AcroForm/CO_seq } { - \pdf_object_new:nn { @@/Catalog/AcroForm/CO } { array } - \exp_args:Nnx - \pdf_object_write:nn - { @@/Catalog/AcroForm/CO } + \pdf_object_new:n { @@/Catalog/AcroForm/CO } + \pdf_object_write:nnx + { @@/Catalog/AcroForm/CO } { array } { \seq_use:cn { g_@@_/Catalog/AcroForm/CO_seq } {~} } \exp_args:Nnnx \prop_gput:cnn %we have to use \prop here to avoid the handler ... @@ -1334,10 +1332,9 @@ } \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm/DR/Font}} { - \pdf_object_new:nn { @@/Catalog/AcroForm/DR/Font } {dict} - \exp_args:Nnx - \pdf_object_write:nn - { @@/Catalog/AcroForm/DR/Font } + \pdf_object_new:n { @@/Catalog/AcroForm/DR/Font } + \pdf_object_write:nnx + { @@/Catalog/AcroForm/DR/Font } { dict } { \pdfdict_use:n { g__pdf_Core/Catalog/AcroForm/DR/Font } } \exp_args:Nnnx \prop_gput:cnn %we have to use \prop here to avoid the handler ... @@ -1347,10 +1344,9 @@ } \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm/DR}} { - \pdf_object_new:nn { @@/Catalog/AcroForm/DR } {dict} - \exp_args:Nnx - \pdf_object_write:nn - { @@/Catalog/AcroForm/DR } + \pdf_object_new:n { @@/Catalog/AcroForm/DR } + \pdf_object_write:nnx + { @@/Catalog/AcroForm/DR } { dict } { \pdfdict_use:n { g__pdf_Core/Catalog/AcroForm/DR } } \exp_args:Nnnx \prop_gput:cnn %we have to use \prop here to avoid the handler ... @@ -1360,10 +1356,9 @@ } \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm} } { - \pdf_object_new:nn { @@/Catalog/AcroForm } {dict} - \exp_args:Nnx - \pdf_object_write:nn - { @@/Catalog/AcroForm } + \pdf_object_new:n { @@/Catalog/AcroForm } + \pdf_object_write:nnx + { @@/Catalog/AcroForm } { dict } { \pdfdict_use:n { g__pdf_Core/Catalog/AcroForm } } \exp_args:Nnnx \@@_handler_gput:nnn @@ -1385,10 +1380,9 @@ \seq_if_empty:cF { g_@@_/Catalog/AF_seq } { - \pdf_object_new:nn { @@/Catalog/AF } { array } - \exp_args:Nnx - \pdf_object_write:nn - { @@/Catalog/AF } + \pdf_object_new:n { @@/Catalog/AF } + \pdf_object_write:nnx + { @@/Catalog/AF } { array } { \seq_use:cn { g_@@_/Catalog/AF_seq } {~} } \exp_args:Nnx \__pdf_backend_catalog_gput:nn @@ -1409,11 +1403,10 @@ \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/MarkInfo } } { - \pdf_object_new:nn { @@/Catalog/MarkInfo } { dict } - \exp_args:Nnx - \pdf_object_write:nn - { @@/Catalog/MarkInfo } - { \pdfdict_use:n { g__pdf_Core/Catalog/MarkInfo } } + \pdf_object_new:n { @@/Catalog/MarkInfo } + \pdf_object_write:nnx + { @@/Catalog/MarkInfo } { dict } + { \pdfdict_use:n { g__pdf_Core/Catalog/MarkInfo } } \exp_args:Nnx \__pdf_backend_catalog_gput:nn {MarkInfo} @@ -1450,11 +1443,10 @@ > { 0 } { - \pdf_object_new:nn { @@/Catalog/OCProperties } { dict } + \pdf_object_new:n { @@/Catalog/OCProperties } \seq_gpop_left:cN { g_@@_/Catalog/OCProperties/Configs_seq} \l_@@_tmpa_tl - \exp_args:Nnx - \pdf_object_write:nn {@@/Catalog/OCProperties} - { + \pdf_object_write:nnx {@@/Catalog/OCProperties} {dict} + { /OCGs~[ \seq_use:cn { g_@@_/Catalog/OCProperties/OCGs_seq } {~} ] /D~\l_@@_tmpa_tl~ \seq_if_empty:cF { g_@@_/Catalog/OCProperties/Configs_seq } @@ -1462,7 +1454,7 @@ /Configs~ [ \seq_use:cn { g_@@_/Catalog/OCProperties/Configs_seq} {~} ] } - } + } \exp_args:Nnx \__pdf_backend_catalog_gput:nn { OCProperties } @@ -1481,10 +1473,9 @@ \seq_if_empty:cF { g_@@_/Catalog/OutputIntents_seq } { - \pdf_object_new:nn { @@/Catalog/OutputIntents } { array } - \exp_args:Nnx - \pdf_object_write:nn - { @@/Catalog/OutputIntents } + \pdf_object_new:n { @@/Catalog/OutputIntents } + \pdf_object_write:nnx + { @@/Catalog/OutputIntents } { array } { \seq_use:cn { g_@@_/Catalog/OutputIntents_seq } {~} } \exp_args:Nnx \__pdf_backend_catalog_gput:nn @@ -1506,10 +1497,9 @@ \seq_if_empty:cF { g_@@_/Catalog/Requirements_seq } { - \pdf_object_new:nn { @@/Catalog/Requirements } { array } - \exp_args:Nnx - \pdf_object_write:nn - { @@/Catalog/Requirements } + \pdf_object_new:n { @@/Catalog/Requirements } + \pdf_object_write:nnx + { @@/Catalog/Requirements } { array } { \seq_use:cn { g_@@_/Catalog/Requirements_seq } {~} } \exp_args:Nnx \__pdf_backend_catalog_gput:nn @@ -1531,10 +1521,9 @@ \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/ViewerPreferences } } { - \pdf_object_new:nn { @@/Catalog/ViewerPreferences } { dict } - \exp_args:Nnx - \pdf_object_write:nn - { @@/Catalog/ViewerPreferences } + \pdf_object_new:n { @@/Catalog/ViewerPreferences } + \pdf_object_write:nnx + { @@/Catalog/ViewerPreferences } { dict } { \pdfdict_use:n { g__pdf_Core/Catalog/ViewerPreferences } } \exp_args:Nnx \__pdf_backend_catalog_gput:nn |