new function returns path to generated PDF, instead the PDF itself

Title says it all; really that's all there is to it.