I\'ve just started to work with iText (5.4.2, latest version) and there are two things that I haven\'t yet managed to get straight.
Document d = new Document(PageSize.A4.rotate(), 10f, 10f, 10f, 0f);
this worked for me i just hacked off some bits from the one above