From 277463648965be21e215d982f6623c11a2e154ee Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 17 Apr 2015 22:11:36 +0000
Subject: pdfpages (17apr15)

git-svn-id: svn://tug.org/texlive/trunk@36894 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/doc/latex/pdfpages/pdf-hyp.tex | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'Master/texmf-dist/doc/latex/pdfpages/pdf-hyp.tex')

diff --git a/Master/texmf-dist/doc/latex/pdfpages/pdf-hyp.tex b/Master/texmf-dist/doc/latex/pdfpages/pdf-hyp.tex
index dd7672e7ee5..7bcbf3b3cda 100644
--- a/Master/texmf-dist/doc/latex/pdfpages/pdf-hyp.tex
+++ b/Master/texmf-dist/doc/latex/pdfpages/pdf-hyp.tex
@@ -11,6 +11,10 @@
 %% Please send error reports and suggestions for improvements to
 %%   Andreas MATTHIAS <andreas.matthias@gmail.com>.
 %%
+%%    \def\AM@getpagecount{%
+%%      \setbox\@tempboxa=\hbox{\includegraphics{\AM@currentdocname}}%
+%%      \edef\AM@pagecount{\the\pdflastximagepages}%
+%%    }
 \documentclass[a4paper,12pt]{article}
 \usepackage[final]{pdfpages}
 \usepackage{verbatim}
-- 
cgit v1.2.3

