I’m trying to import form data into a pdf.
FDF field values are only bound to the first occurance of the fdf field.
Can this behavour be modified to bind to all occurances of a fdf field?
The pdf specification allows for this naming convension. Having multiple checkboxes with the same name but different values creates a radio button.
Attached is a pdf.
Below is the code snippet used to import the fdf.
Below that is the fdf that is imported.
The radio button I mentioned is named “TestType1”.
Also, please include all responses to gravest [at] ppsc.com
Thanks,
Tim
// Export form data to pdf
outPdf = new MemoryStream();
MemoryStream fdf = new MemoryStream();
StreamWriter sw = new StreamWriter(fdf);
sw.Write(FdfIn.FDFSaveToStr());
sw.Flush();
fdf.Seek(0, SeekOrigin.Begin);
fdfout.Text = FdfIn.FDFSaveToStr();
Form form = new Form(inPdf, outPdf);
form.ImportFdf(fdf);
form.FlattenAllFields();
form.Save();
fdf.Close();
sw.Close();
inPdf = null;
inPdf = outPdf;
inPdf.Seek(0, SeekOrigin.Begin);
outPdf = null;
%FDF-1.2
%âãÏÓ
1 0 obj<</FDF<</F(<A href="http://crashy/QCPACKET/FORMS/CMN/CAREFAX/CMN_20070806C_CONCONLY.PDF)/ID[(ÚLzîn+e5MÅ1„÷¥)(ò">http://crashy/QCPACKET/FORMS/CMN/CAREFAX/CMN_20070806C_CONCONLY.PDF)/ID[(ÚLzîn+e5MÅ1„÷¥)(ò</A> ®S;"Fœ ÆðÏøp)]/Fields[<</T(AdministerLabel)/V(Administer)>><</T(Allowable 1)/V($198.00/MO)>><</T(Charges 1)/V($550.00/MO)>><</T(Comma)/V(,)>><</T(DocOutCustnum)/V(R2159)>><</T(DocOutProcID)/V(19)>><</T(DocOutSubmit)>><</T(FreqLabel)/V(Frequency Via Nasal Cannula and Tubing)>><</T(Item Description 1)/V(Concentrator)>><</T(LPMLabel)/V(LPM)>><</T(Quantity 1)/V(1)>><</T(RecertDate)/V(11/30/2008)>><</T(RemovableFromFax)/V(19)>><</T(RemovablePhysFaxLabel)/V(Physician Fax:)>><</T(TestType1)/V/2>><</T(Text7)/V(HCPCS ITEM DESCRIPTION QTY SUPPLIER CHARGES MEDICARE ALLOWABLE )>><</T(CoverPageTo)>><</T(CoverPageFax)>><</T(CoverPageFrom)/V(Tim Graves)>><</T(CoverPageHeaderPhone)/V(\(209\) 543-8612)>><</T(CoverPageHeaderFax)/V(19)>><</T(CoverPageRegarding)>><</T(CoverPageNotes)>><</T(CoverPageDate)/V(Monday, April 28, 2008)>><</T(CoverPagePages)/V(3 not including this page)>>]/UF(<A href="http://crashy/QCPACKET/FORMS/CMN/CAREFAX/CMN_20070806C_CONCONLY.PDF">http://crashy/QCPACKET/FORMS/CMN/CAREFAX/CMN_20070806C_CONCONLY.PDF</A>)>>>><BR>endobj<BR>trailer<BR><</Root 1 0 R>>%%EOF