summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pdfpages/pppdftex.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/pdfpages/pppdftex.def')
-rw-r--r--Master/texmf-dist/tex/latex/pdfpages/pppdftex.def14
1 files changed, 12 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/pdfpages/pppdftex.def b/Master/texmf-dist/tex/latex/pdfpages/pppdftex.def
index dd1ff819e62..cf487cd4f62 100644
--- a/Master/texmf-dist/tex/latex/pdfpages/pppdftex.def
+++ b/Master/texmf-dist/tex/latex/pdfpages/pppdftex.def
@@ -24,10 +24,10 @@
%% Please send error reports and suggestions for improvements to
%% Andreas MATTHIAS <andreas.matthias@gmail.com>.
%%
-\def\AM@fileversion{v0.4u}
+\def\AM@fileversion{v0.4v}
\def\AM@SVN@Date@i#1-#2-#3\END{\def\AM@filedate{#1/#2/#3}}
\def\AM@SVN@Date$Date: #1 #2${\AM@SVN@Date@i#1\END}
-\AM@SVN@Date$Date: 2013-05-30 15:06:59 +0200 (Thu, 30 May 2013) $
+\AM@SVN@Date$Date: 2013-08-25 15:19:23 +0200 (Sun, 25 Aug 2013) $
\ProvidesFile{pppdftex.def}
[\AM@filedate\space\AM@fileversion\space
Pdfpages driver for pdfTeX (AM)]
@@ -64,8 +64,18 @@
There might be problems with\MessageBreak
the `trim' and `clip' options.\MessageBreak
Please, update your `pdftex.def'}}
+%% \def\AM@getpagecount{%
+%% \setbox\@tempboxa=\hbox{\includegraphics{\AM@currentdocname}}%
+%% \edef\AM@pagecount{\the\pdflastximagepages}%
+%% }
+\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}}%
+ \pdfximage{\AM@currentdocname@fix}%
\edef\AM@pagecount{\the\pdflastximagepages}%
}
\let\AM@pagewidth\pdfpagewidth