# Is there a way to instruct \includepdf to carry-on if no file present?

Is there a way to instruct \includepdf to carry-on if no file present?

It occurs to me that this could be done via an option, or by wrapping the \includepdf command in an if statement which leverages some filesystem query.

• \IfFileExists{some.pdf}{true}{false} Jul 26 at 14:58

There doesn't seem to be an option in includepdf, but if you want to redefine \includepdf to behave this way, you can use code like this (assuming you always provide an optional argument):
\let\realincludepdf=\includepdf