Hi,
I am using latest Aspose PDF Kit jar to test below. Below is the sample code given for FormattedText which is not working. Attached inout and ouput PDF files. My requirement is to add text in "Arial Narrow" font to a PDF, i tried changing the font name and it is same issue.
//create PdfFileMend object to add text
PdfFileMend mender = new PdfFileMend("input.pdf", "output.pdf");
//create FormattedText object with required text
FormattedText ft = new FormattedText(
"Hello World!",
new Color(0, 0, 0),
"Frutiger LT 45 Light",
EncodingType.Identity_H,
true,
10);
//add formatted text to PDF
mender.addText(ft, 1, 400, 500, 450, 650);
mender.close();