summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/l3kernel/l3pdf.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3pdf.dtx')
-rw-r--r--Master/texmf-dist/source/latex/l3kernel/l3pdf.dtx27
1 files changed, 23 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3pdf.dtx b/Master/texmf-dist/source/latex/l3kernel/l3pdf.dtx
index c29dbe4141a..5cc0c00fc3a 100644
--- a/Master/texmf-dist/source/latex/l3kernel/l3pdf.dtx
+++ b/Master/texmf-dist/source/latex/l3kernel/l3pdf.dtx
@@ -2,7 +2,7 @@
%
%% File: l3pdf.dtx
%
-% Copyright(C) 2019-2022 The LaTeX Project
+% Copyright(C) 2019-2023 The LaTeX Project
%
% It may be distributed and/or modified under the conditions of the
% LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2022-12-17}
+% \date{Released 2023-01-16}
%
% \maketitle
%
@@ -162,6 +162,16 @@
% Expands to the currently-active PDF version.
% \end{function}
%
+% \section{Page (media) size}
+%
+% \begin{function}[added = 2023-01-14]{\pdf_pagesize_gset:nn}
+% \begin{syntax}
+% \cs{pdf_pagesize_gset:nn} \Arg{width} \Arg{height}
+% \end{syntax}
+% Sets the page size (mediabox) of the PDF being created to the
+% \meta{width} and \meta{height}, both of which are \meta{dimexpr}.
+% \end{function}
+%
% \section{Compression}
%
% \begin{function}[added = 2021-02-10]{\pdf_uncompress:}
@@ -474,6 +484,15 @@
% \end{macrocode}
% \end{macro}
%
+% \subsection{Page size}
+%
+% \begin{macro}{\pdf_pagesize_gset:nn}
+% \begin{macrocode}
+\cs_new_protected:Npn \pdf_pagesize_gset:nn #1#2
+ { \@@_pagesize_gset:nn {#1} {#2} }
+% \end{macrocode}
+% \end{macro}
+%
% \subsection{Destinations}
%
% \begin{macro}{\pdf_destination:nn}
@@ -515,7 +534,7 @@
{ \dim_compare_p:nNn \stockheight > { 0pt } }
{ \dim_compare_p:nNn \stockwidth > { 0pt } }
{
- \@@_backend_pagesize_set:nn
+ \@@_backend_pagesize_gset:nn
\stockwidth \stockheight
}
{
@@ -527,7 +546,7 @@
{ \dim_compare_p:nNn \paperheight > { 0pt } }
{ \dim_compare_p:nNn \paperwidth > { 0pt } }
{
- \@@_backend_pagesize_set:nn
+ \@@_backend_pagesize_gset:nn
\paperwidth \paperheight
}
}