Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357500

Summary: Report Viewer Servlet appears to ignore the request to "Fit to whole page" when doing PDF export
Product: z_Archived Reporter: Sean S <sls>
Component: BIRTAssignee: Zhiqiang Qian <zqian>
Status: VERIFIED WORKSFORME QA Contact: H N <hng>
Severity: normal    
Priority: P3 CC: bluesoldier, hng, weiming.tang, zqian
Version: unspecified   
Target Milestone: 4.4.1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Sean S CLA 2011-09-13 10:20:37 EDT
Build Identifier: BIRT 2.6.1

A simple report with one table with 50 rows results in 2 pages when exported from the birt viewer as PDF, when "fit to page" is enabled.

When tracing what happens when the export as pdf happens, i can see that the url appears to be correct and it is passing the __pageoverflow=2 url parameter.

/birt/frameset?__title=DF34293-2&_queryId=106443&_primaryGroupId=10000094&_secondaryGroupId=1008&__report=%2Fhome%2Fsls%2FJBoss%2Fondeck%2Fuserfiles%2Fbirt%2Fresources%2F11430482-1315922847660%2Fsimpletestreport.rptdesign&_docId=11430482&_langId=1&__svg=false&__locale=en_US&__sessionId=20110913_100834_340&__dpi=96&__format=pdf&__pageoverflow=2&__asattachment=true&__overwrite=false

Reproducible: Always

Steps to Reproduce:
1. Create Simple single table report using a simple dataset of at least 50-60 items
2. View the report using the web report viewer
3. Click the icon to export as PDF
4. Select "Fit to Whole Page" and click ok.
5. View the generated PDF and it has 2 pages.
Comment 1 Zhiqiang Qian CLA 2014-07-28 18:24:48 EDT
This is the correct behavior.
Comment 2 H N CLA 2014-09-15 15:32:38 EDT
Per comment #1, behavior is expected.