代码之家  ›  专栏  ›  技术社区  ›  Krishna Kumar

在java中使用iText库时如何编写页眉

  •  4
  • Krishna Kumar  · 技术社区  · 15 年前

    2 回复  |  直到 15 年前
        1
  •  0
  •   Allan    14 年前

    从…起 http://www.docjar.org/docs/api/com/lowagie/text/Document.html

    public Document(Rectangle pageSize,
    float marginLeft,
    float marginRight,
    float marginTop,
    float marginBottom) 
    

    例如:

    final Document document = new Document(PageSize.A4, 50, 50, 165, 50);