PrintPaperHandling duplex hint into a Windows printer DEVMODE.function SetPdfPrintPaperHandlingDevMode(var DevMode: TDeviceMode; PrintPaperHandling: TPrintPaperHandling): Boolean;
SetPdfPrintPaperHandlingDevModeは、PDF viewer-preference の両面印刷 enum を、GDI 印刷ジョブで使用される Windows プリンタードライバーのフィールドへ変換します
phSimplex sets DEVMODE.dmDuplex to DMDUP_SIMPLEX.phDuplexFlipShortEdge sets DEVMODE.dmDuplex to DMDUP_HORIZONTAL.phDuplexFlipLongEdge sets DEVMODE.dmDuplex to DMDUP_VERTICAL.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);