Hi,
The best would be that you take an existing PDF that has what you have in mind, and inspect it (the widget annotation) with PDFDebugger to see how it is done. Also be aware that PDFBox can't construct an appearance stream for that one, so you should set NeedAppearances to true in your acroform object. This way it will be shown properly with using Adobe Reader.
Tilman

Am 13.01.2021 um 07:16 schrieb 范 泽华:

This question is driving me crazy. I try all tools I can use to solve it, but failed. So I hope you can give me some suggestions

Let me state the project:

1.convert word table to pdf by word2013(the convert pdf version is 1.7)

2.create pdf form by acrobat9.0

3.fill the content in field by PDFBox(2.0.11 java)

I success to use RichTextString[1] to format the complex content like subscript or supscript

But I want to fill the mathematical formula(like as follow) into field. I try to use xml to format it, but style like

“<p style=/”margin-left:-15pt/”></p>”

is not working. And I hard to search other documents about RichTextString like [1] by Google,Bing.

So I hope you can offer API document about “field.setRichTextValue” support  style or give me some suggestions about fill the complex content into field.

[1] https://stackoverflow.com/questions/54988511/acroform-field-setrichtextvalue-is-not-working# <https://stackoverflow.com/questions/54988511/acroform-field-setrichtextvalue-is-not-working>

Thank you for your help!


Reply via email to