public class PdfUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
pdf2Image(String pdfPath,
String descPath)
PDF 文件转单张图片
|
static List<String> |
pdf2Images(String filePath)
PDF 文件转多张图片(按页转)
|
static List<String> |
pdf2Images(String filePath,
String descPath)
PDF 文件转多张图片(按页转)
|
static void |
pdf2Img(String pdfPath,
String path,
float scale,
ImageFormatEnum imageFormat)
icepdf 方式pdf转图片
|
public static List<String> pdf2Images(String filePath)
filePath - pdf 文件路径public static List<String> pdf2Images(String filePath, String descPath)
filePath - pdf 文件路径descPath - 转换后图片存储路径public static void pdf2Image(String pdfPath, String descPath)
pdfPath - pdf 源文件descPath - 转换后图片存储路径public static void pdf2Img(String pdfPath, String path, float scale, ImageFormatEnum imageFormat) throws IOException, org.icepdf.core.exceptions.PDFException, org.icepdf.core.exceptions.PDFSecurityException
pdfPath - pdf文件路径path - 最终生成图片存储路径scale - 缩放比例imageFormat - 图片格式IOException - ioorg.icepdf.core.exceptions.PDFException - pfgorg.icepdf.core.exceptions.PDFSecurityException - pdfSecurityCopyright © 2020. All rights reserved.