2
我有一个pdf文件10页,我需要剪辑页面从2到5,并创建一个新的pdf。我正在做的是如下:剪辑和创建新的PDF与现有的PDF页码作为输入 - pdfbox
PDDocument pddDocument=PDDocument.load(new File("sample.pdf"));
PDFTextStripper textStripper=new PDFTextStripper();
String text = textStripper.getText(pddDocument).toString();
我只是阅读PDF文件并写入一个新的文件。如何以页码的形式上下剪辑?请引导我?
谢谢哥们,它工作! – Santhucool