Eric Summkeller wrote:
Any idea what I could do to fix this problem?

Look at the single line I changed in your code sample:

Codeexample:

Document document = new Document(PageSize.A4);
System.out.println("Tables");

try {
  PdfWriter.getInstance(document,
  new FileOutputStream("Test.pdf"));

  document.open();

  Paragraph paragraphA = new Paragraph();
  ParagraphA.add(new Phrase("TestA"));
  Paragraph paragraphB = new Paragraph();

paragraphB.add(new Phrase("\u00a0"));

  Paragraph paragraphC = new Paragraph();
  paragraphC.add(new Phrase("TestB"));

  PdfPTable table = new PdfPTable(1);
  PdfPCell cell = new PdfPCell();
  cell.addElement(paragraphA);
  cell.addElement(paragraphB);
  cell.addElement(paragraphC);
  cell.setRotation(90);
  table.addCell(cell);
document.add(table);
} catch (DocumentException de) {
  System.err.println(de.getMessage());
} catch (IOException ioe) {
  System.err.println(ioe.getMessage());
}

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to