Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347263 - Insert Metadata info
Summary: Insert Metadata info
Status: RESOLVED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-26 04:16 EDT by Pico CLA
Modified: 2011-05-30 03:06 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.