Class PdfSupport
java.lang.Object
io.leandev.appfuse.report.internal.PdfSupport
選用的 PDFBox 相依:確認存在後才載入 internal.pdf 的類別
本類別本身不引用 PDFBox 型別;internal.pdf 的類別只在確認之後才被載入,缺少 PDFBox 時得到指引明確的例外,
而不是 NoClassDefFoundError。
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReportRenderercreateRenderer(ReportFonts fonts) 建立 PDF rendererstatic ReportArtifactextractSubset(FileStorage storage, String partition, String fileId, ReportPages pages) 從已保存的 PDF 擷取頁面static voidinspectFonts(ReportFonts fonts) 檢查全部字型;見ReportFonts.Builder#build()static void
-
Method Details
-
requirePdfBox
public static void requirePdfBox()- Throws:
IllegalStateException- 沒有 PDFBox,或版本不在[3.0.8,4.0.0)
-
inspectFonts
檢查全部字型;見ReportFonts.Builder#build() -
createRenderer
建立 PDF renderer -
extractSubset
public static ReportArtifact extractSubset(FileStorage storage, String partition, String fileId, ReportPages pages) 從已保存的 PDF 擷取頁面
-