Bug 200524 Repeated Header in Table after Pagebreak in PDF
A duplicate header is shown in a table in a PDF-Report. The header is repeated in the case when the previous report element has the style 'pagebreak-after: avoid' and the following table does not fit completely on the page. The table together with the previous element is moved to the next page and the header is repeated where the original pagebreak would be. The expected result should be, that there is a pagebreak within the table. The attached report demonstrates the problem. The heading has the style 'pagebreak-after: avoid' and the following table does not fit completely on the page. Everything is moved to the next page and the header is repeated. Removing 'pagebreak: avoid' from the heading shows the result as it should be.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFBlockStackingLM.java
/***********************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Actuate Corporation - initial API and implementation
 ***********************************************************************/
package org.eclipse.birt.report.engine.layout.pdf;
import java.util.Iterator;
import java.util.LinkedList;
import org.eclipse.birt.report.engine.content.IContent;
import org.eclipse.birt.report.engine.content.IStyle;
import org.eclipse.birt.report.engine.css.engine.StyleConstants;
import org.eclipse.birt.report.engine.extension.IReportItemExecutor;
import org.eclipse.birt.report.engine.layout.IBlockStackingLayoutManager;
import org.eclipse.birt.report.engine.layout.area.IArea;
import org.eclipse.birt.report.engine.layout.area.impl.AbstractArea;
import org.eclipse.birt.report.engine.layout.content.BlockStackingExecutor;
import org.eclipse.birt.report.engine.layout.pdf.util.PropertyUtil;
import org.w3c.dom.css.CSSValue;
/**
 * represents block stacking layout manager
 * 
 */
public abstract class PDFBlockStackingLM extends PDFStackingLM