A tcbraster
combined with tcbincludepdf
can also be used to include framed pages from an external file into another document.
tcolorbox
will do all scaling work.
\documentclass{article}
\usepackage[most]{tcolorbox}
\begin{document}
\begin{tcbraster}[%
raster columns=1,
colframe = blue,
colback = white,
colbacktitle = blue!50,
fonttitle = \small\ttfamily,
boxsep = 0pt,
toptitle = 1mm,
bottomtitle = 1mm,
drop lifted shadow,
center title,
graphics pages = {1,...,3},
title = {\imagename\ [\imagepage]}]
\tcbincludepdf{tcolorbox.pdf}
\end{tcbraster}
\begin{tcbraster}[%
raster columns=2,
colframe = blue,
colback = white,
colbacktitle = blue!50,
fonttitle = \small\ttfamily,
boxsep = 0pt,
toptitle = 1mm,
bottomtitle = 1mm,
drop lifted shadow,
center title,
graphics pages = {4,...,20},
title = {\imagename\ [\imagepage]}]
\tcbincludepdf{tcolorbox.pdf}
\end{tcbraster}
\end{document}
