我有一个巨大的 PDF,其中包含很少的页面作为图像。当我使用 Java 的 PDFDecoder API 时,它是否也能完美地读取 PDF 的这些扁平化 [图像] 页面?
我附上了我用来提取页面数据的代码片段以及这个问题 FYR。
// 解码页面
decodePdf.decodePage(page);
// 创建分组对象以对数据应用分组
PdfGroupingAlgorithms currentGrouping = decodePdf.getGroupingObject();
// Bounding box for the whole page
PdfPageData currentPageData = decodePdf.getPdfPageData();