Debian Codegraph @

texmf-dist/tex/latex/pdfmanagement/l3backend-testphase-dvipdfmx.def

raw
1 %%
2 %% This is file `l3backend-testphase-dvipdfmx.def',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% l3backend-pdfmanagement.dtx (with options: `drivers,dvipdfmx')
8 %%
9 %% Copyright (C) 2019-2026 The LaTeX Project
10 %%
11 %% It may be distributed and/or modified under the conditions of
12 %% the LaTeX Project Public License (LPPL), either version 1.3c of
13 %% this license or (at your option) any later version. The latest
14 %% version of this license is in the file:
15 %%
16 %% https://www.latex-project.org/lppl.txt
17 %%
18 %% This file is part of the "LaTeX PDF management bundle" (The Work in LPPL)
19 %% and all files in that bundle must be distributed together.
20 %%
21 %% File: l3backend-pdfmanagement.dtx
22 \ProvidesExplFile
23 {l3backend-pdf-dvipdfmx.def}{2026-05-26}{0.97c}
24 {LaTeX~PDF~management~bundle~backend~support:~dvipdfmx}
25 \cs_generate_variant:Nn \__kernel_backend_literal:n { e }
26 \cs_generate_variant:Nn \__pdf_backend:n { e }
27 \cs_new_protected:Npn \__kernel_backend_shipout_literal:e #1
28 { \tex_special:D~shipout { #1} }
29
30 \cs_new_protected:Npn \__pdf_backend_record_abspage:n #1
31 {
32 \@bsphack
33 \property_record:nn{#1}{abspage}
34 \@esphack
35 }
36 \cs_new:Npn \__pdf_backend_ref_abspage:n #1
37 {
38 \property_ref:nn{#1}{abspage}
39 }
40
41 \cs_generate_variant:Nn \__pdf_backend_record_abspage:n {e}
42 \cs_generate_variant:Nn \__pdf_backend_ref_abspage:n {e}
43 \__kernel_backend_literal:n { dvipdfmx:config~C~ 0x0010 }
44 \prop_new:N \g__pdf_tmpa_prop
45 \tl_new:N \l__pdf_tmpa_tl
46 \box_new:N \l__pdf_backend_tmpa_box
47 \box_new:N \l__pdf_backend_tmpb_box
48
49 \int_new:N \g__pdf_backend_resourceid_int
50 \int_new:N \g__pdf_backend_name_int
51 \int_new:N \g__pdf_backend_page_int
52 \cs_new:Npn \__kernel_pdf_name_from_unicode_e:n #1
53 {
54 / \str_convert_pdfname:e { \text_expand:n { #1 } }
55 }
56 \tl_gput_right:Nn \@kernel@after@shipout@lastpage
57 {
58 \g__kernel_pdfmanagement_end_run_code_tl
59 }
60 \tl_if_exist:NTF \@kernel@after@shipout@background
61 {
62 \g@addto@macro \@kernel@before@shipout@background{\relax}
63 \g@addto@macro \@kernel@after@shipout@background
64 {
65 \g__kernel_pdfmanagement_thispage_shipout_code_tl
66 }
67 }
68 {
69 \hook_gput_code:nnn{shipout/background}{pdf}
70 {
71 \g__kernel_pdfmanagement_thispage_shipout_code_tl
72 }
73 }
74
75 \cs_new_protected:Npn \__pdf_backend_Pages_primitive:n #1
76 {
77 \__pdf_backend:n{put~@pages~<<#1>>}
78 }
79 %the primitive
80 \cs_new_protected:Npn \__pdf_backend_Page_primitive:n #1
81 {
82 \tex_special:D{pdf:~put~@thispage~<<#1>>}
83 }
84 % the command to store default values.
85 % Uses a prop with pdflatex + dvi,
86 % sets a lua table with lualatex
87 \cs_new_protected:Npn \__pdf_backend_Page_gput:nn #1 #2
88 {
89 \pdfdict_gput:nnn {g__pdf_Core/Page}{ #1 }{ #2 }
90 }
91 % the command to remove a default value.
92 % Uses a prop with pdflatex + dvi,
93 % changes a lua table with lualatex
94 \cs_new_protected:Npn \__pdf_backend_Page_gremove:n #1
95 {
96 \pdfdict_gremove:nn {g__pdf_Core/Page}{ #1 }
97 }
98 % the command used in the document.
99 % direct call of the primitive special with dvips/dvipdfmx
100 % \latelua: fill a page related table with lualatex, merge it with the page
101 % table and push it directly
102 % write to aux and store in prop with pdflatex
103 \cs_new_protected:Npn \__pdf_backend_ThisPage_gput:nn #1 #2
104 {
105 \__pdf_backend_Page_primitive:n { /#1~#2 }
106 }
107 %the code to push the values, used in shipout
108 %merges the two props and then fills the register in pdflatex
109 %merges the two tables (the one is probably still empty)
110 % and then fills (in lua) in luatex
111 %issues the values stored in the global prop with dvi
112 \cs_new_protected:Npn \__pdf_backend_ThisPage_gpush:n #1
113 {
114 \__pdf_backend_Page_primitive:e
115 { \pdfdict_use:n { g__pdf_Core/Page} }
116 }
117 \cs_generate_variant:Nn \__pdf_backend_Page_primitive:n { e }
118 \clist_const:Nn \c__pdf_backend_PageResources_clist
119 {
120 ExtGState,
121 ColorSpace,
122 Pattern,
123 Shading,
124 }
125 \hook_gset_rule:nnnn{shipout/firstpage}{l3backend-dvipdfmx}{after}{pdf}
126 \clist_map_inline:Nn \c__pdf_backend_PageResources_clist
127 {
128 \pdf_object_new:n { __pdf/Page/Resources/#1 }
129 \hook_gput_code:nnn
130 {shipout/firstpage}
131 {pdf}
132 {\pdf_object_write:nnn { __pdf/Page/Resources/#1 } { dict } {}}
133 }
134 \cs_new_protected:Npn \__pdf_backend_PageResources:n #1
135 {
136 \__pdf_backend:n {put~@resources~<<#1>>}
137 }
138 \cs_new_protected:Npn \__pdf_backend_PageResources_gput:nnn #1 #2 #3
139 {
140 % this is not used for output, but there is a test if the resource is empty
141 \prop_gput:cne { \__kernel_pdfdict_name:n { g__pdf_Core/Page/Resources/#1} }
142 { \str_convert_pdfname:n {#2} }{ #3 }
143 %objects are not filled with \pdf_object_write as this is not additive!
144 \__pdf_backend:e
145 {
146 put~\pdf_object_ref:n {__pdf/Page/Resources/#1}<</#2~#3>>
147 }
148 }
149
150 \cs_new_protected:Npn \__pdf_backend_PageResources_obj_gpush: {}
151 \bool_new:N \l__pdf_backend_xform_bool
152 \cs_set_protected:Npn \__pdf_backend_bdcobject:nn #1 #2 % #1 eg. Span, #2: object name
153 {
154 \int_gincr:N \g__pdf_backend_name_int
155 \__kernel_backend_literal:e
156 {
157 pdf:code~/#1/l3pdf\int_use:N\g__pdf_backend_name_int\c_space_tl BDC
158 }
159 \__kernel_backend_literal:e
160 {
161 pdf:put~@resources~
162 <<
163 /Properties~
164 <<
165 /l3pdf\int_use:N\g__pdf_backend_name_int\c_space_tl
166 \pdf_object_ref:n { #2 }
167 >>
168 >>
169 }
170 }
171 \cs_set_protected:Npn \__pdf_backend_bdcobject:n #1 % #1 eg. Span
172 {
173 \int_gincr:N \g__pdf_backend_name_int
174 \__kernel_backend_literal:e
175 {
176 pdf:code~/\exp_not:n{#1}/l3pdf\int_use:N\g__pdf_backend_name_int\c_space_tl BDC
177 }
178 \__kernel_backend_literal:e
179 {
180 pdf:put~@resources~
181 <<
182 /Properties~
183 <<
184 /l3pdf\int_use:N\g__pdf_backend_name_int\c_space_tl
185 \__pdf_backend_object_last:
186 >>
187 >>
188 }
189 }
190 \cs_set_protected:Npn \__pdf_backend_bmc:n #1
191 {
192 \__kernel_backend_literal:n {pdf:code~/#1~BMC} %pdfbase
193 }
194
195 \cs_set_protected:Npn \__pdf_backend_bdc_contobj:nn #1 #2
196 {
197 \pdf_object_unnamed_write:nn { dict }{ #2 }
198 \__pdf_backend_bdcobject:n { #1 }
199 }
200
201 \cs_set_protected:Npn \__pdf_backend_bdc_contstream:nn #1 #2
202 {
203 \__kernel_backend_literal:n {pdf:code~ /#1~<<#2>>~BDC }
204 }
205
206 \cs_set_protected:Npn \__pdf_backend_bdc:nn #1 #2
207 {
208 \cs_gset_eq:NN \__pdf_backend_bdc:nn \__pdf_backend_bdc_contobj:nn
209 \__pdf_backend_bdc:nn {#1}{#2}
210 }
211
212 \cs_set_protected:Npn \__pdf_backend_bdc_shipout_contstream:ee #1 #2
213 {
214 \__kernel_backend_shipout_literal:e {pdf:code~ /#1~<<#2>>~BDC }
215 }
216 \cs_set_eq:NN \__pdf_backend_bdc_shipout:ee \__pdf_backend_bdc_shipout_contstream:ee
217
218 \cs_set_protected:Npn \__pdf_backend_emc:
219 {
220 \__kernel_backend_literal:n {pdf:code~EMC} %pdfbase
221 }
222 % properties are handled automatically, but the other resources should be added
223 % at shipout
224 \cs_new_protected:Npn \__pdf_backend_PageResources_gpush:n #1
225 {
226 \clist_map_inline:Nn \c__pdf_backend_PageResources_clist
227 {
228 \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Page/Resources/##1} }
229 {
230 \__kernel_backend_literal:e
231 {
232 pdf:put~@resources~
233 <</##1~\pdf_object_ref:n {__pdf/Page/Resources/##1}>>
234 }
235 }
236 }
237 }
238 \cs_new_protected:Npn \__pdf_backend_Names_gpush:nn #1 #2 %#1 name of name tree, #2 array content
239 {
240 \pdf_object_unnamed_write:nn {dict} {/Names [#2] }
241 \__pdf_backend:e {put~@names~<</#1~\pdf_object_ref_last: >>}
242 }
243
244 \cs_new_protected:Npn \__pdf_backend_NamesEmbeddedFiles_add:nn #1 #2 {}
245 % it needs a bit testing if it really works to set the box to 0 before the special ...
246 % does it disturb viewing the xobject?
247 % what happens with the resources (bdc)? (should work as they are specials too)
248 % xetex requires that the special is in horizontal mode. This means it affects
249 % typesetting. But we can no delay the whole form code to shipout
250 % as the object reference and the size is often wanted on the current page.
251 % so we need to allocate a box - but probably they won't be thousands xform
252 % in a document so it shouldn't matter.
253 \cs_new_protected:Npn \__pdf_backend_xform_new:nnnn #1 #2 #3 #4
254 % #1 name
255 % #2 attributes
256 % #3 resources
257 % #4 content, not necessarily a box!
258 {
259 \int_gincr:N \g__pdf_backend_object_int
260 \int_const:cn
261 { c__pdf_backend_xform_ \tl_to_str:n {#1} _int }
262 { \g__pdf_backend_object_int }
263 \box_new:c { g__pdf_backend_xform_#1_box }
264 \hbox_gset:cn { g__pdf_backend_xform_#1_box }
265 {
266 \bool_set_true:N \l__pdf_backend_xform_bool
267 #4
268 }
269 \tl_const:ce
270 { c__pdf_backend_xform_wd_ \tl_to_str:n {#1} _tl }
271 { \tex_the:D \box_wd:c { g__pdf_backend_xform_#1_box } }
272 \tl_const:ce
273 { c__pdf_backend_xform_ht_ \tl_to_str:n {#1} _tl }
274 { \tex_the:D \box_ht:c { g__pdf_backend_xform_#1_box } }
275 \tl_const:ce
276 { c__pdf_backend_xform_dp_ \tl_to_str:n {#1} _tl }
277 { \tex_the:D \box_dp:c { g__pdf_backend_xform_#1_box } }
278 \box_set_dp:cn { g__pdf_backend_xform_#1_box } { \c_zero_dim }
279 \box_set_ht:cn { g__pdf_backend_xform_#1_box } { \c_zero_dim }
280 \box_set_wd:cn { g__pdf_backend_xform_#1_box } { \c_zero_dim }
281 \hook_gput_next_code:nn {shipout/background}
282 {
283 \mode_leave_vertical: %needed, the xform disappears without it.
284 \__pdf_backend:e
285 {
286 bxobj ~ \__pdf_backend_xform_ref:n { #1 }
287 \c_space_tl width ~ \pdfxform_wd:n { #1 }
288 \c_space_tl height ~ \pdfxform_ht:n { #1 }
289 \c_space_tl depth ~ \pdfxform_dp:n { #1 }
290 }
291 \box_use_drop:c { g__pdf_backend_xform_#1_box }
292 \__pdf_backend:e {put ~ @resources ~<<#3>> }
293 \__pdf_backend:e
294 {
295 put~ @resources ~
296 <<
297 /ExtGState~ \pdf_object_ref:n { __pdf/Page/Resources/ExtGState }
298 >>
299 }
300 \__pdf_backend:e
301 {
302 put~ @resources ~
303 <<
304 /Pattern~ \pdf_object_ref:n { __pdf/Page/Resources/Pattern }
305 >>
306 }
307 \__pdf_backend:e
308 {
309 put~ @resources ~
310 <<
311 /Shading~ \pdf_object_ref:n { __pdf/Page/Resources/Shading }
312 >>
313 }
314 \__pdf_backend:e
315 {
316 put~ @resources ~
317 <<
318 /ColorSpace~
319 \pdf_object_ref:n { __pdf/Page/Resources/ColorSpace }
320 >>
321 }
322 \__pdf_backend:e {exobj ~<<#2>>}
323 }
324 }
325
326 \cs_new:Npn \__pdf_backend_xform_ref:n #1
327 {
328 @pdf.xform \int_use:c { c__pdf_backend_xform_ \tl_to_str:n {#1} _int }
329 }
330
331 \cs_new_protected:Npn \__pdf_backend_xform_use:n #1
332 {
333 \hbox_set:Nn \l__pdf_backend_tmpa_box
334 {
335 \__pdf_backend:e
336 {
337 uxobj~ \__pdf_backend_xform_ref:n { #1 }
338 }
339 }
340 \box_set_wd:Nn \l__pdf_backend_tmpa_box { \pdfxform_wd:n { #1 } }
341 \box_set_ht:Nn \l__pdf_backend_tmpa_box { \pdfxform_ht:n { #1 } }
342 \box_set_dp:Nn \l__pdf_backend_tmpa_box { \pdfxform_dp:n { #1 } }
343 \box_use_drop:N \l__pdf_backend_tmpa_box
344 }
345 %% all
346 \prg_new_conditional:Npnn \__pdf_backend_xform_if_exist:n #1 { p , T , F , TF }
347 {
348 \int_if_exist:cTF { c__pdf_backend_xform_ \tl_to_str:n {#1} _int }
349 { \prg_return_true: }
350 { \prg_return_false:}
351 }
352 \prg_new_eq_conditional:NNn \pdfxform_if_exist:n\__pdf_backend_xform_if_exist:n
353 { TF , T , F , p }
354 \tl_new:N \l_pdf_current_structure_destination_tl
355 \cs_new_protected:Npn \pdf_activate_structure_destination:
356 {
357 \cs_gset_eq:NN \__pdf_backend_destination:nn \__pdf_backend_structure_destination:nn
358 \cs_gset_eq:NN \__pdf_backend_destination:nnnn \__pdf_backend_structure_destination:nnnn
359 \cs_gset_eq:NN \__pdfannot_backend_link_begin_goto:nnw \__pdfannot_backend_link_begin_structure_goto:nnw
360 }
361 \cs_new_protected:Npn \pdf_activate_indexed_structure_destination:
362 {
363 \cs_gset_eq:NN \__pdf_backend_destination:nn \__pdf_backend_indexed_structure_destination:nn
364 \cs_gset_eq:NN \__pdf_backend_destination:nnnn \__pdf_backend_indexed_structure_destination:nnnn
365 \cs_gset_eq:NN \__pdfannot_backend_link_begin_goto:nnw \__pdfannot_backend_link_begin_structure_goto:nnw
366 }
367 \cs_set_eq:NN \__pdf_backend_structure_destination:nn \__pdf_backend_destination:nn
368 \cs_set_eq:NN \__pdf_backend_structure_destination:nnnn \__pdf_backend_destination:nnnn
369 \cs_set_eq:NN \__pdfannot_backend_link_begin_structure_goto:nnw \__pdfannot_backend_link_begin_goto:nnw
370 \cs_set_eq:NN \__pdf_backend_indexed_structure_destination:nn \__pdf_backend_destination:nn
371 \cs_set_eq:NN \__pdf_backend_indexed_structure_destination:nnnn \__pdf_backend_destination:nnnn
372 \cs_set_protected:Npn \__pdf_backend_structure_destination:nn #1#2
373 {
374 \__pdf_backend:e
375 {
376 dest ~ ( \exp_not:n {#1} )
377 [
378 @thispage
379 \str_case:nnF {#2}
380 {
381 { xyz } { /XYZ ~ @xpos ~ @ypos ~ null }
382 { fit } { /Fit }
383 { fitb } { /FitB }
384 { fitbh } { /FitBH }
385 { fitbv } { /FitBV ~ @xpos }
386 { fith } { /FitH ~ @ypos }
387 { fitv } { /FitV ~ @xpos }
388 { fitr } { /Fit }
389 }
390 { /XYZ ~ @xpos ~ @ypos ~ \fp_eval:n { (#2) / 100 } }
391 ]
392 }
393 \exp_args:Ne \pdf_object_if_exist:nT { \l_pdf_current_structure_destination_tl }
394 {
395 \__pdf_backend:e
396 {
397 obj ~ @pdf.SDest.\exp_not:n{#1}
398 [
399 \exp_args:Ne \pdf_object_ref:n { \l_pdf_current_structure_destination_tl }
400 \str_case:nnF {#2}
401 {
402 { xyz } { /XYZ ~ @xpos ~ @ypos ~ null }
403 { fit } { /Fit }
404 { fitb } { /FitB }
405 { fitbh } { /FitBH }
406 { fitbv } { /FitBV ~ @xpos }
407 { fith } { /FitH ~ @ypos }
408 { fitv } { /FitV ~ @xpos }
409 { fitr } { /Fit }
410 }
411 { /XYZ ~ @xpos ~ @ypos ~ \fp_eval:n { (#2) / 100 } }
412 ]
413 }
414 }
415 }
416 \cs_new_protected:Npn \__pdf_backend_structure_destination_aux:nnnn #1#2#3#4
417 {
418 \vbox_to_zero:n
419 {
420 \__kernel_kern:n {#4}
421 \hbox:n
422 {
423 \__pdf_backend:n { obj ~ @pdf_ #2 _llx ~ @xpos }
424 \__pdf_backend:n { obj ~ @pdf_ #2 _lly ~ @ypos }
425 }
426 \tex_vss:D
427 }
428 \__kernel_kern:n {#1}
429 \vbox_to_zero:n
430 {
431 \__kernel_kern:n { -#3 }
432 \hbox:n
433 {
434 \__pdf_backend:n
435 {
436 dest ~ (#2)
437 [
438 @thispage
439 /FitR ~
440 @pdf_ #2 _llx ~ @pdf_ #2 _lly ~
441 @xpos ~ @ypos
442 ]
443 }
444 \exp_args:Ne \pdf_object_if_exist:nT { \l_pdf_current_structure_destination_tl }
445 {
446 \__pdf_backend:e
447 {
448 obj ~ @pdf.SDest.\exp_not:n{#2}
449 [
450 \exp_args:Ne \pdf_object_ref:n { \l_pdf_current_structure_destination_tl }
451 /FitR ~
452 @pdf_ #2 _llx ~ @pdf_ #2 _lly ~
453 @xpos ~ @ypos
454 ]
455 }
456 }
457 }
458 \tex_vss:D
459 }
460 \__kernel_kern:n { -#1 }
461 }
462 \cs_set_protected:Npn \__pdf_backend_structure_destination:nnnn #1#2#3#4
463 {
464 \exp_args:Ne \__pdf_backend_structure_destination_aux:nnnn
465 { \dim_eval:n {#2} } {#1} {#3} {#4}
466 }
467 \cs_set_protected:Npn \__pdfannot_backend_link_begin_structure_goto:nnw #1#2
468 {
469 \__pdfannot_backend_link_begin:n { #1 /Subtype /Link /A << /S /GoTo /D ( #2 ) /[email protected].#2 >> }
470 }
471 \cs_set_protected:Npn \__pdf_backend_indexed_structure_destination:nn #1#2
472 {
473 \__pdf_backend:e
474 {
475 dest ~ ( \exp_not:n {#1} )
476 [
477 @thispage
478 \str_case:nnF {#2}
479 {
480 { xyz } { /XYZ ~ @xpos ~ @ypos ~ null }
481 { fit } { /Fit }
482 { fitb } { /FitB }
483 { fitbh } { /FitBH }
484 { fitbv } { /FitBV ~ @xpos }
485 { fith } { /FitH ~ @ypos }
486 { fitv } { /FitV ~ @xpos }
487 { fitr } { /Fit }
488 }
489 { /XYZ ~ @xpos ~ @ypos ~ \fp_eval:n { (#2) / 100 } }
490 ]
491 }
492 \__pdf_backend:e
493 {
494 obj ~ @pdf.SDest.\exp_not:n{#1}
495 [
496 \exp_after:wN \pdf_object_ref_indexed:nn \l_pdf_current_structure_destination_tl
497 \str_case:nnF {#2}
498 {
499 { xyz } { /XYZ ~ @xpos ~ @ypos ~ null }
500 { fit } { /Fit }
501 { fitb } { /FitB }
502 { fitbh } { /FitBH }
503 { fitbv } { /FitBV ~ @xpos }
504 { fith } { /FitH ~ @ypos }
505 { fitv } { /FitV ~ @xpos }
506 { fitr } { /Fit }
507 }
508 { /XYZ ~ @xpos ~ @ypos ~ \fp_eval:n { (#2) / 100 } }
509 ]
510 }
511 }
512 \cs_new_protected:Npn \__pdf_backend_indexed_structure_destination_aux:nnnn #1#2#3#4
513 {
514 \vbox_to_zero:n
515 {
516 \__kernel_kern:n {#4}
517 \hbox:n
518 {
519 \__pdf_backend:n { obj ~ @pdf_ #2 _llx ~ @xpos }
520 \__pdf_backend:n { obj ~ @pdf_ #2 _lly ~ @ypos }
521 }
522 \tex_vss:D
523 }
524 \__kernel_kern:n {#1}
525 \vbox_to_zero:n
526 {
527 \__kernel_kern:n { -#3 }
528 \hbox:n
529 {
530 \__pdf_backend:n
531 {
532 dest ~ (#2)
533 [
534 @thispage
535 /FitR ~
536 @pdf_ #2 _llx ~ @pdf_ #2 _lly ~
537 @xpos ~ @ypos
538 ]
539 }
540 \__pdf_backend:e
541 {
542 obj ~ @pdf.SDest.\exp_not:n{#2}
543 [
544 \exp_after:wN \pdf_object_ref_indexed:nn \l_pdf_current_structure_destination_tl
545 /FitR ~
546 @pdf_ #2 _llx ~ @pdf_ #2 _lly ~
547 @xpos ~ @ypos
548 ]
549 }
550 }
551 \tex_vss:D
552 }
553 \__kernel_kern:n { -#1 }
554 }
555 \cs_set_protected:Npn \__pdf_backend_indexed_structure_destination:nnnn #1#2#3#4
556 {
557 \exp_args:Ne \__pdf_backend_indexed_structure_destination_aux:nnnn
558 { \dim_eval:n {#2} } {#1} {#3} {#4}
559 }
560 \cs_new_protected:Npn \__pdf_backend_set_regression_data:
561 {
562 \sys_gset_rand_seed:n{1000}
563 \pdfmanagement_add:nnn{Info}{Creator}{(TeX)}
564 \pdfmanagement_add:nnn{Info}{Producer}{(dvipdfmx)}
565 \__kernel_backend_literal:e
566 {pdf:trailerid [~
567 <00112233445566778899aabbccddeeff>~
568 <00112233445566778899aabbccddeeff>~
569 ]}
570 \pdfdict_put:nne {l_pdffile/Params} {ModDate}{(\c_sys_timestamp_str)}
571 \AddToDocumentProperties[hyperref]{pdfinstanceid}{uuid:0a57c455-157a-4141-8c19-6237d832fc80}
572 \AddToDocumentProperties[hyperref]{pdfproducer}{\c_sys_engine_exec_str-NN.NN.NN}
573 }
574 \cs_new_protected:Npn \__pdf_backend_metadata_stream:n #1
575 {
576 \pdf_object_write:nnn{__pdfmeta/xmp} {stream}{{/Type~/Metadata~/Subtype~/XML}{#1}}
577 }
578 \cs_new_protected:Npn \__pdf_backend_omit_charset:n #1 {} %#1 number
579 \cs_new_protected:Npn \__pdf_backend_omit_info:n #1 {} %#1 number
580 \cs_new_protected:Npn \__pdf_backend_omit_cidset:n #1 {} %#1 number
581 \cs_new_protected:Npn \__pdf_backend_action:nnnnnnn #1#2#3#4#5#6#7
582 {
583 \tex_special:D
584 {
585 pdf:out~
586 [\bool_if:nF{#3}{-}]~#1~
587 <<
588 /A<<\exp_not:n{#6}>>~
589 /Title~(\exp_not:n{#7})~
590 /F~#5~
591 \tl_if_blank:nF { #4 }{/C~[#4]}
592 >>
593 }
594 }
595 \cs_new_protected:Npn \__pdf_backend_goto:nnnnnnn #1#2#3#4#5#6#7
596 {
597 \tex_special:D
598 {
599 pdf:out~
600 [\bool_if:nF{#3}{-}]~#1~
601 <<
602 /A
603 <<
604 /S/GoTo/D(\exp_not:n{#6})
605 \tag_if_active:T
606 {
607 /[email protected].#6
608 }
609 >>~
610 /Title~(\exp_not:n{#7})~
611 /F~#5~
612 \tl_if_blank:nF { #4 }{/C~[#4]}
613 >>
614 }
615 }
616 %%
617 %%
618 %% End of file `l3backend-testphase-dvipdfmx.def'.