add pdf generator method