Change Pdf methods to static, remove createDocument