PDFium Component Docs

SetPdfPrintPaperHandlingDevMode 関数

この API エントリでは識別子、シグネチャ、コードブロック、PDF 用語を元の表記のまま保持します。
コンポーネント: TPdf  ·  ユニット: PDFium
Maps a PDF PrintPaperHandling duplex hint into a Windows printer DEVMODE.

構文

function SetPdfPrintPaperHandlingDevMode(var DevMode: TDeviceMode; PrintPaperHandling: TPrintPaperHandling): Boolean;

説明

SetPdfPrintPaperHandlingDevModeは、PDF viewer-preference の両面印刷 enum を、GDI 印刷ジョブで使用される Windows プリンタードライバーのフィールドへ変換します

For mapped values the function also marks DM_DUPLEX in DEVMODE.dmFields and returns True. For phUndefined it returns False and leaves the supplied DEVMODE unchanged.

if SetPdfPrintPaperHandlingDevMode(DevMode, Pdf1.PrintPaperHandling) then
  ApplyPrinterDevMode(DevMode);

関連項目

PrintPaperHandling, PrintCopies, PrintScaling, SetPdfPrintMode