hexapdf icon indicating copy to clipboard operation
hexapdf copied to clipboard

AcroForm RTF formatting support

Open ekzobrain opened this issue 9 months ago • 3 comments

Hi. How should I set value to AcroForm field with RTF formatting enabled? As I understand from the source code - this is not supported yet?

ekzobrain avatar Apr 09 '25 09:04 ekzobrain

No, RTF formatting is not supported yet as this will need an HTML parser, among other things.

gettalong avatar Apr 09 '25 17:04 gettalong

How could RTF formatting work, in theory? One must provide an HTML value (so it's not actually RTF markup, but HTML markup?) to field_value= and HexaPDF must parse it and draw an appropriate appearance with PDF objects? So it is some kind of a limited converter of HTML to PDF?

ekzobrain avatar Apr 10 '25 08:04 ekzobrain

Yes, kinda like that. But the specification of the value is part of Adobe's XFA specification.

gettalong avatar Apr 11 '25 20:04 gettalong