QUESTION: I would like to know what are (or where I may find) a complete set of naming conventions for documents to be later referenced by pdfpages.
That is, I would ensure LaTeX documents, such as
\documentclass{article}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages={1,10-20,30}]{<pdf-file>}
\end{document}
will always work---for I do not always think about the possible future use pdfpages when I am working on the underlying document.
I have checked the Pdfpages documentation on CTAN and could not find what I am looking for; nor, have I come across a comprehensive list upon checking various posts related to pdfpages.
For example, How to use tilde or space in includepdf filename? posts a question with references to using tilde or spaces. This post File names with spaces stopped working in \includepdf and \includegraphics in TeX Live 2019 if compiled with XeLaTeX specifies a problem with spaces when using XeLateX. And this post How to use pdfpages with files with utf8 chars in the name? complains about an error results from using utf8 characters.
Incidentally, I know, for example, that underscores are permitted. It also seems that names that contain spaces are sometimes OK, as I recall that it is not always that I have to rename and recompile an original document when trying to print a range of pages from it with pdfpages.
Finally, if I was acquainted with all (of most) of the naming conventions, then I could adopt them in all cases involving the naming of files and thus avoid the problem of having the LaTeX code abend when invoking pdfpages and an ill-named file.
I am mostly interested with naming conventions when using Pdflatex.
Thank you.
"but in all cases you should be able to access any file on the filesystem as far as I know, If you provided an example of a filename where pdfpages gives an error someone could maybe answer but as it is I don't see how the question can be answered. – David Carlisle Aug 28 '21 at 22:24"in the filename. So you cannot use such a file with tex at all for\inputor\includegraphicsor\includepdfI don't think there is any other constraint on filenames. – David Carlisle Aug 28 '21 at 22:38pdfpages. – DDS Aug 28 '21 at 22:53