PDFium Delphi Component Docs

SetPdfPrintPaperHandlingDevMode 함수

컴포넌트: TPdf  ·  유닛: PDFium
PDF PrintPaperHandling 양면 인쇄 힌트를 Windows 프린터 DEVMODE로 매핑합니다

Syntax

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

Description

SetPdfPrintPaperHandlingDevMode는 PDF viewer-preference 양면 인쇄 enum을 GDI 인쇄 작업이 쓰는 Windows 프린터 드라이버 필드로 변환합니다

매핑된 값에 대해서는 DEVMODE.dmFields에 DM_DUPLEX를 표시하고 True를 반환합니다. phUndefined이면 False를 반환하고 넘겨받은 DEVMODE를 그대로 둡니다

Example

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

See Also

PrintPaperHandling, PrintCopies, PrintScaling, SetPdfPrintMode