Hello I am using the below code to populate the attached PDF (FDA-3331a_Dyn_Sec_Ext_10-14-2024-unlocked.pdf) using attached
FDA-3331a_Dyn_Sec_Ext_10-14-2024-unlocked.pdf (3.3 MB)
XML (Pasted below) but few fields do not populate.
Can you please look into this?
static void Main(string[] args)
{
var doc = new Document(“FDA-3331a_Dyn_Sec_Ext_10-14-2024-unlocked.pdf”);
var m_form = new Aspose.Pdf.Facades.Form();
m_form.BindPdf(doc);
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(“New Data.xml”);
XmlElement root = xmldoc.DocumentElement;
MemoryStream xmlStream = new MemoryStream();
xmldoc.Save(xmlStream);
m_form.ImportXml(xmlStream, false);
m_form.Save(“Output.pdf”);
}
XML:
<?xml version="1.0" encoding="UTF-8"?>
<Subform>
<AddressList>PHI-DO</AddressList>
<DistNameAdd>testdata</DistNameAdd>
<MfrControlNo>Ctrl 123</MfrControlNo
><reportversion_Initial
>1</reportversion_Initial
><reportversion_FU
>0</reportversion_FU
><reportversion_Final
>0</reportversion_Final
><problemfirm>Firm 1</problemfirm
><problemfirmaddress>1235 ABC Street</problemfirmaddress
><problemfirmcity>Tampa</problemfirmcity
><problemfirmstate>Florida</problemfirmstate
><problemfirmcountry>United States</problemfirmcountry
><problemfirmpostalcode>33617</problemfirmpostalcode
><problemfirmDUNS>12345</problemfirmDUNS
><problemfirmDUNSna
>0</problemfirmDUNSna
><problemfirmFEI>33221</problemfirmFEI
><problemfirmFEIna
>0</problemfirmFEIna
><ndaandaother
>NDA</ndaandaother
><appnumber
>223354</appnumber
><ndc>NDC Number</ndc
><activedrugsubstance
>Generic Prod Name</activedrugsubstance
><medicinalproduct>Trade Name</medicinalproduct
><dosageform>Dosage</dosageform
><dosagestrength>5 mg and 6 ml</dosagestrength
><drugbatchnumb_expiry>tsagdiuhau, dyhasiuhdosa, duiashdoasiod, y8uuashdoijhasiodjoas</drugbatchnumb_expiry
><problemstartdate
>2025-02-27</problemstartdate
><problemhistorytext>Aise hi</problemhistorytext
><drugproblem
>No problem just enjoy life</drugproblem
><codeddefect
>Meddra Terminology is not avilable</codeddefect
><reporteddefect
>Reported Quality</reporteddefect
><probcause>Root Cause of the Problem</probcause
><coract>Describe Corrective Action</coract
><remarks>Remarks are REAL</remarks
><reportername
>Establishment Name</reportername
><reporteraddress
>4567 W Keneddy Blvd</reporteraddress
><reportercity
>Austin</reportercity
><reporterstate
>Texas</reporterstate
><reportercountry
>United States</reportercountry
><reporterpostalcode
>33452</reporterpostalcode
><reporterDUNS
>DUNS 123</reporterDUNS
><reporterDUNSna
>0</reporterDUNSna
><reporterFEI
>FEI 123</reporterFEI
><reporterFEIna
>0</reporterFEIna
><reporterfamilyname>test name</reporterfamilyname
><reportertel
>1234567890</reportertel
><reporteremail
>email@gmail.com</reporteremail
><DateSubmission
>2025-02-27</DateSubmission
><TimePrint
>15:53:28 GMT -5</TimePrint
></Subform
>