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

Bug 312908

Summary: Avoid page break in PDF
Product: z_Archived Reporter: Neza <neza.strukelj>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: NEW --- QA Contact: Xiaoying Gu <bluesoldier>
Severity: normal    
Priority: P3 CC: andrew.somerville, bluesoldier, h.vonbargen, wyan
Version: 2.5.1   
Target Milestone: Future   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Neza CLA 2010-05-14 10:11:46 EDT
Build Identifier: 2.5.1.v20090922-0630

Avoid page break does not work for PDF format if Dynamic text where content type=HTML is big (more than one A4).

Reproducible: Always

Steps to Reproduce:
1. Insert a 1*2 gird.
2. Insert Label at 1st row and Dynamic text (Content type=HTML, content big is more than A4 page) at 2nd row.
3. Set page break after-avoid at 1st row and before-avoid at 2nd row.
4. Emitted to PDF.

Actual result:
2nd row of grid starts at 2nd page. Page break does not work.

Expect result:
2nd row of grid starts at 1st page.

I also tried to converte the same .rptdesign to DOC and page breakes work fine.
Comment 1 Wei Yan CLA 2010-05-16 22:46:57 EDT
the HTML text is treat as a element as a whole, BIRT always tries to put it into one page just as it has page-break-inside:avoid.

We may enhance the HTML layout in next release.
Comment 2 Wei Yan CLA 2010-05-16 22:48:49 EDT
*** Bug 312906 has been marked as a duplicate of this bug. ***