PdfAcroForm form = PdfAcroForm.getAcroForm(pdfdoc, true) For forms based on the XML Forms Architecture (XFA) you should use the following snippet: PdfDocument pdfdoc = new PdfDocument(new PdfReader(src), new PdfWriter(dest)) ![]() This code will work when trying to flatten forms based on AcroForm technology. PdfAcroForm form = PdfAcroForm.getAcroForm(pdfDoc, true) ![]() I assume your code looks like this: PdfDocument pdfDoc = new PdfDocument(new PdfReader(src), new PdfWriter(dest)) ![]() You didn't insert a code sample to show how you are currently flattening the XFA form.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |