diff options
author | Karl Berry <karl@freefriends.org> | 2022-08-27 20:21:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-08-27 20:21:59 +0000 |
commit | 90ebd477a2d1290345277a5cd6ea1b9aeb51a9c8 (patch) | |
tree | 23afe7fa846c6eb3ee28b335e859b8e2dbcc0624 /Master/texmf-dist/tex | |
parent | c92396423dc0b57182fdfb0b1e680e0429716843 (diff) |
pdfoverlay (27aug22)
git-svn-id: svn://tug.org/texlive/trunk@64210 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/pdfoverlay/pdfoverlay.sty | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/latex/pdfoverlay/pdfoverlay.sty b/Master/texmf-dist/tex/latex/pdfoverlay/pdfoverlay.sty index afc108a3a50..8e7759d281b 100644 --- a/Master/texmf-dist/tex/latex/pdfoverlay/pdfoverlay.sty +++ b/Master/texmf-dist/tex/latex/pdfoverlay/pdfoverlay.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (c) 2018-2021 David Purton <dcpurton@marshwiggle.net> +%% Copyright (c) 2018-2022 David Purton <dcpurton@marshwiggle.net> %% %% This work may be distributed and/or modified under the conditions of %% the LaTeX Project2 Public License, either version 1.3c of this license @@ -25,11 +25,11 @@ %% and the derived files pdfoverlay.sty and pdfoverlay.pdf %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] -\ProvidesExplPackage{pdfoverlay}{2021/11/01}{1.2b} +\ProvidesExplPackage{pdfoverlay}{2022/08/27}{1.3} {Overlay text on an existing PDF document (DCP)} \RequirePackage{graphicx} -\AddToHook { shipout/background } { \__pdfoverlay_output_pdf_page: } -\AtEndDocument { +\hook_gput_code:nnn { shipout/background } { pdfoverlay } { \__pdfoverlay_output_pdf_page: } +\hook_gput_code:nnn { enddocument } { pdfoverlay } { \bool_if:NT \g__pdfoverlay_action_pending_bool { \hbox:n { } @@ -60,7 +60,7 @@ { #1~not~supported. } { The~#1~engine~is~not~supported. \\ Use~one~of~pdftex,~luatex,~or~xetex. } -\str_new:N \g__pdfoverlay_pdf_file_name_str +\tl_new:N \g__pdfoverlay_pdf_file_name_tl \int_new:N \g__pdfoverlay_page_count_int \int_new:N \g__pdfoverlay_page_int \bool_new:N \g__pdfoverlay_output_active_bool @@ -80,7 +80,7 @@ { { \bool_if_p:N \g__pdfoverlay_output_active_bool } { \bool_not_p:n - { \str_if_empty_p:N \g__pdfoverlay_pdf_file_name_str } } + { \tl_if_empty_p:N \g__pdfoverlay_pdf_file_name_tl } } { \int_compare_p:n { \c_zero_int <= \g__pdfoverlay_page_int < \g__pdfoverlay_page_count_int } } @@ -100,11 +100,11 @@ { \exp_not:N \includegraphics [ \clist_use:Nn \g__pdfoverlay_graphics_options_clist { , } ] - { \g__pdfoverlay_pdf_file_name_str } + { \g__pdfoverlay_pdf_file_name_tl } } } } -\cs_new:Nn \__pdfoverlay_place_pdf_page: +\cs_new_protected:Nn \__pdfoverlay_place_pdf_page: { \put ( 0.5 \paperwidth, -0.5 \paperheight ) { @@ -115,7 +115,7 @@ \cs_new_protected:Nn \__pdfoverlay_count_pdf_pages: { \int_gzero:N \g__pdfoverlay_page_count_int - \str_if_empty:NTF \g__pdfoverlay_pdf_file_name_str + \tl_if_empty:NTF \g__pdfoverlay_pdf_file_name_tl { \msg_error:nn { pdfoverlay } { file-not-set } } @@ -124,7 +124,7 @@ { \int_gset:Nn \g__pdfoverlay_page_count_int { - \XeTeXpdfpagecount " \g__pdfoverlay_pdf_file_name_str " + \XeTeXpdfpagecount " \g__pdfoverlay_pdf_file_name_tl " } } { @@ -136,7 +136,7 @@ { \sys_if_engine_pdftex:TF { - \pdfximage { \g__pdfoverlay_pdf_file_name_str } + \pdfximage { \g__pdfoverlay_pdf_file_name_tl } \int_gset_eq:NN \g__pdfoverlay_page_count_int \pdflastximagepages @@ -145,7 +145,7 @@ \sys_if_engine_luatex:TF { \saveimageresource - { \g__pdfoverlay_pdf_file_name_str } + { \g__pdfoverlay_pdf_file_name_tl } \int_gset_eq:NN \g__pdfoverlay_page_count_int \lastsavedimageresourcepages @@ -165,7 +165,7 @@ } \prg_new_conditional:Nnn \__pdfoverlay_if_page_exists:n { p, T, F, TF } { - \str_if_empty:NTF \g__pdfoverlay_pdf_file_name_str + \tl_if_empty:NTF \g__pdfoverlay_pdf_file_name_tl { \msg_error:nn { pdfoverlay } { file-not-set } \prg_return_false: @@ -180,7 +180,7 @@ } { \msg_error:nnxxx { pdfoverlay } { page-not-found } - { \str_use:N \g__pdfoverlay_pdf_file_name_str } + { \g__pdfoverlay_pdf_file_name_tl } { \int_eval:n { #1 } } { \int_use:N \g__pdfoverlay_page_count_int } \prg_return_false: @@ -191,14 +191,14 @@ { \file_if_exist:nTF { #1 } { - \str_gset:Nn \g__pdfoverlay_pdf_file_name_str { #1 } + \tl_gset:Nn \g__pdfoverlay_pdf_file_name_tl { #1 } \__pdfoverlay_count_pdf_pages: \int_gzero:N \g__pdfoverlay_page_int \bool_gset_true:N \g__pdfoverlay_output_active_bool \bool_gset_false:N \g__pdfoverlay_action_pending_bool } { - \msg_error:nnn { pdfoverlay } { file-not-found } { #1 } + \msg_error:nnx { pdfoverlay } { file-not-found } { #1 } } } \cs_new_protected:Nn \pdfoverlay_set_graphics_options:n |