[Tex/LaTex] How to pass the draft option for pdfpages to \includegraphics

graphicspackage-optionspdfpages

If I use

\usepackage[draft]{pdfpages}

and include

\includepdf[...]{...}

everything works fine, i.e. instead of the included pages I get empty boxes.
But if I use

\includegraphics[...]{...}

the actual picture is included.
I cannot separately load "graphicx" because it is already loaded by "pdfpages".

How can I pass the draft option to \includegraphics?

Best Answer

You can use \PassOptionsToPackage:

\PassOptionsToPackage{draft}{graphicx}
\documentclass{article}
\usepackage[draft]{pdfpages}

or you can use draft as a class option

\documentclass[draft]{article}
\usepackage{pdfpages}
\usepackage{graphicx}

and it will be picked by pdfpages and graphicx. Another option would be to load graphicx before pdfpages, so you can use the desired option:

\documentclass{article}
\usepackage[draft]{graphicx}
\usepackage[draft]{pdfpages}