diff options
author | Karl Berry <karl@freefriends.org> | 2016-04-14 21:47:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-04-14 21:47:17 +0000 |
commit | b59e690bdb8fc242c27d15ccb3aebcddf8e22ef7 (patch) | |
tree | a1da0d4d6f78d417471348b447b037e433395abd /Master/texmf-dist/tex/latex/pdfpages/ppluatex.def | |
parent | d18d22e7afa1ac3ec2f48cf38f88f1a12c11dc5d (diff) |
pdfpages (14apr16)
git-svn-id: svn://tug.org/texlive/trunk@40524 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/pdfpages/ppluatex.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/pdfpages/ppluatex.def | 72 |
1 files changed, 46 insertions, 26 deletions
diff --git a/Master/texmf-dist/tex/latex/pdfpages/ppluatex.def b/Master/texmf-dist/tex/latex/pdfpages/ppluatex.def index 4d921741c22..4585493f8ed 100644 --- a/Master/texmf-dist/tex/latex/pdfpages/ppluatex.def +++ b/Master/texmf-dist/tex/latex/pdfpages/ppluatex.def @@ -8,7 +8,7 @@ %% %% This file is part of the pdfpages package. %% -%% Copyright (C) 2001-2015 Andreas MATTHIAS +%% Copyright (C) 2001-2016 Andreas MATTHIAS %% %% This work may be distributed and/or modified under the conditions %% of the LaTeX Project Public License, either version 1.3c @@ -24,19 +24,39 @@ %% Please send error reports and suggestions for improvements to %% Andreas MATTHIAS <andreas.matthias@gmail.com>. %% -\def\AM@fileversion{v0.5d} +\def\AM@fileversion{v0.5e} \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: 2015-09-18 22:10:48 +0200 $ -\AM@Git@SHA@process$SHA-1: f1e7d3caf5b8b03ed23867a46e056f5fdfa03499 $ +\AM@Git@Date@process$Date: 2016-04-13 23:07:07 +0200 $ +\AM@Git@SHA@process$SHA-1: 50fd5681f79b0951a6874e051507955fd5adce0f $ \ProvidesFile{ppluatex.def} [\AM@Git@Date\space\AM@fileversion\space Pdfpages driver for LuaTeX (AM)] -\ifcase\pdfoutput +\ifnum\luatexversion<85 + \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 +\else + \let\AM@outputmode\outputmode + \let\AM@saveimageresource\saveimageresource + \let\AM@lastsavedimageresourcepages\lastsavedimageresourcepages + \let\AM@luatexpagewidth\pagewidth + \let\AM@luatexpageheight\pageheight + \protected\def\AM@annotation {\pdfextension annot } + \protected\def\AM@thread {\pdfextension thread } + \protected\def\AM@destination {\pdfextension dest } +\fi +\ifcase\AM@outputmode \input{ppnull.def} \expandafter\endinput \fi + \let\AM@Gread@@pdftex\Gread@@pdftex \renewcommand*{\Gread@@pdftex}[1]{% \xdef\AM@currentdocname@fix{#1}% @@ -44,16 +64,16 @@ } \def\AM@getpagecount{% \setbox\@tempboxa=\hbox{\includegraphics{\AM@currentdocname}}% - \pdfximage{\AM@currentdocname@fix}% - \edef\AM@pagecount{\the\pdflastximagepages}% + \AM@saveimageresource{\AM@currentdocname@fix}% + \edef\AM@pagecount{\the\AM@lastsavedimageresourcepages}% } \def\AM@getpagedimen{% \AM@pagewidth=\paperwidth \AM@pageheight=\paperheight } \def\AM@setpagedimen{% - \pdfpagewidth\AM@pagewidth - \pdfpageheight\AM@pageheight + \AM@luatexpagewidth\AM@pagewidth + \AM@luatexpageheight\AM@pageheight } \let\AM@pagesize@boogie\relax \let\AM@fitpaper@special\relax @@ -69,27 +89,27 @@ \def\AM@setRotate{\PLS@Rotate{90}} \def\AM@resetRotate{\PLS@Rotate{0}} \def\AM@linktodoc@special@begin{% - \pdfannot 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 >>}% + \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{% - \pdfannot 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) >>}% + \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{% - \pdfthread width \wd\@tempboxa + \AM@thread width \wd\@tempboxa height \ht\@tempboxa depth \dp\@tempboxa attr {/I <<\threadinfodict>>}% @@ -97,8 +117,8 @@ } \let\AM@thread@special@end\relax \def\AM@view{fit} -\def\AM@dest@special{\pdfdest name {\AM@linkname.\AM@page} \AM@view} -\def\AM@anchor@special{\pdfdest name {pdfpages.\the\count1} 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{% |