Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347263

Summary: Insert Metadata info
Product: z_Archived Reporter: Pico <mpicom>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: RESOLVED WORKSFORME QA Contact: Xiaoying Gu <bluesoldier>
Severity: normal    
Priority: P3 CC: bluesoldier, mpicom, yChen
Version: 2.6.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Pico CLA 2011-05-26 04:16:36 EDT
Hi, 

I need to add variable info metadata to a report. 
I manipulate the pdf document generated with birt using itext, i do something like that : 

	public static void manipulatePdf(String src, String dest, String metaLabel, String metatext) throws IOException, DocumentException {
        PdfReader reader = new PdfReader(src);
        HashMap<String, String> info = reader.getInfo();
        reader.close();
        PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
        info.put(metaLabel, metaText);
        stamper.setMoreInfo(info);
        stamper.close();
    }
 
Could i insert this info directly with birt ? How ? 

Thanks a lot. 

Pico.
Comment 1 Yu Chen CLA 2011-05-30 01:49:56 EDT
BIRT currently only supports limited metadata keys: Creator, Author, Title, Subject/Keywords.  And in Birt, the value of Creator cannot be modified.

If these keys fit your need, you can edit them on BIRT report design. If you need any other metadata keys, you still need your own program.