PDFsharp does not appear able to correctly edit dynamic XFA documents. This is a major use case for anyone stuck with government forms.
I can go into the /XFA elements and change the datasets to include updated XML. This almost works. The trouble is when I reopen the document in Acrobat the data is there but no longer editable. This is not a document flattening issue, instead it probably relates to how document signing functions are triggered or managed within the PDF structure. I'm not certain due to my limited knowledge of PDF internals.
It seems I'm not the only one who's fallen into this. Here's a couple things I found while researching my issue:
PDFsharp does not appear able to correctly edit dynamic XFA documents. This is a major use case for anyone stuck with government forms.
I can go into the /XFA elements and change the datasets to include updated XML. This almost works. The trouble is when I reopen the document in Acrobat the data is there but no longer editable. This is not a document flattening issue, instead it probably relates to how document signing functions are triggered or managed within the PDF structure. I'm not certain due to my limited knowledge of PDF internals.
It seems I'm not the only one who's fallen into this. Here's a couple things I found while researching my issue:
Is there incremental save functionality in PDFsharp? Is that what's needed to make this work?