Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » PDF rendering issue(PDF rendering is not proper)
PDF rendering issue [message #560112] Tue, 21 September 2010 09:05 Go to next message
laxmipathi raju is currently offline laxmipathi raju
Messages: 17
Registered: April 2010
Junior Member
Hi ,
While rendering PDF which has multiple pages,font size is changing in some pages. Can you please let us know the problem
Here i am sending the code for setting options ....

PDFRenderOption pdfOptions = new PDFRenderOption();
pdfOptions.setOutputFileName(outputFilePath);
pdfOptions.setSupportedImageFormats("JPG;PNG;BMP;SVG");
pdfOptions.setOutputFormat(OmegaConstants.PDF_EXT_STR);
pdfOptions.setOption(PDFRenderOption.FIT_TO_PAGE,Boolean.TRU E);
pdfOptions.setOption(PDFRenderOption.PAGEBREAK_PAGINATION_ON LY,Boolean.FALSE);


Please let us know any property we have missed


Thanks & Regards,
Laxmipathi Raju
Re: PDF rendering issue [message #560213 is a reply to message #560112] Tue, 21 September 2010 15:08 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Are you sure you are not changing style properties in the report?
BTW I do not know what OmegaConstants is.

Jason
Re: PDF rendering issue [message #624763 is a reply to message #560213] Wed, 22 September 2010 05:51 Go to previous messageGo to next message
laxmipathi raju is currently offline laxmipathi raju
Messages: 17
Registered: April 2010
Junior Member
Dear Jason,
Thanks for the reply.I am not changing the style any where. the options i am setting i have given in previous mail. In that "OmegaConstants.PDF_EXT_STR" will replace "pdf" . If i give the above setting i am getting the problem in rendering the PDF pages (with multiple page). Some pages fonts size is becoming small.

If i remove the below lines i am getting the problem with more columns. The report is not fitting to that page so i couldn't able to see some columns.
pdfOptions.setOption(PDFRenderOption.FIT_TO_PAGE,Boolean.TRU E);
pdfOptions.setOption(PDFRenderOption.PAGEBREAK_PAGINATION_ON LY,Boolean.FALSE);

please check this once .

Thanks & Regards,
Laxmipathi Raju.
Re: PDF rendering issue [message #626322 is a reply to message #560112] Wed, 22 September 2010 14:23 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

What version of BIRT are you using?
BIRT 2.6 deprecated some of the options you are using. Here are the new ones:

/**
* Properties to control how to output the content
* if the content exceeds the page-size.
* CLIP_CONTENT: clip the content
* FIT_TO_PAGE_SIZE: scale the content to fit into the page
* OUTPUT_TO_MULTIPLE_PAGES: divided the content into multiple pages
* ENLARGE_PAGE_SIZE: enlarge the page size to contain all the content.
*/
public static final String PAGE_OVERFLOW = "pdfRenderOption.pageOverflow";

public static final int CLIP_CONTENT = 1;
public static final int FIT_TO_PAGE_SIZE = 2;
public static final int OUTPUT_TO_MULTIPLE_PAGES = 4;
public static final int ENLARGE_PAGE_SIZE = 8;

Jason
Re: PDF rendering issue [message #628175 is a reply to message #626322] Thu, 23 September 2010 09:57 Go to previous messageGo to next message
laxmipathi raju is currently offline laxmipathi raju
Messages: 17
Registered: April 2010
Junior Member
Dear jason,
Thanks again for reply and i am using BIRT 2.5 and can you give an example how to use the above values in my code.


Thanks & Regards,
Laxmipathi Raju
Re: PDF rendering issue [message #628692 is a reply to message #628175] Thu, 23 September 2010 17:04 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Use it like:
PDFRenderOption pdfOptions = new PDFRenderOption( options );
pdfOptions.setOption(IPDFRenderOption.PAGE_OVERFLOW,
IPDFRenderOption.FIT_TO_PAGE_SIZE);

Jason


On 9/23/2010 5:57 AM, laxmipathi raju wrote:
> Dear jason,
> Thanks again for reply and i am using BIRT 2.5 and can you give an
> example how to use the above values in my code.
>
>
> Thanks & Regards,
> Laxmipathi Raju
>
Re: PDF rendering issue [message #641164 is a reply to message #560112] Wed, 24 November 2010 13:16 Go to previous messageGo to next message
laxmipathi raju is currently offline laxmipathi raju
Messages: 17
Registered: April 2010
Junior Member
Dear Jason,
We are facing an issue in PDF redering. If we have lengthy data say some 100 characters and there are no spaces in the data then while downloading the report in PDF formate we could not able to see full content. Can you please provide me how can we over come this issue.

Thanks & Regards,
Laxmipathi Raju
Re: PDF rendering issue [message #641219 is a reply to message #641164] Wed, 24 November 2010 15:05 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

The only way I know to handle this is to use a javascript function on
the data item to insert new lines so the text wraps.
Take a look at this thread:
http://www.birt-exchange.org/org/forum/index.php/topic/13587 -not-able-to-wrap-dynamic-text-in-a-cell/

Jason

On 11/24/2010 8:16 AM, laxmipathi raju wrote:
> Dear Jason,
> We are facing an issue in PDF redering. If we have lengthy data say some
> 100 characters and there are no spaces in the data then while
> downloading the report in PDF formate we could not able to see full
> content. Can you please provide me how can we over come this issue.
>
> Thanks & Regards,
> Laxmipathi Raju
Previous Topic:Y-axis format
Next Topic:Scripted Data Set Parameters dont work in Designer 2.6.1
Goto Forum:
  


Current Time: Wed Sep 17 03:40:50 GMT 2014

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

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