Cannot figure out how to use PDFBox

后端 未结 2 839
我在风中等你
我在风中等你 2021-01-04 23:02

I am trying to create a PDF file with a lot of text boxes in the document and textfields from another class. I am using PDFBox.

OK, creating a new file is easy and w

2条回答
  •  轮回少年
    2021-01-04 23:41

    This implementation is deprecated.

    PDPageContentStream title1 = new PDPageContentStream(doc, page, true, true);
    

    The new implementation would be

    PDPageContentStream title1 = new PDPageContentStream(doc, page, PDPageContentStream.AppendMode.OVERWRITE, true);
    

提交回复
热议问题