Attaching a file to the XFA doc created using Adobe LiveCycle Designer

I am trying to attach a file to one of my PDF document (XFA Document created by Adobe Live Cycle Designer), it is not throwing any error but the file is not getting attached to the PDF file. What could be the reason? The following is the code I used to do the same:

HttpPostedFile postedFile;

postedFile = mFile.PostedFile;

string fileName = postedFile.FileName;

if(fileName != string.Empty)

{

if( mFile.PostedFile != null )

{

PdfContentEditor editor = new PdfContentEditor();

System.Drawing.Rectangle rect=new

System.Drawing.Rectangle(50,50,100,100);

editor.BindPdf(destinationPath);

editor.CreateFileAttachment(rect,"Welcome Aspose",fileName,1,"Generic");

editor.Save(destinationPath2);

}

}

Hi,

Can you please provide the pdf that you are using so that we can more accurately determine the cause of the problem.

Thanks.

Adeel Ahmad
Support Developer
Aspose Changsha Team
http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html

Hi Ahmad,

You can refer the document which I was attached to query FieldFlag.READ_ONLY privilege for the field is not working for this query also

-Amar

Hi,amarkumarv

I have tested the documents and was able to reproduce the error. I will solve this problem about two weeks and I will inform you as soon as a solution is found.

Thanks.