Coded the PDFOutput

Please test