autotests: Only compile parttest if you have the pdf support
I'm sure other tests fail to run too, but this one was failing to compile :D