added auth support on pdfexport (re #968)