| 1 |
%% |
| 2 |
%% This is file `pppdftex.def', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% pdfpages.dtx (with options: `pppdftexdef') |
| 8 |
%% |
| 9 |
%% This file is part of the pdfpages package. |
| 10 |
%% |
| 11 |
%% Copyright (C) 2001-2026 Andreas MATTHIAS |
| 12 |
%% |
| 13 |
%% This work may be distributed and/or modified under the conditions |
| 14 |
%% of the LaTeX Project Public License, either version 1.3c |
| 15 |
%% of this license or (at your option) any later version. |
| 16 |
%% The latest version of this license is in |
| 17 |
%% <http://www.latex-project.org/lppl.txt>. |
| 18 |
%% |
| 19 |
%% This work has the LPPL maintenance status `maintained'. |
| 20 |
%% |
| 21 |
%% The Current Maintainer of this work is |
| 22 |
%% Andreas Matthias <[email protected]>. |
| 23 |
%% |
| 24 |
%% Please send error reports and suggestions for improvements to |
| 25 |
%% Andreas MATTHIAS <[email protected]>. |
| 26 |
%% |
| 27 |
\def\AM@git@tag{v0.6h} |
| 28 |
\def\AM@git@date{2026/03/30} |
| 29 |
\def\AM@git@hash{8329ae0af7} |
| 30 |
\ProvidesFile{pppdftex.def} |
| 31 |
[\AM@git@date\space\AM@git@tag\space |
| 32 |
Pdfpages driver for pdfTeX (AM)] |
| 33 |
\ifnum\pdftexversion<100 |
| 34 |
\PackageError{pdfpages} |
| 35 |
{Package pdfpages requires at least\MessageBreak |
| 36 |
pdfTeX version 1.00} |
| 37 |
{Update your TeX distribution.}% |
| 38 |
\let\AM@endinput\relax |
| 39 |
\expandafter\endinput |
| 40 |
\fi |
| 41 |
\let\AM@outputmode\pdfoutput |
| 42 |
\let\AM@saveimageresource\pdfximage |
| 43 |
\let\AM@lastsavedimageresourcepages\pdflastximagepages |
| 44 |
\let\AM@luatexpagewidth\pdfpagewidth |
| 45 |
\let\AM@luatexpageheight\pdfpageheight |
| 46 |
\let\AM@annotation\pdfannot |
| 47 |
\let\AM@thread\pdfthread |
| 48 |
\let\AM@destination\pdfdest |
| 49 |
\ifcase\pdfoutput |
| 50 |
\input{ppnull.def} |
| 51 |
\expandafter\endinput |
| 52 |
\fi |
| 53 |
\begingroup |
| 54 |
\@ifundefined{[email protected]}{% |
| 55 |
\PackageError{pdfpages} |
| 56 |
{The graphics package was loaded with driver\MessageBreak |
| 57 |
`\Gin@driver', which cannot be used with pdfTeX} |
| 58 |
{Check the driver option of the graphics package.} |
| 59 |
\global\let\AM@endinput\relax |
| 60 |
\aftergroup\endinput}{} |
| 61 |
\endgroup |
| 62 |
\AM@ifdriverlater{pdftex}{2000/05/12}{}{% |
| 63 |
\PackageError{pdfpages} |
| 64 |
{Your version of `pdftex.def' is too old.\MessageBreak |
| 65 |
There is no multipage support\MessageBreak |
| 66 |
in `pdftex.def' < 0.02u} |
| 67 |
{Please, update your `pdftex.def'!}} |
| 68 |
\AM@ifdriverlater{pdftex}{2000/09/14}{}{% |
| 69 |
\PackageWarningNoLine{pdfpages}{% |
| 70 |
Your version of `pdftex.def' is too old.\MessageBreak |
| 71 |
There might be problems with\MessageBreak |
| 72 |
the `trim' and `clip' options.\MessageBreak |
| 73 |
Please, update your `pdftex.def'}} |
| 74 |
\let\AM@Gread@@pdftex\Gread@@pdftex |
| 75 |
\renewcommand*{\Gread@@pdftex}[1]{% |
| 76 |
\xdef\AM@currentdocname@fix{#1}% |
| 77 |
\AM@Gread@@pdftex{#1}% |
| 78 |
} |
| 79 |
\def\AM@getpagecount{% |
| 80 |
\setbox\@tempboxa=\hbox{\includegraphics{\AM@currentdocname}}% |
| 81 |
\AM@saveimageresource{\AM@currentdocname@fix}% |
| 82 |
\edef\AM@pagecount{\the\AM@lastsavedimageresourcepages}% |
| 83 |
} |
| 84 |
\def\AM@getpagedimen{% |
| 85 |
\AM@pagewidth=\paperwidth |
| 86 |
\AM@pageheight=\paperheight |
| 87 |
} |
| 88 |
\def\AM@setpagedimen{% |
| 89 |
\AM@luatexpagewidth\AM@pagewidth |
| 90 |
\AM@luatexpageheight\AM@pageheight |
| 91 |
} |
| 92 |
\let\AM@pagesize@boogie\relax |
| 93 |
\let\AM@fitpaper@special\relax |
| 94 |
\def\AM@findfile#1{% |
| 95 |
\AM@findfile@i{#1}{pdf}% |
| 96 |
\AM@findfile@ii{#1}% |
| 97 |
} |
| 98 |
\AtBeginDocument{% |
| 99 |
\let\AM@IfFileExists\IfFileExists |
| 100 |
\@ifpackageloaded{grffile}{% |
| 101 |
\@ifundefined{grffile@IfFileExists}{}{% |
| 102 |
\let\AM@IfFileExists\grffile@IfFileExists}% |
| 103 |
}{}% |
| 104 |
} |
| 105 |
\ExplSyntaxOn |
| 106 |
\@ifundefined{pdfmanagement_add:nnn}{% |
| 107 |
\def\AM@setRotate{\PLS@Rotate{90}}% |
| 108 |
\def\AM@resetRotate{\PLS@Rotate{0}}% |
| 109 |
}{% |
| 110 |
\def\AM@setRotate{\pdfmanagement_add:nnn{ThisPage}{Rotate}{90}}% |
| 111 |
\def\AM@resetRotate{}% |
| 112 |
}% |
| 113 |
\ExplSyntaxOff |
| 114 |
\def\AM@linktodoc@special@begin{% |
| 115 |
\AM@annotation width \wd\@tempboxa |
| 116 |
height \ht\@tempboxa |
| 117 |
depth \dp\@tempboxa |
| 118 |
{/Subtype /Link /Border [0 0 0] |
| 119 |
/A << /S /GoToR |
| 120 |
/F (\AM@linkfilename) |
| 121 |
/D [\AM@linktodoc@page@m@ne \AM@linktodocfit] |
| 122 |
\ifAM@newwindow/NewWindow true\fi >>}% |
| 123 |
} |
| 124 |
\let\AM@linktodoc@special@end\relax |
| 125 |
\def\AM@survey@special@begin{% |
| 126 |
\AM@annotation width \wd\@tempboxa |
| 127 |
height \ht\@tempboxa |
| 128 |
depth \dp\@tempboxa |
| 129 |
{/Subtype /Link /Border [0 0 0] |
| 130 |
/A << /S /GoTo |
| 131 |
/D (pdfpages.\AM@linktodoc@page@m@ne) >>}% |
| 132 |
} |
| 133 |
\let\AM@survey@special@end\relax |
| 134 |
\def\AM@thread@special@begin{% |
| 135 |
\AM@thread width \wd\@tempboxa |
| 136 |
height \ht\@tempboxa |
| 137 |
depth \dp\@tempboxa |
| 138 |
attr {/I <<\threadinfodict>>}% |
| 139 |
name {\AM@threadname}% |
| 140 |
} |
| 141 |
\let\AM@thread@special@end\relax |
| 142 |
\def\AM@reset@view{% |
| 143 |
\def\AM@view{fit}% |
| 144 |
\def\AM@view@xpos{0}% |
| 145 |
\def\AM@view@ypos{}} |
| 146 |
\def\AM@dest@special{\AM@destination name {\AM@linkname.\AM@page} \AM@view} |
| 147 |
\def\AM@anchor@special{\AM@destination name {pdfpages.\the\count1} fit} |
| 148 |
\def\AM@convert@dest#1{% |
| 149 |
\AM@convert@dest@i #1 0 0 0\END} |
| 150 |
\def\AM@convert@dest@i#1 #2 #3 #4\END{% |
| 151 |
\def\tag{#1}% |
| 152 |
\def\x{FitH}% |
| 153 |
\ifx\x\tag |
| 154 |
\def\AM@view{fith}% |
| 155 |
\def\AM@view@ypos{#2}% |
| 156 |
\else |
| 157 |
\def\x{FitBH}% |
| 158 |
\ifx\x\tag |
| 159 |
\def\AM@view{fitbh}% |
| 160 |
\def\AM@view@ypos{#2}% |
| 161 |
\else |
| 162 |
\def\x{FitV}% |
| 163 |
\ifx\x\tag |
| 164 |
\def\AM@view{fitv}% |
| 165 |
\def\AM@view@xpos{#2}% |
| 166 |
\else |
| 167 |
\def\x{FitBV}% |
| 168 |
\ifx\x\tag |
| 169 |
\def\AM@view{fitbv}% |
| 170 |
\def\AM@view@xpos{#2}% |
| 171 |
\else |
| 172 |
\def\x{FitR}% |
| 173 |
\ifx\x\tag |
| 174 |
\def\AM@view{fitr}% |
| 175 |
\PackageWarningNoLine{pdfpages}{% |
| 176 |
`linkfit=FitR' is not supported, |
| 177 |
I will try `linkfit=Region'.}% |
| 178 |
\def\tag{region}% |
| 179 |
\else |
| 180 |
\def\x{FitB}% |
| 181 |
\ifx\x\tag |
| 182 |
\def\AM@view{fitb}% |
| 183 |
\else |
| 184 |
\def\x{XYZ}% |
| 185 |
\ifx\x\tag |
| 186 |
\def\AM@view{xyz zoom \AM@thousand{#4}}% |
| 187 |
\def\AM@view@xpos{#2} |
| 188 |
\def\AM@view@ypos{#3} |
| 189 |
\else |
| 190 |
\def\x{Region}% |
| 191 |
\ifx\x\tag |
| 192 |
\def\AM@view{fitr |
| 193 |
width \the\wd\@tempboxa |
| 194 |
height \the\ht\@tempboxa |
| 195 |
depth \the\dp\@tempboxa}% |
| 196 |
\else |
| 197 |
\def\AM@view{fit}% |
| 198 |
\fi |
| 199 |
\fi |
| 200 |
\fi |
| 201 |
\fi |
| 202 |
\fi |
| 203 |
\fi |
| 204 |
\fi |
| 205 |
\fi |
| 206 |
} |
| 207 |
\let\AM@disable@includegraphics\relax |
| 208 |
\endinput |
| 209 |
%% |
| 210 |
%% End of file `pppdftex.def'. |