#CS ------------------------------------------------------------------------ AutoIt Version 3.3.12.0 Auteur : Francis BOEUF (c) 2014 Prog : < test codebarre > mini programme de création d'un fichier PDF avec un code-barre l'UDF utilisé pour la création du PDF est celle de taietel "MPDF_UDF.au3", modifiée pour y ajouter les polices "3OF9.TTF" et "Code128.TTF" #CE ------------------------------------------------------------------------- #include "MPDF_UDF_CB.au3" _OpenAfter(True) _SetUnit($PDF_UNIT_CM) _SetPaperSize("A4") _SetZoomMode($PDF_ZOOM_FULLPAGE) _SetOrientation($PDF_ORIENTATION_PORTRAIT) _SetLayoutMode($PDF_LAYOUT_CONTINOUS) _InitPDF("Test CB.pdf") ;chargement polices _LoadFontTT("Arial", $PDF_FONT_ARIAL, $PDF_FONT_NORMAL) _LoadFontTT("Arialb", $PDF_FONT_ARIAL, $PDF_FONT_BOLD) _LoadFontTT("Ariali", $PDF_FONT_ARIAL, $PDF_FONT_ITALIC) _LoadFontTT("Arialbi", $PDF_FONT_ARIAL, $PDF_FONT_BOLDITALIC) _LoadFontTT("3of9Barcode", $PDF_FONT_3OF9, $PDF_FONT_NORMAL); police 3OF9.TTF _LoadFontTT("C128Barcode", $PDF_FONT_C128, $PDF_FONT_NORMAL); police C128.TTF _BeginPage() _DrawText(1, 28, "*BONJOUR*", "3of9Barcode", 26, $PDF_ALIGN_LEFT, 0) _DrawText(1, 27, "*BONJOUR*", "C128Barcode", 26, $PDF_ALIGN_LEFT, 0) _DrawText(1, 26, "*BONJOUR*", "Arial", 8, $PDF_ALIGN_LEFT, 0) _DrawText(1, 25.5, "*BONJOUR*", "Ariali", 8, $PDF_ALIGN_LEFT, 0) _DrawText(1, 25, "*BONJOUR*", "Arialb", 8, $PDF_ALIGN_LEFT, 0) _DrawText(1, 24.5, "*BONJOUR*", "Arialbi", 8, $PDF_ALIGN_LEFT, 0) _DrawText(1, 22, "*0123456789*", "3of9Barcode", 26, $PDF_ALIGN_LEFT, 0) _DrawText(1, 21, "*0123456789*", "C128Barcode", 26, $PDF_ALIGN_LEFT, 0) _DrawText(1, 20, "*0123456789*", "Arial", 8, $PDF_ALIGN_LEFT, 0) _EndPage() _ClosePDFFile()