Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Set PDF "Page Style" property to "Actual size" in iHub
BIRT User
<p>Hello BIRT Experts,</p>
<p>I want to set the PDF render property "Page Style" to "Actual size" in iHub. I don't want to configure it in PDF Emitter xml since it will reflect in all the reports.</p>
<p> </p>
<p>I would like to know how to set this option from Java component while scheduling a job to iHub and directly in report(if there is an option).</p>
<p> </p>
<p>I am using "JobScheduler" object in iHub to schedule the job however i don't find any direct methods to set the report options for a job.</p>
<p> </p>
<p>Please help on this.</p>
<p> </p>
<p>Note: I am using iHub 3.1</p>
<p> </p>
Find more posts tagged with
Comments
Clement Wong
<p>What is the "Java component" that you are referring to?</p>
<p> </p>
<p>IDAPI?</p>
<p>IDAPI Wrapper (<a data-ipb='nomediaparse' href='
https://github.com/puckpuck/idapi-wrapper)?'>https://github.com/puckpuck/idapi-wrapper)?</a></p>
;
<p> </p>
<p> </p>
<p>If the IDAPI Wrapper, it doesn't currently support the ConversionOptions (<a data-ipb='nomediaparse' href='
https://github.com/puckpuck/idapi-wrapper/blob/master/idapi-wrapper/src/com/actuate/aces/idapi/JobScheduler.java'>https://github.com/puckpuck/idapi-wrapper/blob/master/idapi-wrapper/src/com/actuate/aces/idapi/JobScheduler.java</a>)
in scheduleJob: </p>
<pre class="_prettyXprint _lang-">
if (outputFormat != null) {
ConversionOptions conversionOptions = new ConversionOptions();
conversionOptions.setFormat(outputFormat);
submitJob.setConversionOptions(conversionOptions);
}
</pre>
<p>You can rewrite the wrapper, extend scheduleJob in the wrapper, or use IDAPI directly.</p>
BIRT User
<p>Thanks.</p>
ygrument
<p>When scheduling a job you can pass conversion options as report parameters. I don't know the exact report parameter name for "Page Style", but I know names of a few others:</p>
<p> </p>
<p>$$$AC_CONVERSION_OPTION_rptdesign_PDF_BIDIProcessing<br>
$$$AC_CONVERSION_OPTION_rptdesign_PDF_EmbeddedFont</p>