PDFiumPas 文档

SetPdfPrintMode 函数

此 API 条目保留标识符、签名、代码块和 PDF 术语的原始形式。
组件: TPdf  ·  单元: PDFium
Selects the print backend used by FPDF_RenderPage when feeding the platform printer.

语法

function SetPdfPrintMode(PrintMode: TPdfPrintMode): Boolean;

说明

Selects the print backend used by FPDF_RenderPage when feeding the platform printer.

Windows 上默认值为 prEmf;在 PostScript 设备上使用 prPostScript* 可避免重复光栅化。

Wraps the corresponding PDFium API and exposes it as a TPdf instance member so consumers do not have to manage FPDF_DOCUMENT handles directly.

备注

示例

begin
  TPdf.SetPdfPrintMode;
end;

另请参阅

SetPdfPrintPaperHandlingDevMode