PDFiumPas 文件

SetPdfPrintMode 函式

此 API 條目保留識別符號、簽名、程式碼塊和 PDF 術語的原始形式。
元件: TPdf  ·  單元: PDFium
Selects the print backend used by FPDF_RenderPage when feeding the platform printer.

語法

function SetPdfPrintMode(PrintMode: TPdfPrintMode): Boolean;

說明

選擇 FPDF_RenderPage 在餵給平台印表機時使用的列印後端

Windows 上預設值為 prEmf;在 PostScript 裝置上使用 prPostScript* 可避免重複光柵化。

它包裝對應的 PDFium API,並將其作為 TPdf 例項成員暴露,讓使用者不必直接管理 FPDF_DOCUMENT 控制代碼

備註

範例

begin
  TPdf.SetPdfPrintMode;
end;

另請參閱

SetPdfPrintPaperHandlingDevMode