# pdfpages 2016 vs. pdfpages 2002

Using package pdfpages from 2016 (pdfpages 2016/04/19 v0.5f) with addtotoc-option yields problems which do not arise with pdfpages-Package from 2002 (pdfpages 2002/10/01 v0.2k). Here is a minimal working example:

\documentclass[a4paper]{article}
\usepackage{pdfpages}
\pagestyle{empty}
\begin{document}
\tableofcontents
1,section,1,Filme auf Festplatte U,U,
1,subsection,2,U001,U001,
7,subsection,2,U007,U007
}]{input.pdf}
\end{document}


2. Using the 2016-version of pdfpages gives the following Output (for the above example):
First output-sheet contains input-page 1 in upper left corner, rest is blank.
Second output-sheet White space in upper left corner and then page 2-4 at correct Positions.
Third output-sheet contains input-pages 5-7, lower right Corner is blank and fourth Output-sheet contains only page 8 in lower right Corner.
Rest is oK.

Obviously there is a pagebreak after each entry from addtotoc-Option which doesn't makes sense - in my honest opinion.
The above example should work with any input.pdf containing at least 12 pages. Thanks for help, N. Klingen

• Welcome to TeX.SX! Please, add a minimal example. – Heiko Oberdiek Dec 10 '16 at 21:19
• I think an MWE would be helpful. And perhaps a pointer to where the 2002 package may be found. What version is the 2002 one? It seems the most recent is 'only' 0.5f.... But I don't have a copy of the earlier versions anymore. – jon Dec 10 '16 at 21:20
• The change is much more recent than 2002. Using my archive if TL releases, I am fine with the ('final update') TL'14 one (pdfpages 2013/08/25 v0.4v) but not with the TL'15 one (pdfpages 2015/09/18 v0.5d). I'll try to get a diff for this. – Joseph Wright Dec 11 '16 at 10:05
• The issue seems to appear between v0.4w and v0.4x (tug.org/svn/texlive/trunk/Master/texmf-dist/tex/latex/pdfpages/…) – Joseph Wright Dec 11 '16 at 10:22