Community
Participate
Working Groups
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.
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.