Bug 307321 BIRT Column page breaks do not respect page variables
When using an onPageEnd event to increment a page variable and a column page break on a table the html viewer recognizes the updated variable but if you export it to pdf the variable is not updated for every other page. See attached example.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/html/buffer/CachedHTMLPageBuffer.java
{
		if ( page != null )
		{
			IPageContent pc = (IPageContent) page.getContent( );
			pc.setPageNumber( context.getPageNumber( ) );
		}
	}
	public void flush( ) throws BirtException
	{
		
		if ( page != null )
		{
			context.getPageHintManager( ).addTableColumnHints( columnHints );
			context.getPageHintManager( ).generatePageRowHints( getTableKeys() );
			updatePageNumber();
			page.flush( );
			pageBreakEvent( );
			if ( !page.finished )
			{
				context.setPageNumber( context.getPageNumber( ) + 1 );
				context.setPageCount( context.getPageCount( ) + 1 );
			}
			generator.reset( );
			
			context.getPageHintManager( ).clearPageHint( );
			currentNode = null;
		}
	}
}