[latex3-commits] [git/LaTeX3-latex3-pdfresources] splitting: correctly initialize object for dvipdfmx (242aff7)
Ulrike Fischer
fischer at troubleshooting-tex.de
Thu Sep 3 23:44:56 CEST 2020
Repository : https://github.com/latex3/pdfresources
On branch : splitting
Link : https://github.com/latex3/pdfresources/commit/242aff76bd9f8ab3e2f0bb461baa6bd71c4a8853
>---------------------------------------------------------------
commit 242aff76bd9f8ab3e2f0bb461baa6bd71c4a8853
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Thu Sep 3 23:44:56 2020 +0200
correctly initialize object for dvipdfmx
>---------------------------------------------------------------
242aff76bd9f8ab3e2f0bb461baa6bd71c4a8853
l3backend-pdf-extra.dtx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/l3backend-pdf-extra.dtx b/l3backend-pdf-extra.dtx
index dc14e4c..382c81a 100644
--- a/l3backend-pdf-extra.dtx
+++ b/l3backend-pdf-extra.dtx
@@ -565,10 +565,11 @@
% this must be issued on every page!
%<*dvipdfmx|xdvipdfmx>
%objects should not only be created but also "initialized"
+% initialization should be done at begin dvi
\clist_map_inline:Nn \c_@@_backend_PageResources_clist
{
\@@_backend_object_new:nn { Page/Resources/#1 } { dict }
- \@@_backend_object_write:nn { Page/Resources/#1 } {}
+ \hook_gput_code:nnn{shipout/firstpage}{pdf}{\@@_backend_object_write:nn { Page/Resources/#1 } {}}
}
\cs_new_protected:Npn \@@_backend_PageResources:n #1
More information about the latex3-commits
mailing list.