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 in right, tried setting margin to 0, align center... but no luck
Here is the Java code (I'm using Birt 4.4.0)
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());