We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

FlattenAllFields not working for some of the XFA CheckBoxes

Hello,

I am trying to Flatten Fields on an XFA Doc but few of the Checkboxes are not getting Flattened. Attaching the PDF to this ticket and below is the Code Snippet. In the Output PDF please refer to Section 2.4.

Code Snippet:

private static void UpdatePDFAspose()
{
var doc = new Document(“MIR_form_v7.2.1b_input.pdf”);
var form = new Aspose.Pdf.Facades.Form();
form.BindPdf(doc);
form.FlattenAllFields();
form.Save(“MIR_form_v7.2.1b_ouput.pdf”);
form.Dispose();
}MIR_form_v7.2.1b_input.pdf (180.1 KB)

@harrynator

Can you please confirm if you are referring to the the checkboxes with below selections in attached output file:

self-testing
near-patient testing
companion diagnostic
reagent
software
instrument
sterile conditions

MIR_form_v7.2.1b_ouput.pdf (137.7 KB)

Hello Mudassir,

Yes that’s correct.

Another Scenario-
If you change input PDF to select “MDR” radiobuttons such as:

class III
class IIb
class IIa
class I

Then the below checkboxes show as unflattened:

implantable
active device
intended to administer and/or
remove a medicinal product
sterile conditions
measuring function
reusable surgical instruments
software
systems
procedure packs
custom-made
non-medical purpose

@harrynator

A ticket with ID PDFNET-50429 has been created in our issue tracking system to further investigate the issue on our end. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

Hello Team,

Is there any update on this issue?

Thanks

@harrynator

Please note that it was recently logged in free support model and will be investigated and resolved on a first come first serve basis. We will surely inform you as soon as we make some definite progress towards its resolution. Please be patient and spare us some time.