How to set PDF properties

152 views
Skip to first unread message

Abhilash Gampa

unread,
Feb 14, 2013, 2:24:33 PM2/14/13
to jodcon...@googlegroups.com
Hi,

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? 

Can any one help with the solution?

I am setting the filters using hte following code:

  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;
  }
Reply all
Reply to author
Forward
0 new messages