Bug 211978 [Automation][Acceptance]Exception is thrown out when preview report in PDF
Description: Exception is thrown out when preview report in PDF Test Date: 20071205 Test Build: BIRT2.3.0 DailyBuildv20071205 0800 Step to reproduce: 1. Use the report attached 2. Preview it in PDF Expect result: Report should be previewed without any exception Actual result: A StringIndexOUtOfBoundsException is thrown out
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFTextLM.java
return false;
				}
		}
		
		private void handleNext()
		{
			int freeSpace = PDFTextLM.this.getFreeSpace();
			
			if ( isNew || currentPos == chunk.getText().length() )
			{
				if (cg.hasMore())
				{
					chunk = cg.getNext();
					if (chunk == Chunk.HARD_LINE_BREAK)
					{
						FontHandler handler = new FontHandler(content, false, context.getFormat( ));
						Dimension d = new Dimension( 0,
								(int)(handler.getFontInfo().getWordHeight()*PDFConstants.LAYOUT_TO_PDF_RATIO));	
						IArea con = buildArea( "", content, handler.getFontInfo(), d);
						PDFTextLM.this.addSpaceHolder(con);
						PDFTextLM.this.newLine();
						currentPos = chunk.getText().length();
						vestigeIndex = -1;
						return;
					}
					if (!pdfTextWrapping)
					{
						
						String originalText = chunk.getText();
						int areaWidth = (int)(chunk.getFontInfo().getWordWidth(originalText)