Hi,
I able to concatenate pdfs and generate a new pdf.All these forms have controls.I use outputFDF.SetValue() to set data to the form fields.
However,only the form fields in the last attached form get filled while the initial files remain empty.
DoctorData.pdf has the controls but only the last file that was attached has data.
Sometimes some fields have values in the initial pdf files (all the data doesnt show up) but mostly its blank.
I am unable to understand why this is happening .
the program flow is as follows:
try{
FDFDoc outputFDF = null;
outputFDF = new FDFDoc();
outputFDF.SetValue("street1","xxxx");
outputFDF.SetValue("street2","xxxx");
etc
Add attachments and create a new file using concat.pdf/CppyPDF
eg a.pdf b.pdf DoctorData.pdf
So,now DoctorData is the file where I want the data to show up.
outputFDF.SetValue("street1","xxxx");
outputFDF.SetValue("street2","xxxx");
etc
outputFDF.SetFile("D:\\projects\\pdf\\DoctorData.pdf");
f//specify the fdf
FileOutputStream fos = new FileOutputStream(new File("D:\\projects\\pdf\\result.fdf"));
FileOutputStream fos = new FileOutputStream(new File("D:\\projects\\pdf\\result.fdf"));
// close stream
fos.close();
fos.close();
}
Any help is greatly appreciated.
Thanks for your time ,
Sarita.
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing
