test code for pdf generation using itext