Hello,
I believe pdfium has no public function that an API consumer could use to generate (and set) an annotation's appearance stream.
I'd like to propose an addition to pdfium's public API: a function that would take an annotation handle, and generate the appearance stream for that annotation.
Use case: In the
pdfium-render project, we have limited support for filling PDF forms. However, since pdfium's API lacks a way to generate an appearance stream for a form widget, some viewers display the form as though it had not been filled (
bug report, for context).
Is the pdfium project likely to accept a patch to add this function?
I'm attaching a WIP patch for early feedback. If the response here is positive, I can create an issue on the bug tracker.
Thank you for taking the time to consider this.
Kind Regards,
Liam McDermott.