PDFium Delphi Component Docs

SetPdfPrintPaperHandlingDevMode Fonction

Composant: TPdf  ·  Unit: PDFium
Mappe un indice duplex PrintPaperHandling PDF vers un DEVMODE d’imprimante Windows

Syntax

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

Description

SetPdfPrintPaperHandlingDevMode convertit l’énumération duplex de préférence de visionneuse PDF en champs de pilote d’imprimante Windows utilisés par les travaux d’impression GDI

Pour les valeurs mappées, la fonction marque aussi DM_DUPLEX dans DEVMODE.dmFields et renvoie True. Pour phUndefined, elle renvoie False et laisse le DEVMODE fourni inchangé

Example

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

See Also

PrintPaperHandling, PrintCopies, PrintScaling, SetPdfPrintMode