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

Free Support Forum - aspose.com

Problem importing form data and flattenning a PDF

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



// Export form data to pdf
outPdf = new MemoryStream();
MemoryStream fdf = new MemoryStream();
StreamWriter sw = new StreamWriter(fdf);
fdf.Seek(0, SeekOrigin.Begin);
fdfout.Text = FdfIn.FDFSaveToStr();
Form form = new Form(inPdf, outPdf);
inPdf = null;
inPdf = outPdf;
inPdf.Seek(0, SeekOrigin.Begin);
outPdf = null;
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

Dear oxygen,

Thanks for considering Aspose.Pdf.Kit.

We have reproduced the problem. Yes, multiple CheckBoxes with the same field name acts as a radio box. This bug has been logged in our bug trace system as PDFKITNET-4944.. It is expected to solved in two weeks.

Best regards.

Dear oxygen,

This bug has been fixed. It will be published in the next release after more testing.

Best regards.


Aspose.Pdf.Kit is published, please download and try it.