Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Output type in Pdf
Output type in Pdf [message #1255336] Mon, 24 February 2014 10:35 Go to next message
Massimilino Oreto is currently offline Massimilino OretoFriend
Messages: 6
Registered: February 2014
Junior Member
Hi people, i have a problem

I use Birt for SpagoBi.
I create a report and it works very well.

But i need that the report output is not html view but PDF.

Where i can change this settings?

Thank you in advance
Re: Output type in Pdf [message #1265561 is a reply to message #1255336] Thu, 06 March 2014 08:59 Go to previous message
Saurabh Singhal is currently offline Saurabh SinghalFriend
Messages: 6
Registered: March 2014
Junior Member
I think your code should have the following parameters
format="pdf";
if( format.equalsIgnoreCase("pdf") ){
			PDFRenderOption pdfOptions = new PDFRenderOption( options );
			pdfOptions.setOutputFormat("pdf");
			pdfOptions.setEmbededFont(true);
			System.out.println("Font Dir: "+pdfOptions.getFontDirectory());
			pdfOptions.setOption(IPDFRenderOption.PAGE_OVERFLOW, IPDFRenderOption.FIT_TO_PAGE_SIZE);
			pdfOptions.setOutputStream(response.getOutputStream());
			runAndRenderTask.setRenderOption(pdfOptions);
Previous Topic:BIRT Row
Next Topic:Exception while trying to view report definition
Goto Forum:
  


Current Time: Thu Apr 25 16:50:14 GMT 2024

Powered by FUDForum. Page generated in 0.02991 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top