Hi,
I am trying to convert my docx files to PDF using aspose.words. My documents have fillable fields (forms) and the convertion is successfully when I use the PDF standard by default. This is an example of my code:
Document doc = new Document(in);
doc.setFontSettings(fs);
PdfSaveOptions so = new PdfSaveOptions();
so.setPreserveFormFields(true);
FileOutputStream out = new FileOutputStream(f.toFile());
doc.save(out, so);
With this code, the created PDF show form fields successfully, but if I add the PDF/A option, the form fields disappear:
Document doc = new Document(in);
doc.setFontSettings(fs);
PdfSaveOptions so = new PdfSaveOptions();
so.setCompliance(PdfCompliance.PDF_A_1_A);
so.setPreserveFormFields(true);
FileOutputStream out = new FileOutputStream(f.toFile());
doc.save(out, so);
There are some options to mantain the form fields in a PDF/A File?
Thanks.