Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
Different PDF format when generated with and without viewer
Migrateduser
<div>I've a simple report with only one table and paper size set as A4. On the viewer the PDF format is correct but when generated by calling a Java class, the alignment is messed up. It has huge margin on the right, tried setting margin to 0, align center... but no luck</div>
<div> </div>
<div>Here is the Java code </div>
<div> </div>
<pre class="_prettyXprint">
PDFRenderOption pdfOptions = new PDFRenderOption();
pdfOptions.setOutputFormat(RenderOption.OUTPUT_FORMAT_PDF);
pdfOptions.setEmitterID(RenderOption.OUTPUT_EMITTERID_PDF);
pdfOptions.setOption(IPDFRenderOption.PAGE_OVERFLOW, IPDFRenderOption.FIT_TO_PAGE_SIZE);
pdfOptions.setOutputStream(response.getOutputStream());
</pre>
<p> I'm using Birt 4.4.0</p>
Find more posts tagged with
Comments
There are no comments yet