1

I am trying to insert a PDF file as an appendix in my latex file. But when I add the \usepackage{pdfpages}, I have some compiler errors as

! LaTeX Error: Missing \begin{document}.

Do you know how can I solve this problem?

1
  • 1
    \usepackage{pdfpages} \includepdf[pages=-]{myfile.pdf}
    – Elli
    Mar 14 '16 at 16:21
5

You have to follow the LaTeX structure with the following order:

\documentclass{article}

\usepackage{pdfpages} 

\begin{document}

\includepdf[pages=-]{myfile.pdf}

\end{document}
1
  • 1
    consider use fitpaper=true in your \includepdf[fitpaper=true, pages=-]{test.pdf} for a fully fit to the page Sep 7 '20 at 20:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy