[latex3-commits] [latex3/pdfresources] develop: do not use backend_object_ref (d50bb84)
github at latex-project.org
github at latex-project.org
Thu Mar 28 13:29:06 CET 2024
Repository : https://github.com/latex3/pdfresources
On branch : develop
Link : https://github.com/latex3/pdfresources/commit/d50bb84f1efa8aac0a02b23633cffd2a53416f85
>---------------------------------------------------------------
commit d50bb84f1efa8aac0a02b23633cffd2a53416f85
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Thu Mar 28 13:29:06 2024 +0100
do not use backend_object_ref
>---------------------------------------------------------------
d50bb84f1efa8aac0a02b23633cffd2a53416f85
CHANGELOG.md | 6 ++++++
l3backend-testphase.dtx | 18 +++++++++---------
l3pdfmanagement.dtx | 24 ++++++++++++------------
3 files changed, 27 insertions(+), 21 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 76a7ffa..3cd801f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ first release 0.95a, 2021-02-23 will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
this project uses date-based 'snapshot' version identifiers.
+## [Unreleased]
+
+### Changed
+ - use \pdf_object_ref:n instead of backend command as preparation of l3kernel changes
+ regarding object storing.
+
## [2024-03-26]
Version: 2024-03-26, 0.96g
diff --git a/l3backend-testphase.dtx b/l3backend-testphase.dtx
index d7c0d8d..ad935fd 100644
--- a/l3backend-testphase.dtx
+++ b/l3backend-testphase.dtx
@@ -671,7 +671,7 @@
{
ltx.@@.object["@@/Page/Resources/#1"]
=
- "\@@_backend_object_ref:n{@@/Page/Resources/#1}"
+ "\pdf_object_ref:n{@@/Page/Resources/#1}"
}
}
}
@@ -751,7 +751,7 @@
%objects are not filled with \pdf_object_write as this is not additive!
\@@_backend:e
{
- put~\@@_backend_object_ref:n {@@/Page/Resources/#1}<</#2~#3>>
+ put~\pdf_object_ref:n {@@/Page/Resources/#1}<</#2~#3>>
}
}
@@ -830,7 +830,7 @@
\cs_set_protected:Npn \@@_backend_bdcobject:nn #1 #2 % #1 eg. Span, #2: object name
{
- \@@_backend_pdfmark:e{/#1~\@@_backend_object_ref:n{#2}~/BDC}
+ \@@_backend_pdfmark:e{/#1~\pdf_object_ref:n{#2}~/BDC}
}
\cs_set_protected:Npn \@@_backend_bdcobject:n #1 % #1 eg. Span,
{
@@ -890,7 +890,7 @@
/Properties~
<<
/l3pdf\int_use:N\g_@@_backend_name_int\c_space_tl
- \@@_backend_object_ref:n { #2 }
+ \pdf_object_ref:n { #2 }
>>
>>
}
@@ -962,7 +962,7 @@
\__kernel_backend_literal:e
{
pdf:put~@resources~
- <</##1~\@@_backend_object_ref:n {@@/Page/Resources/##1}>>
+ <</##1~\pdf_object_ref:n {@@/Page/Resources/##1}>>
}
}
}
@@ -980,7 +980,7 @@
\pdfdict_gput:nee
{ g_@@_Core/Xform/Resources/Properties }
{ l3pdf\int_use:N\g_@@_backend_name_int }
- { \@@_backend_object_ref:n { #2 } }
+ { \pdf_object_ref:n { #2 } }
}
{
\exp_args:Ne \tex_latelua:D
@@ -989,7 +989,7 @@
(
tex.count["g_shipout_readonly_int"],
"l3pdf\int_use:N\g_@@_backend_name_int",
- "\@@_backend_object_ref:n { #2 }"
+ "\pdf_object_ref:n { #2 }"
)
}
}
@@ -1071,7 +1071,7 @@
\pdfdict_gput:nee %no handler needed
{ g_@@_Core/Xform/Resources/Properties }
{ l3pdf\int_use:N\g_@@_backend_resourceid_int }
- { \@@_backend_object_ref:n { #2 } }
+ { \pdf_object_ref:n { #2 } }
}
{
\@@_backend_record_abspage:e {l3pdf\int_use:N\g_@@_backend_resourceid_int}
@@ -1086,7 +1086,7 @@
\pdfdict_gput:nee
{ g_@@_Core/backend_Page\l_@@_tmpa_tl/Resources/Properties }
{ l3pdf\int_use:N\g_@@_backend_resourceid_int }
- { \@@_backend_object_ref:n{#2} }
+ { \pdf_object_ref:n{#2} }
}
}
\cs_set_protected:Npn \@@_backend_bdcobject:n #1% #1 eg. Span
diff --git a/l3pdfmanagement.dtx b/l3pdfmanagement.dtx
index c605ea7..babc10e 100644
--- a/l3pdfmanagement.dtx
+++ b/l3pdfmanagement.dtx
@@ -1286,7 +1286,7 @@
\__pdf_backend_catalog_gput:nn
{AA}
{
- \__pdf_backend_object_ref:n { @@/Catalog/AA }
+ \pdf_object_ref:n { @@/Catalog/AA }
}
}
}
@@ -1316,7 +1316,7 @@
\prop_gput:cnn %we have to use \prop here to avoid the handler ...
{ \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm } }
{ Fields }
- { \__pdf_backend_object_ref:n { @@/Catalog/AcroForm/Fields } }
+ { \pdf_object_ref:n { @@/Catalog/AcroForm/Fields } }
}
\seq_if_empty:cF { g_@@_/Catalog/AcroForm/CO_seq }
{
@@ -1328,7 +1328,7 @@
\prop_gput:cnn %we have to use \prop here to avoid the handler ...
{ \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm } }
{ CO }
- { \__pdf_backend_object_ref:n { @@/Catalog/AcroForm/CO } }
+ { \pdf_object_ref:n { @@/Catalog/AcroForm/CO } }
}
\prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm/DR/Font}}
{
@@ -1340,7 +1340,7 @@
\prop_gput:cnn %we have to use \prop here to avoid the handler ...
{ \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm/DR } }
{ Font }
- { \__pdf_backend_object_ref:n { @@/Catalog/AcroForm/DR/Font } }
+ { \pdf_object_ref:n { @@/Catalog/AcroForm/DR/Font } }
}
\prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm/DR}}
{
@@ -1352,7 +1352,7 @@
\prop_gput:cnn %we have to use \prop here to avoid the handler ...
{ \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm } }
{ DR }
- { \__pdf_backend_object_ref:n { @@/Catalog/AcroForm/DR } }
+ { \pdf_object_ref:n { @@/Catalog/AcroForm/DR } }
}
\prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm} }
{
@@ -1364,7 +1364,7 @@
\@@_handler_gput:nnn
{ Catalog }
{ AcroForm }
- { \__pdf_backend_object_ref:n { @@/Catalog/AcroForm } }
+ { \pdf_object_ref:n { @@/Catalog/AcroForm } }
}
}
@@ -1388,7 +1388,7 @@
\__pdf_backend_catalog_gput:nn
{AF}
{
- \__pdf_backend_object_ref:n {@@/Catalog/AF}
+ \pdf_object_ref:n {@@/Catalog/AF}
}
}
}
@@ -1411,7 +1411,7 @@
\__pdf_backend_catalog_gput:nn
{MarkInfo}
{
- \__pdf_backend_object_ref:n {@@/Catalog/MarkInfo}
+ \pdf_object_ref:n {@@/Catalog/MarkInfo}
}
}
}
@@ -1458,7 +1458,7 @@
\exp_args:Nne
\__pdf_backend_catalog_gput:nn
{ OCProperties }
- { \__pdf_backend_object_ref:n {@@/Catalog/OCProperties} }
+ { \pdf_object_ref:n {@@/Catalog/OCProperties} }
}
}
% \end{macrocode}
@@ -1481,7 +1481,7 @@
\__pdf_backend_catalog_gput:nn
{OutputIntents}
{
- \__pdf_backend_object_ref:n {@@/Catalog/OutputIntents}
+ \pdf_object_ref:n {@@/Catalog/OutputIntents}
}
}
}
@@ -1505,7 +1505,7 @@
\__pdf_backend_catalog_gput:nn
{Requirements}
{
- \__pdf_backend_object_ref:n { @@/Catalog/Requirements }
+ \pdf_object_ref:n { @@/Catalog/Requirements }
}
}
}
@@ -1529,7 +1529,7 @@
\__pdf_backend_catalog_gput:nn
{ViewerPreferences}
{
- \__pdf_backend_object_ref:n {@@/Catalog/ViewerPreferences}
+ \pdf_object_ref:n {@@/Catalog/ViewerPreferences}
}
}
}
More information about the latex3-commits
mailing list.