java如何在iText 7中为泰国字母上方的双标记设置GPO
我需要建议如何在iText 7中设置字母上方泰国双标记的GPO
PdfDocument pdf = new PdfDocument(new PdfReader(src), new PdfWriter(dest));
PdfAcroForm form = PdfAcroForm.getAcroForm(pdf, true);
PdfFont fontLoad = PdfFontFactory.createFont(font, PdfEncodings.IDENTITY_H);
form.getField("Text1").setValue("ตั้", fontLoad,20);
form.flattenFields();
pdf.close();
实际结果
预期结果
# 1 楼答案
要从字体文件中获取额外的定位/交互(请参见:ligatures)信息,您需要pdfCalligraph,这是一个iText 7核心插件
没有pdfCalligraph,我得到:
使用pdfCalligraph,我可以得到:
我相信这就是你要找的