I got a PDF form file from our user. The Security Method was set to "No Security". I can
- fill in the fields in the form manually
- save the changes back to the file.
However, if I used API to do the update, see below
FileStream inStream = new FileStream(@"filein.pdf", FileMode.Open);
FileStream outStream = new FileStream(@"fileout.pdf", FileMode.Create);
Form f = new Form(inStream, outStream );
f.FillField("ABN", "12345");
f.Save();
Problem 1:
When I opened the output file - fileout.pdf in PDF Reader 7.0, I couldn't update the form fields anymore . some finding...
filein.pdf - Security Setting = No security
fileout.pdf - Security Setting = "Password Security" (looks like ASPOSE changed it).
Problem 2:
Although I can use the SetPrivilege(DocumentPrivilegeAllowAll) to enble the "filling of the form field", but I can't save the form with data back into the file by using Adobe Reader 7.0.
Could anybody give me some ideas of how to do that?