Skip to content

Commit

Permalink
change object_new command
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrike Fischer committed Aug 30, 2022
1 parent 7f13f1f commit 7ae5790
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions l3backend-testphase.dtx
Expand Up @@ -580,7 +580,7 @@
%<*pdftex|luatex>
\clist_map_inline:Nn \c_@@_backend_PageResources_clist
{
\pdf_object_new:nn {@@/Page/Resources/#1} {dict}
\pdf_object_new:n {@@/Page/Resources/#1}
\cs_if_exist:NT \tex_directlua:D
{
\tex_directlua:D
Expand Down Expand Up @@ -649,7 +649,7 @@
%
\clist_map_inline:Nn \c_@@_backend_PageResources_clist
{
\pdf_object_new:nn { @@/Page/Resources/#1 } { dict }
\pdf_object_new:n { @@/Page/Resources/#1 }
\hook_gput_code:nnn
{shipout/firstpage}
{pdf}
Expand Down
2 changes: 1 addition & 1 deletion l3pdffield-action.dtx
Expand Up @@ -419,7 +419,7 @@
% ,\pdf_name_from_unicode_e:n
% ,\pdf_object_if_exist:nTF
% ,\pdf_object_if_exist:nF
% ,\pdf_object_new:nn
% ,\pdf_object_new:n
% ,\pdf_object_ref:n
% ,\pdf_object_ref_last:
% ,\pdf_object_unnamed_write:nn
Expand Down
4 changes: 2 additions & 2 deletions l3pdffield-checkbox.dtx
Expand Up @@ -322,7 +322,7 @@
% ,\pdf_name_from_unicode_e:n
% ,\pdf_object_if_exist:nTF
% ,\pdf_object_if_exist:nF
% ,\pdf_object_new:nn
% ,\pdf_object_new:n
% ,\pdf_object_ref:n
% ,\pdf_object_ref_last:
% ,\pdf_object_unnamed_write:nn
Expand Down Expand Up @@ -542,7 +542,7 @@
{
\pdf_object_if_exist:nF {@@/checkbox/AP/#1}
{
\pdf_object_new:nn {@@/checkbox/AP/#1}{dict}
\pdf_object_new:n {@@/checkbox/AP/#1}
\pdf_object_write:nnx
{@@/checkbox/AP/#1} { dict }
{
Expand Down
2 changes: 1 addition & 1 deletion l3pdffield-choice.dtx
Expand Up @@ -366,7 +366,7 @@
% ,\pdf_name_from_unicode_e:n
% ,\pdf_object_if_exist:nTF
% ,\pdf_object_if_exist:nF
% ,\pdf_object_new:nn
% ,\pdf_object_new:n
% ,\pdf_object_ref:n
% ,\pdf_object_ref_last:
% ,\pdf_object_unnamed_write:nn
Expand Down
2 changes: 1 addition & 1 deletion l3pdffield-pushbutton.dtx
Expand Up @@ -348,7 +348,7 @@
% ,\pdf_name_from_unicode_e:n
% ,\pdf_object_if_exist:nTF
% ,\pdf_object_if_exist:nF
% ,\pdf_object_new:nn
% ,\pdf_object_new:n
% ,\pdf_object_ref:n
% ,\pdf_object_ref_last:
% ,\pdf_object_unnamed_write:nn
Expand Down
4 changes: 2 additions & 2 deletions l3pdffield-radiobutton.dtx
Expand Up @@ -516,7 +516,7 @@
% ,\pdf_name_from_unicode_e:n
% ,\pdf_object_if_exist:nTF
% ,\pdf_object_if_exist:nF
% ,\pdf_object_new:nn
% ,\pdf_object_new:n
% ,\pdf_object_ref:n
% ,\pdf_object_ref_last:
% ,\pdf_object_unnamed_write:nn
Expand Down Expand Up @@ -691,7 +691,7 @@
% We need an object and a seq for the Opt array.
% The object is written at the end of the document.
% \begin{macrocode}
\pdf_object_new:nn {@@/field/@@/radio-Opt/#1}{array}
\pdf_object_new:n {@@/field/@@/radio-Opt/#1}
\pdfdict_put:nnx { l_@@/field }{Opt} { \pdf_object_ref:n {@@/field/@@/radio-Opt/#1} }
\seq_new:c { g_@@_radio_opt_#1_seq }
\hook_gput_code:nnn {shipout/lastpage}{pdffield/radio}
Expand Down
2 changes: 1 addition & 1 deletion l3pdffield-textfield.dtx
Expand Up @@ -419,7 +419,7 @@
% ,\pdf_name_from_unicode_e:n
% ,\pdf_object_if_exist:nTF
% ,\pdf_object_if_exist:nF
% ,\pdf_object_new:nn
% ,\pdf_object_new:n
% ,\pdf_object_ref:n
% ,\pdf_object_ref_last:
% ,\pdf_object_unnamed_write:nn
Expand Down
6 changes: 3 additions & 3 deletions l3pdffield.dtx
Expand Up @@ -921,7 +921,7 @@
% ,\NeedsTeXFormat
% ,\pdf_name_from_unicode_e:n
% ,\pdf_object_if_exist:nTF
% ,\pdf_object_new:nn
% ,\pdf_object_new:n
% ,\pdf_object_ref:n
% ,\pdf_object_ref_last:
% ,\pdf_object_unnamed_write:nx
Expand Down Expand Up @@ -1167,8 +1167,8 @@
% \begin{macrocode}
\cs_new_protected:Npn \@@_field:n #1
{
\pdf_object_new:nn {@@/field/#1} {dict}
\pdf_object_new:nn {@@/field/Kids/#1} {array}
\pdf_object_new:n {@@/field/#1}
\pdf_object_new:n {@@/field/Kids/#1}
\tl_if_empty:NTF \l_@@_currentparent_tl
{
\pdfmanagement_add:nnx
Expand Down
8 changes: 4 additions & 4 deletions l3pdffile.dtx
Expand Up @@ -335,7 +335,7 @@
% created stream.
%
% \begin{verbatim}
% \pdf_object_new:nn{module/filespec/A}{dict} % a new filespec object
% \pdf_object_new:n {module/filespec/A} % a new filespec object
% \pdf_object_ref:n {module/filespec/A} % a reference
% \pdf_object_unnamed_write:nn { stream }{ {...}{content} } %writing the stream
% % filling and writing the filespec dictionary:
Expand Down Expand Up @@ -704,7 +704,7 @@
}
\tl_if_blank:nTF { #2 }
{
\pdf_object_new:nn { #3 } {dict}
\pdf_object_new:n { #3 }
\exp_args:Nnnx
\@@_filespec_write:nnn
%#1 dict, #2 target file name, #3 object ref
Expand All @@ -713,7 +713,7 @@
{\l_@@_embed_ref_tl}
}
{
\pdf_object_new:nn { #3 } {dict}
\pdf_object_new:n { #3 }
\exp_args:Nnnx
\@@_filespec_write:nnn
%#1 dict, #2 target file name, #3 object ref
Expand Down Expand Up @@ -747,7 +747,7 @@
{ #1 }
\l_@@_automimetype_tl
\tl_set:Nx \l_@@_embed_ref_tl { \pdf_object_ref_last: }
\pdf_object_new:nn { #3 } {dict}
\pdf_object_new:n { #3 }
\exp_args:Nnxx
\@@_filespec_write:nnn
%#1 dict, #2 target file name, #3 object ref
Expand Down
24 changes: 12 additions & 12 deletions l3pdfmanagement.dtx
Expand Up @@ -1279,7 +1279,7 @@
\prop_if_empty:cF
{ \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AA } }
{
\pdf_object_new:nn { @@/Catalog/AA } { dict }
\pdf_object_new:n { @@/Catalog/AA }
\pdf_object_write:nnx
{ @@/Catalog/AA }{ dict }
{ \pdfdict_use:n { g__pdf_Core/Catalog/AA } }
Expand Down Expand Up @@ -1309,7 +1309,7 @@
{
\seq_if_empty:cF { g_@@_/Catalog/AcroForm/Fields_seq }
{
\pdf_object_new:nn { @@/Catalog/AcroForm/Fields } { array }
\pdf_object_new:n { @@/Catalog/AcroForm/Fields }
\pdf_object_write:nnx
{ @@/Catalog/AcroForm/Fields } { array }
{ \seq_use:cn { g_@@_/Catalog/AcroForm/Fields_seq } {~} }
Expand All @@ -1321,7 +1321,7 @@
}
\seq_if_empty:cF { g_@@_/Catalog/AcroForm/CO_seq }
{
\pdf_object_new:nn { @@/Catalog/AcroForm/CO } { array }
\pdf_object_new:n { @@/Catalog/AcroForm/CO }
\pdf_object_write:nnx
{ @@/Catalog/AcroForm/CO } { array }
{ \seq_use:cn { g_@@_/Catalog/AcroForm/CO_seq } {~} }
Expand All @@ -1333,7 +1333,7 @@
}
\prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm/DR/Font}}
{
\pdf_object_new:nn { @@/Catalog/AcroForm/DR/Font } {dict}
\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 } }
Expand All @@ -1345,7 +1345,7 @@
}
\prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm/DR}}
{
\pdf_object_new:nn { @@/Catalog/AcroForm/DR } {dict}
\pdf_object_new:n { @@/Catalog/AcroForm/DR }
\pdf_object_write:nnx
{ @@/Catalog/AcroForm/DR } { dict }
{ \pdfdict_use:n { g__pdf_Core/Catalog/AcroForm/DR } }
Expand All @@ -1357,7 +1357,7 @@
}
\prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm} }
{
\pdf_object_new:nn { @@/Catalog/AcroForm } {dict}
\pdf_object_new:n { @@/Catalog/AcroForm }
\pdf_object_write:nnx
{ @@/Catalog/AcroForm } { dict }
{ \pdfdict_use:n { g__pdf_Core/Catalog/AcroForm } }
Expand All @@ -1381,7 +1381,7 @@
\seq_if_empty:cF
{ g_@@_/Catalog/AF_seq }
{
\pdf_object_new:nn { @@/Catalog/AF } { array }
\pdf_object_new:n { @@/Catalog/AF }
\pdf_object_write:nnx
{ @@/Catalog/AF } { array }
{ \seq_use:cn { g_@@_/Catalog/AF_seq } {~} }
Expand All @@ -1404,7 +1404,7 @@
\prop_if_empty:cF
{ \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/MarkInfo } }
{
\pdf_object_new:nn { @@/Catalog/MarkInfo } { dict }
\pdf_object_new:n { @@/Catalog/MarkInfo }
\pdf_object_write:nnx
{ @@/Catalog/MarkInfo } { dict }
{ \pdfdict_use:n { g__pdf_Core/Catalog/MarkInfo } }
Expand Down Expand Up @@ -1444,7 +1444,7 @@
>
{ 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
\pdf_object_write:nnx {@@/Catalog/OCProperties} {dict}
{
Expand Down Expand Up @@ -1474,7 +1474,7 @@
\seq_if_empty:cF
{ g_@@_/Catalog/OutputIntents_seq }
{
\pdf_object_new:nn { @@/Catalog/OutputIntents } { array }
\pdf_object_new:n { @@/Catalog/OutputIntents }
\pdf_object_write:nnx
{ @@/Catalog/OutputIntents } { array }
{ \seq_use:cn { g_@@_/Catalog/OutputIntents_seq } {~} }
Expand All @@ -1498,7 +1498,7 @@
\seq_if_empty:cF
{ g_@@_/Catalog/Requirements_seq }
{
\pdf_object_new:nn { @@/Catalog/Requirements } { array }
\pdf_object_new:n { @@/Catalog/Requirements }
\pdf_object_write:nnx
{ @@/Catalog/Requirements } { array }
{ \seq_use:cn { g_@@_/Catalog/Requirements_seq } {~} }
Expand All @@ -1522,7 +1522,7 @@
\prop_if_empty:cF
{ \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/ViewerPreferences } }
{
\pdf_object_new:nn { @@/Catalog/ViewerPreferences } { dict }
\pdf_object_new:n { @@/Catalog/ViewerPreferences }
\pdf_object_write:nnx
{ @@/Catalog/ViewerPreferences } { dict }
{ \pdfdict_use:n { g__pdf_Core/Catalog/ViewerPreferences } }
Expand Down
2 changes: 1 addition & 1 deletion l3pdfmeta.dtx
Expand Up @@ -889,7 +889,7 @@
{
\pdf_object_if_exist:nF { __color_icc_ #1 }
{
\pdf_object_new:nn { __color_icc_ #1 }{fstream}
\pdf_object_new:n { __color_icc_ #1 }
\pdf_object_write:nnx { __color_icc_ #1 } { fstream }
{
{/N\c_space_tl
Expand Down
2 changes: 1 addition & 1 deletion testfiles-dvips/catalogAF.pvt
Expand Up @@ -11,7 +11,7 @@
\ExplSyntaxOn
%senseless values ...
\pdf_object_new:n {filespec1}
\pdf_object_write:nnn {filespec1}{dict {/Type /Filespec /UF (example1.pdf)}
\pdf_object_write:nnn {filespec1}{dict} {/Type /Filespec /UF (example1.pdf)}
\pdf_object_new:n {filespec2}
\pdf_object_write:nnn {filespec2}{dict} {/Type /Filespec /UF (example2.pdf)}

Expand Down
2 changes: 1 addition & 1 deletion testfiles/bdc-properties.pvt
Expand Up @@ -10,7 +10,7 @@
\pdf_object_new:n {objA}
\pdf_object_write:nnn {objA}{dict}{/Type/Artifact}

\pdf_object_new:n {objB}}
\pdf_object_new:n {objB}
\pdf_object_write:nnn {objB}{dict}{/ActualText~(abc)}

\vspace*{44\baselineskip}
Expand Down

0 comments on commit 7ae5790

Please sign in to comment.