I am able to convert PDF to PDFA1/A format successfully using JODConvertor. But when I check the generated document it is missing all PDF properties like Author, Title, Subject, Keywords etc. Is there any way to retain the original values of source pdf or is there a way to modify using jod convertor program?
private DocumentFormat toFormatPDFA() {
DocumentFormat format = new DocumentFormat("PDF/A", PDF, "application/pdf");
Map<String, Object> properties = new HashMap<String, Object>();
properties.put("FilterName", "writer_pdf_Export");
Map<String, Object> filterData = new HashMap<String, Object>();
filterData.put("SelectPdfVersion", this.PDFX1A2001);
properties.put("FilterData", filterData);
format.setStoreProperties(DocumentFamily.TEXT, properties);
return format;
}