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