PDFium Delphi Component Docs

SetPdfPrintPaperHandlingDevMode Fonction

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

Syntaxe

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é

Exemple

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

Voir aussi

PrintPaperHandling, PrintCopies, PrintScaling, SetPdfPrintMode