itext實現橫向pdf打印內容

Document doc = new Document(PageSize.A4); 這個是用PageSize.A4設置的是縱向A4大小 進入 com.itextpdf.text.PageSize的源碼 可以看到這些常量 調用PageSize.A4其實就是調用new RectangleReadOnly(595F, 842F); 那麼在定義Document時可以這樣 Document doc = ne
相關文章
相關標籤/搜索