//Setup page content stream and paint background/title
PDPageContentStream contentStream = new PDPageContentStream(doc, page, false, false);
PDFont font = PDType1Font.HELVETICA_BOLD;
contentStream.beginText();
contentStream.moveTextPositionByAmount(50, 720);
contentStream.setFont(font, 14);
contentStream.drawString("Simple test document with text.");
contentStream.endText();
font = PDType1Font.HELVETICA;
contentStream.beginText();