set getPdfOutput as a public api