hi,
i
tried identity_h: the only difference is that ghostscript doesn't print blocks
instead of the special-characters. now on acrobat reader and ghostscript the
special characters don't apear and the alignment fails. i know: this is not a
problem of the alignment - but using justify the problem becomes
visible.
is
there a possibility to get those characters? the embedded font should contain
it.
thanks,
stephan
-----Urspr�ngliche Nachricht-----
Von: Paulo Soares [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 3. Mai 2004 15:40
An: Pelikan Stephan
Cc: [EMAIL PROTECTED]
Betreff: RE: [iText-questions] ColumnText cuts text using justify-alignmentThe problem is that the Cp1252 code page doesn't have all the characters. Use the encoding BaseFont.IDENTITY_H instead.Best Regards,Paulo Soares
From: Pelikan Stephan [mailto:[EMAIL PROTECTED]
Sent: Monday, May 03, 2004 2:32 PM
To: Paulo Soares
Cc: [EMAIL PROTECTED]
Subject: AW: [iText-questions] ColumnText cuts text using justify-alignmenthello,the column and template boundaries are equal (two vertical lines). but I found the cause of the problem which leads to other questions:the are special-characters (upper and lower " and long - characters created by ms-word and filled in by copy/paste) in the text which did not apprear and seem to give wrong font-messures and confuse the justify alignment. I removed them and the text appears correct.the other questions: I embedded the ttf-fontFont pdfFont = new Font(BaseFont.createFont("arial.ttf", BaseFont.WINANSI, BaseFont.EMBEDDED), 28);but on a ghostscript-rendered preview appear blocks instead of special-characters and the acrobe reader (see top-description) doesn't show them. both representations are wrong. I though this should not be possibly by embedding the font? the used characters exist in the ttf-font. so why they aren't shown as normal characters?the text is given by the user, so I cannot prevent special-characters. how could I handle this problem?best regards,stephan pelikan-----Urspr�ngliche Nachricht-----
Von: Paulo Soares [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 3. Mai 2004 14:53
An: Pelikan Stephan; [EMAIL PROTECTED]
Betreff: RE: [iText-questions] ColumnText cuts text using justify-alignmentIt has nothing to with the alignment. Check that the column boundaries are inside the template.Best Regards,Paulo Soares
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pelikan Stephan
Sent: Monday, May 03, 2004 8:33 AM
To: [EMAIL PROTECTED]
Subject: [iText-questions] ColumnText cuts text using justify-alignmentHi,I'm using a ColumnText. When I set alignment to justify some lines are cut off at the right end:What I do:PdfTemplate template = cb.createTemplate(right - left, bottom - top);
ColumnText ct = new ColumnText(template);
ct.addText(new Phrase(content.getText(), pdfFont));
ct.setLeading(Float.parseFloat(size));
ct.setYLine(bottom - top);
ct.setAlignment(com.lowagie.text.Element.ALIGN_JUSTIFIED)ct.setColumns(leftPoints, rightPoints);
ct.go();where leftPoints and rightPoints are float-arrays of 2 floats.What's wrong? Is this a bug or a known behaviour? Any suggestions for a workaround?Thanks,Stephan
