Thanks for the speedy reply.

On 4/5/19 9:22 PM, Tilman Hausherr wrote:
One interesting symptom when I do this is that I see this error message every time I fill a text field:

   Apr 05, 2019 8:16:51 AM
   org.apache.pdfbox.pdmodel.font.PDCIDFontType2 <init>
   INFO: OpenType Layout tables used in font NotoSansCJKsc-Medium are
   not implemented in PDFBox and will be ignored
   Apr 05, 2019 8:16:51 AM
   org.apache.pdfbox.pdmodel.font.PDCIDFontType2 <init>
   INFO: OpenType Layout tables used in font NotoSansCJKsc-Medium are
   not implemented in PDFBox and will be ignored
   Apr 05, 2019 8:16:52 AM
   org.apache.pdfbox.pdmodel.font.PDCIDFontType2 <init>
   INFO: OpenType Layout tables used in font NotoSansCJKsc-Medium are
   not implemented in PDFBox and will be ignored

That is harmless... these are some very advanced features, e.g. for Thai, Arabic and Indian fonts.

Ah, sorry I wasn't clear. I wasn't surprised by the message. I was surprised that I saw it once per field.


Could you post some code that takes 140 seconds? And also share the font, or mention how to get it (I have Windows 7 and 10).

Or does it work when just looping through text fields and then calling setValue() ? And how did you use a CJK font - did you add a new font to /Acroform/DR replace the default appearance string in the fields?

This could certainly be where I'm getting it wrong. I cobbled together something that appears to work from various online examples, and the resulting PDF seems fine, but perhaps I'm doing it the wrong way. I've put some example code up here:

    https://gist.github.com/wpietri/7cae917d73bcbf69c8a60353630a9fea

And I think you can download with the font, etc, like this:

    git clone https://gist.github.com/7cae917d73bcbf69c8a60353630a9fea.git issuedemo

On my machine this takes 400-500ms to fill each field.


Thanks,

William

Reply via email to