totalPageArea = (ITextArea) AreaFactory .createBlockTextArea( c.getText( ), totalPageContent, 0, c.getText( ).length( ), c.getFontInfo( ), d );
totalPageArea = createBlockTextArea( c.getText( ), totalPageContent, c.getFontInfo( ), d );
	protected void resolveTotalPage( )	{		IContent con = context.getUnresolvedContent( );		if ( !( con instanceof IAutoTextContent ) )		{			return;		}		IAutoTextContent totalPageContent = (IAutoTextContent) con;		if ( null != totalPageContent )		{			NumberFormatter nf = new NumberFormatter( );			String patternStr = totalPageContent.getComputedStyle( )					.getNumberFormat( );			nf.applyPattern( patternStr );			totalPageContent.setText( nf.format( pageNumber ) );			ITextArea totalPageArea = null;			ChunkGenerator cg = new ChunkGenerator( totalPageContent );			if ( cg.hasMore( ) )			{				FontSplitter fontSplitter = new FontSplitter( cg.getNext( ),						totalPageContent );				if ( fontSplitter.hasMore( ) )				{					Chunk c = fontSplitter.getNext( );					Dimension d = new Dimension(							(int) ( c.getFontInfo( )									.getWordWidth( c.getText( ) ) * PDFConstants.LAYOUT_TO_PDF_RATIO ),							(int) ( c.getFontInfo( ).getWordHeight( ) * PDFConstants.LAYOUT_TO_PDF_RATIO ) );					totalPageArea = (ITextArea) AreaFactory							.createBlockTextArea( c.getText( ),									totalPageContent, 0,									c.getText( ).length( ), c.getFontInfo( ), d );				}			}			totalPageContent.setExtension( IContent.LAYOUT_EXTENSION,					totalPageArea );			emitter.startAutoText( totalPageContent );		}	}