Bug 154835 long text is truncated after page break in PDF report
Long text is truncated after auto page break in PDF report. No matter how long the text is, PDF only shows one line in the second page. Steps to reproduce: 1.new a report in designer. 2.insert a label, and ensure the text is long enough to exceed two page. 3.preview in PDF. Expected result: PDF shows all text. Actual result Text is truncated, PDF only shows one line in the second page
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFTextLM.java
for (int i = startIndex + 1; i < hyphenation.length(); i++) 
			{
				last = current;
				String pre = hyphenation.getHyphenText(startIndex, i);
				current = (int)(fi.getWordWidth(pre) * PDFConstants.LAYOUT_TO_PDF_RATIO) 
					+letterSpacing * pre.length();
				if (width > last && width <= current) 
				{
					return i-1;
				}
			}
			return hyphenation.length() - 1;
		}
		
		/**
		 * Gets the reverse text if the run direction is RtL,
		 * If the run direction is LtR, the text keeps the same.
		 * @param text						the original text.
		 * @return							the reverse text.
		 */
		private String getReverseText(String text)
		{
			if (chunk.getRunDirection() == Bidi.DIRECTION_LEFT_TO_RIGHT)
			{
				return text;
			}
			else
			{
				return flip(text);
			}