# [NTG-context] Clipping multiple PDFs

Pablo Rodriguez oinos at gmx.es
Tue Aug 23 19:38:33 CEST 2022

On 8/23/22 17:27, Aditya Mahajan via ntg-context wrote:
> [...]
> For a more low-level interface to finding the number of pages, see:
>

I wonder whether your final definition should be rewritten as:

\unexpanded\def\includePDF[#1]%
{\getfiguredimensions[#1]
\dorecurse{\noffigurepages}
{\startTEXpage
\externalfigure[#1][page=\recurselevel]
\stopTEXpage}}

At least, otherwise it will only work with "talk.pdf".

Or am I missing something?