Link to home
Start Free TrialLog in
Avatar of solution1368

asked on


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 (


  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;
            var pdfContents = PDFHelper.GeneratePDF(pdfPath, formFieldMap);
            PDFHelper.ReturnPDF(pdfContents, pdfExportName);
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

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