Bug 147639 PDF output generated from document and report are different
Steps to reproduce: 1.Run the attached report with "run?" and "__format=pdf" 2.Run the attached report with "frameset" and "__format=pdf" Expected result: Two pdf output should be the same Actual result: 1.The page number of two output files are different 2.Page 12-13 of two output files are different
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/util/HTML2Content.java
textTypeMapping.put( IForeignContent.HTML_TYPE, TextParser.TEXT_TYPE_HTML );
		textTypeMapping.put( IForeignContent.TEXT_TYPE, TextParser.TEXT_TYPE_PLAIN );
		textTypeMapping.put( IForeignContent.UNKNOWN_TYPE, TextParser.TEXT_TYPE_AUTO );
	}
	
	public HTML2Content( String rootPath)
	{
		this.rootPath = rootPath;
	}
	
	
	public void html2Content( IForeignContent foreign)
	{
		processForeignData(foreign);
	}
	
	protected void processForeignData( IForeignContent foreign )
	{
		HashMap styleMap = new HashMap( );
		HTMLStyleProcessor htmlProcessor = new HTMLStyleProcessor( this.rootPath );
		Object rawValue = foreign.getRawValue();
		Document doc = null;
		if ( null != rawValue )
		{
			doc = new TextParser( ).parse( foreign.getRawValue( ).toString( ), 
					( String )textTypeMapping.get( foreign.getRawType( ) ) );	
		}
		
		Element body = null;
		if ( doc != null )