Set of metadata properties (creator) of PDF report

Marek Kocar
edited February 11, 2022 in Analytics #1
<div>Hi,</div>
<div> </div>
<div>I have problem with metadata of created PDF.</div>
<div> </div>
<div>In properties of this PDF file are metadata like Title, Author, .. these properties I can change.</div>
<ol><li>via report itself, or</li>
<li>by code:</li>
</ol><div>
<pre class="_prettyXprint">
/* ('design' is instance of org.eclipse.birt.report.engine.api.IReportRunnable) */
design.getDesignHandle().setProperty("title", "myTitle");
design.getDesignHandle().setProperty("author", "myAuthor");</pre>
</div>
<div>Problematic part "Creator":</div>
<div>But in case of metadata "Creator", this property is providing information which can break security (showing absolute path of BIRT runtime jar).</div>
<div> </div>
<div>How can I avoid showing the path?</div>
<div>I would like to define something just like "BIRT".</div>
<div>Is there any way how can i change this "Creator" property (for example how it is described in mine 2nd option)?</div>
<div>I went through BIRT code and I think its somehow hardcoded and not configurable, but maybe im wrong.</div>
<div> </div>
<div>Thanks</div>

Comments