PDPageContentStream contentStream = new PDPageContentStream(doc, page, true, true);
contentStream.beginText();
contentStream.setFont( font, fontSize );
contentStream.moveTextPositionByAmount( centeredPosition, 30 );
contentStream.drawString( message );
contentStream.endText();
contentStream.close();
}
doc.save( outfile );