\documentclass[a4paper]{article}
%\VignetteIndexEntry{Example with fertility data}
%\VignettePackage{Countr} 
\usepackage{pdfpages}

\def\pdffile{./fertility.pdf}

\begin{document}

\IfFileExists{\pdffile}{%
  \includepdf[fitpaper=true,pages=-]{\pdffile}}%
{\typeout{No file \pdffile}}%

\end{document}
