@@ -0,0 +1,1279 @@
+package com.zzbest.tools.worddata;%0A%0Aimport java.io.IOException;%0A%0Aimport org.apache.pdfbox.pdmodel.PDDocument;%0Aimport org.apache.pdfbox.pdmodel.PDPage;%0Aimport org.apache.pdfbox.pdmodel.PDPageContentStream;%0Aimport org.apache.pdfbox.pdmodel.font.PDFont;%0Aimport org.apache.pdfbox.pdmodel.font.PDType1Font;%0A%0Apublic class PDFMergeUtil %7B%0A%0A%09public static final String file1 = %22C:%5C%5CTemp%5C%5CPDF(1).pdf%22;%0A%09public static final String file2 = %22C:%5C%5CTemp%5C%5CPDF(2).pdf%22;%0A%0A%09public static void main(String%5B%5D args) throws IOException %7B%0A%09%09PDDocument document = new PDDocument();%0A%09%09PDPage page = new PDPage();%0A%09%09document.addPage(page);%0A%0A%09%09PDFont font = PDType1Font.HELVETICA_BOLD;%0A%0A%09%09PDPageContentStream contentStream = new PDPageContentStream(document, page);%0A%0A%09%09String message = %22Hello.World------%22;%0A%09%09contentStream.beginText();%0A%09%09contentStream.setFont(font, 12);%0A%09%09contentStream.newLineAtOffset(100, 700);%0A%09%09for (int i = 0; i %3C 10000; i++) %7B%0A%09%09%09contentStream.showText(message + %22 %22 + Integer.toString(i));%0A%09%09%09System.out.println(message + %22 %22 + Integer.toString(i));%0A%09%09%09contentStream.newLineAtOffset(0, -15); // (x,y)%E5%9D%90%E6%A0%87%EF%BC%8C%E5%BD%93%E5%89%8D%E9%BC%A0%E6%A0%87%E7%9A%84%E4%BD%8D%E7%BD%AE%E4%B8%BA(0.0) -15%0A%09%09%09%09%09%09%09%09%09%09%09%09%09// %E8%A1%A8%E7%A4%BA%E9%BC%A0%E6%A0%87%E6%B2%BFY%E6%96%B9%E5%90%91%EF%BC%88%E5%90%91%E4%B8%8B%EF%BC%89%E7%A7%BB%E5%8A%A815%0A%09%09%7D%0A%09%09contentStream.endText();%0A%0A%09%09contentStream.close();%0A%0A%09%09document.save(%22c:%5C%5CTemp%5C%5CHello World.pdf%22);%0A%09%09document.close();%0A%09%7D%0A%0A%7D%0A

Create PDFCreateNewLine.java