The following code
\documentclass{scrartcl}
\usepackage[-6,nonofiles]{pagesel}
\usepackage{lipsum}
%\usepackage{pgfgantt}
\begin{document}
\lipsum[1-100]
\end{document}
works fine, but if you comment out the fourth line the PDF produced includes a blank page for each discarded page. Any solution/explanation to this problem?
A fix is to place \usepackage{pgfgantt}
before \usepackage[-6,nonofiles]{pagesel}
, but still some explanation would be welcome.