\documentclass[a4paper]{article}%a4paper
\usepackage{pdfpages}

\newcount\stran
\input ../stran.tex
\newcount\mtemp
\mtemp=\stran
%%% \advance\mtemp by -1

\begin{document}
\includepdf[viewport=449 27.5 870.263 623.691,clip]{../obalka/obalka.pdf}%,fitpaper
\includepdf[pages={1-{\the\mtemp}},viewport=34 197 439.5 774,clip]{../!hlavni-soubor.pdf}%,fitpaper
\includepdf[viewport=28.371 27.5 449.25 623.691,clip]{../obalka/obalka.pdf}%,fitpaper
\end{document}

