|
@@ -25,8 +25,8 @@ public class PdfBoxUtil {
|
|
String filePath = "C:\\Users\\Administrator\\Desktop\\1.pdf";
|
|
String filePath = "C:\\Users\\Administrator\\Desktop\\1.pdf";
|
|
|
|
|
|
// 1、读取pdf文件
|
|
// 1、读取pdf文件
|
|
-// String content = readPdf(filePath);
|
|
|
|
-// System.out.println("读取内容:" + content);
|
|
|
|
|
|
+ String content = readPdf(filePath);
|
|
|
|
+ System.out.println("读取内容:" + content);
|
|
|
|
|
|
//2、获取pdf图片
|
|
//2、获取pdf图片
|
|
getImg(filePath);
|
|
getImg(filePath);
|