Interface FixedPdfRenderer
- All Known Implementing Classes:
FixedRenderer
固定版面 PDF 公開入口,與流式 ReportDocument/ReportArtifact 無關。
共用已驗證的字型登錄與 PDFBox runtime;renderer 可跨執行緒重用。
- Since:
- 4.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum只處理幾何排版異常;字型、資產、容量與生成錯誤仍拒絕。 預設 OUTPUT_WITH_WARNINGS;只有明確選用 STRICT 才拒絕幾何異常。static final record平移校準以 mm,作用於全部輸出元素;不更改紙張尺寸。overlayOnly 略過 STATIC 層。static final record -
Method Summary
Modifier and TypeMethodDescriptionstatic FixedPdfRenderercreate(ReportFonts fonts) render(FixedDocument document, FixedPdfRenderer.Options options, String filename) 產生可保存的中性 PDF 產物;呼叫端須 close,filename 會正規化。render(FixedDocument document, OutputStream out, FixedPdfRenderer.Options options) 完整產生成功後才寫入 out,不關閉 out。寫出階段 I/O 失敗時呼叫端須丟棄部分輸出。 取消或執行緒中斷丟出 CancellationException;不保留或授權業務資料。
-
Method Details
-
create
-
render
FixedPdfRenderer.Result render(FixedDocument document, OutputStream out, FixedPdfRenderer.Options options) 完整產生成功後才寫入 out,不關閉 out。寫出階段 I/O 失敗時呼叫端須丟棄部分輸出。 取消或執行緒中斷丟出 CancellationException;不保留或授權業務資料。 -
render
產生可保存的中性 PDF 產物;呼叫端須 close,filename 會正規化。
-