| Summary: | Insert Metadata info | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Pico <mpicom> |
| Component: | BIRT | Assignee: | 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: | |||
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. |
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.