iText landscape orientation and positioning?

前端 未结 4 1760
名媛妹妹
名媛妹妹 2021-02-05 01:22

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.

  • Creating documents in landscap
4条回答
  •  温柔的废话
    2021-02-05 02:12

    You can use this example this is work for me

     Document document = new Document();
     document.setPageSize(PageSize.A4.rotate());
    

提交回复
热议问题