I am unable to keep the font from getting cut off at the bottom. Any lowercase Y's or G's get cut off. I tried increasing the size of the box and reducing the font size to no avail. I have attached an example. I don't believe this is a problem with the font, because the evaluation only message at the top is getting cut off as well. I am also hoping to center this text in the document, an ideas on that are greatly appreciated.
Thanks, Adam
//specify input and output PDF file paths
String inputFile = "C:\\Untitled.pdf";
String outputFile = "C:\\Certificate.pdf";
//specify image file path
String imageName = "C:\\paul-signature.gif";
//create file streams for all of the files to be used in the example
FileInputStream inPdfStream = new FileInputStream(inputFile);
FileInputStream inImgStream = new FileInputStream(imageName);
FileOutputStream outputStream = new FileOutputStream(outputFile);
//create instance of PdfFileMend class
PdfFileMend mendor = new PdfFileMend(inPdfStream, outputStream);
//add image to the input PDF file on page number 1 at specified location
mendor.addImage(inImgStream, 1, 50, 50, 100, 100);
//create new FormattedText type object to add text in the PDF file
FormattedText ft = new FormattedText("Billy Magin Jones", new FontColor(0, 0, 0), "c:\\zcr_____.pfm", EncodingType.Winansi, true, 40);
//add text in the existing PDF file
//addText(FormattedTexttext, intpageNum, floatlowerLeftX, floatlowerLeftY, floatupperRightX, floatupperRightY)
mendor.addText(ft, 1, 100, 400, 600, 700);
//claose the PdfFileMend type object
mendor.close();
//close output file stream
outputStream.close();