| 1 |
%% |
| 2 |
%% This is file `l3backend-testphase-dvisvgm.def', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% l3backend-pdfmanagement.dtx (with options: `drivers,dvisvgm') |
| 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-dvisvgm.def}{2026-05-26}{0.97c} |
| 24 |
{LaTeX~PDF~management~bundle~backend~support:~dvisvgm} |
| 25 |
\cs_new_protected:Npn \__kernel_backend_shipout_literal:e #1 |
| 26 |
{ \tex_special:D~shipout { #1} } |
| 27 |
|
| 28 |
\cs_new_protected:Npn \__pdf_backend_record_abspage:n #1 |
| 29 |
{ |
| 30 |
\@bsphack |
| 31 |
\property_record:nn{#1}{abspage} |
| 32 |
\@esphack |
| 33 |
} |
| 34 |
\cs_new:Npn \__pdf_backend_ref_abspage:n #1 |
| 35 |
{ |
| 36 |
\property_ref:nn{#1}{abspage} |
| 37 |
} |
| 38 |
|
| 39 |
\cs_generate_variant:Nn \__pdf_backend_record_abspage:n {e} |
| 40 |
\cs_generate_variant:Nn \__pdf_backend_ref_abspage:n {e} |
| 41 |
\prop_new:N \g__pdf_tmpa_prop |
| 42 |
\tl_new:N \l__pdf_tmpa_tl |
| 43 |
\box_new:N \l__pdf_backend_tmpa_box |
| 44 |
\box_new:N \l__pdf_backend_tmpb_box |
| 45 |
|
| 46 |
\int_new:N \g__pdf_backend_resourceid_int |
| 47 |
\int_new:N \g__pdf_backend_name_int |
| 48 |
\int_new:N \g__pdf_backend_page_int |
| 49 |
\cs_new:Npn \__kernel_pdf_name_from_unicode_e:n #1 |
| 50 |
{ |
| 51 |
/ \str_convert_pdfname:e { \text_expand:n { #1 } } |
| 52 |
} |
| 53 |
\tl_if_exist:NTF \@kernel@after@shipout@background |
| 54 |
{ |
| 55 |
\g@addto@macro \@kernel@before@shipout@background{\relax} |
| 56 |
\g@addto@macro \@kernel@after@shipout@background |
| 57 |
{ |
| 58 |
\g__kernel_pdfmanagement_thispage_shipout_code_tl |
| 59 |
} |
| 60 |
} |
| 61 |
{ |
| 62 |
\hook_gput_code:nnn{shipout/background}{pdf} |
| 63 |
{ |
| 64 |
\g__kernel_pdfmanagement_thispage_shipout_code_tl |
| 65 |
} |
| 66 |
} |
| 67 |
|
| 68 |
\cs_new_protected:Npn \__pdf_backend_Pages_primitive:n #1 |
| 69 |
{} |
| 70 |
\cs_new_protected:Npn \__pdf_backend_Page_primitive:n #1 |
| 71 |
{} |
| 72 |
% Uses a prop with pdflatex + dvi, |
| 73 |
\cs_new_protected:Npn \__pdf_backend_Page_gput:nn #1 #2 |
| 74 |
{ |
| 75 |
\pdfdict_gput:nnn {g__pdf_Core/Page}{ #1 }{ #2 } |
| 76 |
} |
| 77 |
% the command to remove a default value. |
| 78 |
% Uses a prop with pdflatex + dvi, |
| 79 |
\cs_new_protected:Npn \__pdf_backend_Page_gremove:n #1 |
| 80 |
{ |
| 81 |
\pdfdict_gremove:nn {g__pdf_Core/Page}{ #1 } |
| 82 |
} |
| 83 |
% the command used in the document. |
| 84 |
\cs_new_protected:Npn \__pdf_backend_ThisPage_gput:nn #1 #2 |
| 85 |
{} |
| 86 |
%the code to push the values, used in shipout |
| 87 |
\cs_new_protected:Npn \__pdf_backend_ThisPage_gpush:n #1 |
| 88 |
{} |
| 89 |
\cs_generate_variant:Nn \__pdf_backend_Page_primitive:n { e } |
| 90 |
\clist_const:Nn \c__pdf_backend_PageResources_clist |
| 91 |
{ |
| 92 |
ExtGState, |
| 93 |
ColorSpace, |
| 94 |
Pattern, |
| 95 |
Shading, |
| 96 |
} |
| 97 |
\cs_new_protected:Npn \__pdf_backend_PageResources:n #1 {} |
| 98 |
\cs_new_protected:Npn \__pdf_backend_PageResources_gput:nnn #1 #2 #3 |
| 99 |
{ %only for the show command TEST!! |
| 100 |
\pdfdict_gput:nnn {g__pdf_Core/Page/Resources/#1} { #2 }{ #3 } |
| 101 |
} |
| 102 |
\cs_new_protected:Npn \__pdf_backend_PageResources_obj_gpush: {} |
| 103 |
\bool_new:N \l__pdf_backend_xform_bool |
| 104 |
\cs_set_protected:Npn \__pdf_backend_bdc:nn #1 #2 % #1 eg. Span, #2: dict_content |
| 105 |
{} |
| 106 |
\cs_set_eq:NN \__pdf_backend_bdc_contobj:nn \__pdf_backend_bdc:nn |
| 107 |
\cs_set_eq:NN \__pdf_backend_bdc_contstream:nn \__pdf_backend_bdc:nn |
| 108 |
|
| 109 |
\cs_set_protected:Npn \__pdf_backend_shipout_bdc:ee #1 #2 % #1 eg. Span, #2: dict_content |
| 110 |
{} |
| 111 |
\cs_set_protected:Npn \__pdf_backend_bdcobject:nn #1 #2 % #1 eg. Span, #2: object name |
| 112 |
{} |
| 113 |
\cs_set_protected:Npn \__pdf_backend_bdcobject:n #1 % #1 eg. Span, |
| 114 |
{} |
| 115 |
\cs_set_protected:Npn \__pdf_backend_emc: |
| 116 |
{} |
| 117 |
\cs_set_protected:Npn \__pdf_backend_bmc:n #1 |
| 118 |
{} |
| 119 |
\cs_new_protected:Npn \__pdf_backend_PageResources_gpush:n #1 {} |
| 120 |
|
| 121 |
|
| 122 |
\cs_new_protected:Npn \__pdf_backend_Names_gpush:nn #1 #2 {} |
| 123 |
\cs_new_protected:Npn \__pdf_backend_NamesEmbeddedFiles_add:nn #1 #2 |
| 124 |
{} |
| 125 |
|
| 126 |
\cs_new_protected:Npn \__pdf_backend_xform_new:nnnn #1 #2 #3 #4 {} |
| 127 |
\cs_new_protected:Npn \__pdf_backend_xform_use:n #1 {} |
| 128 |
\cs_new:Npn \__pdf_backend_xform_ref:n {} |
| 129 |
%% all |
| 130 |
\prg_new_conditional:Npnn \__pdf_backend_xform_if_exist:n #1 { p , T , F , TF } |
| 131 |
{ |
| 132 |
\int_if_exist:cTF { c__pdf_backend_xform_ \tl_to_str:n {#1} _int } |
| 133 |
{ \prg_return_true: } |
| 134 |
{ \prg_return_false:} |
| 135 |
} |
| 136 |
\prg_new_eq_conditional:NNn \pdfxform_if_exist:n\__pdf_backend_xform_if_exist:n |
| 137 |
{ TF , T , F , p } |
| 138 |
\tl_new:N \l_pdf_current_structure_destination_tl |
| 139 |
\cs_new_protected:Npn \pdf_activate_structure_destination: |
| 140 |
{ |
| 141 |
\cs_gset_eq:NN \__pdf_backend_destination:nn \__pdf_backend_structure_destination:nn |
| 142 |
\cs_gset_eq:NN \__pdf_backend_destination:nnnn \__pdf_backend_structure_destination:nnnn |
| 143 |
\cs_gset_eq:NN \__pdfannot_backend_link_begin_goto:nnw \__pdfannot_backend_link_begin_structure_goto:nnw |
| 144 |
} |
| 145 |
\cs_new_protected:Npn \pdf_activate_indexed_structure_destination: |
| 146 |
{ |
| 147 |
\cs_gset_eq:NN \__pdf_backend_destination:nn \__pdf_backend_indexed_structure_destination:nn |
| 148 |
\cs_gset_eq:NN \__pdf_backend_destination:nnnn \__pdf_backend_indexed_structure_destination:nnnn |
| 149 |
\cs_gset_eq:NN \__pdfannot_backend_link_begin_goto:nnw \__pdfannot_backend_link_begin_structure_goto:nnw |
| 150 |
} |
| 151 |
\cs_set_eq:NN \__pdf_backend_structure_destination:nn \__pdf_backend_destination:nn |
| 152 |
\cs_set_eq:NN \__pdf_backend_structure_destination:nnnn \__pdf_backend_destination:nnnn |
| 153 |
\cs_set_eq:NN \__pdfannot_backend_link_begin_structure_goto:nnw \__pdfannot_backend_link_begin_goto:nnw |
| 154 |
\cs_set_eq:NN \__pdf_backend_indexed_structure_destination:nn \__pdf_backend_destination:nn |
| 155 |
\cs_set_eq:NN \__pdf_backend_indexed_structure_destination:nnnn \__pdf_backend_destination:nnnn |
| 156 |
\cs_new_protected:Npn \__pdf_backend_set_regression_data: |
| 157 |
{ |
| 158 |
\sys_gset_rand_seed:n{1000} |
| 159 |
\pdfmanagement_add:nnn{Info}{Creator}{(TeX)} |
| 160 |
\pdfdict_put:nne {l_pdffile/Params} {ModDate}{(\c_sys_timestamp_str)} |
| 161 |
\AddToDocumentProperties[hyperref]{pdfinstanceid}{uuid:0a57c455-157a-4141-8c19-6237d832fc80} |
| 162 |
\AddToDocumentProperties[hyperref]{pdfproducer}{\c_sys_engine_exec_str-NN.NN.NN} |
| 163 |
} |
| 164 |
\cs_new_protected:Npn \__pdf_backend_metadata_stream:n #1 |
| 165 |
{ |
| 166 |
\pdf_object_write:nnn{__pdfmeta/xmp} {stream}{{/Type~/Metadata~/Subtype~/XML}{#1}} |
| 167 |
} |
| 168 |
\cs_new_protected:Npn \__pdf_backend_omit_charset:n #1 {} %#1 number |
| 169 |
\cs_new_protected:Npn \__pdf_backend_omit_info:n #1 {} %#1 number |
| 170 |
\cs_new_protected:Npn \__pdf_backend_omit_cidset:n #1 {} %#1 number |
| 171 |
\cs_new_protected:Npn \__pdf_backend_action:nnnnnnn #1#2#3#4#5#6#7{} |
| 172 |
\cs_new_protected:Npn \__pdf_backend_goto:nnnnnnn #1#2#3#4#5#6#7 {} |
| 173 |
%% |
| 174 |
%% |
| 175 |
%% End of file `l3backend-testphase-dvisvgm.def'. |