Link to home
Start Free TrialLog in
Avatar of solution1368
solution1368

asked on

itextsharp, asp.net

I have the following codes working fine but I want to make the pdf flatten disable
by using the following codes

pdfStamper.FormFlattening = true;

how can I add above codes working into the following codes?
I read the sample (http://stackoverflow.com/questions/1942357/how-to-flatten-already-filled-out-pdf-form-using-itextsharp)

//=========================================

  string fileLocation = "\\pdf";
            string pdfExportName = "abc.pdf";
            var pdfPath = Path.Combine(fileLocation);
             // Get the form fields for this PDF and fill them in!
            var formFieldMap = PDFHelper.GetFormFieldNames(pdfPath);
            #region Pdf and Class Property Mapping
            formFieldMap["CompanyName"] = Insurance.MovieClass.companyName;
       #endregion
            var pdfContents = PDFHelper.GeneratePDF(pdfPath, formFieldMap);
           
            PDFHelper.ReturnPDF(pdfContents, pdfExportName);
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial