StartLaTeX faqLaTeX for Beginners F.A.Q.LaTeX topicsLaTeX courseSearch

A common issue encountered with the \includepdf command is when the file names contain spaces. As stated in the documentation on the second page: "(The filename must not contain any blanks!)" This means that spaces in file names are not supported by this package. Here's a solution for this problem:

Solution

\documentclass{article}
\usepackage{grffile}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=-]{Test X}
\end{document}

However, the functionality provided by the grffile package has now been integrated into the graphicx package. So, the current version of the example looks like this:

Example

\documentclass{article}
\usepackage{pdfpages}

\begin{document}
\includepdf[pages=-]{Test X}
\end{document}

With this setup, you can include the file "Test X.pdf" without any issues. If this doesn't work, then renaming the file might be necessary.

Contact   Privacy Policy   disclosures

accept decline

This website uses cookies and pixel tags to ensure you get the best experience on our website. By using this website, you consent to the use of cookies.learn more about cookies see also our privacy policy