DOCUMENTATION EN LIGNE
DE WINDEVWEBDEV ET WINDEV MOBILE

Aide / WLangage / Fonctions WLangage / Fonctions standard / Fonctions de gestion des fichiers HTML
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaEtats et RequêtesCode Utilisateur (MCU)
WEBDEV
WindowsLinuxPHPWEBDEV - Code Navigateur
WINDEV Mobile
AndroidWidget AndroidiPhone/iPadWidget IOSApple WatchMac CatalystUniversal Windows 10 App
Autres
Procédures stockées
Convertit une chaîne HTML ou un buffer HTML en un buffer contenant un document PDF.
Exemple
sCodeHTML est une chaîne
// Convertit le code HTML en un document au format PDF
Mon_Doc_PDF est un Buffer = HTMLVersPDF(sCodeHTML)
Syntaxe
<Résultat> = HTMLVersPDF(<Texte au format HTML> [, <Format page> [, <Paramètres PDF>]])
<Résultat> : Chaîne de caractères
  • Buffer contenant le document PDF résultat de la conversion HTML.
  • Buffer vide en cas d'erreur. Pour plus de détails sur l'erreur, utilisez la fonction ErreurInfo.
<Texte au format HTML> : Chaîne de caractères
Texte à convertir.
<Format page> : Entier optionnel
Format des pages du document PDF généré :
iFormatPapier_10x14Papier 10 x 14 inch
iFormatPapier_11x17Papier 11 x 17 inch
iFormatPapier_A3Papier A3 (297 x 420 mm)
iFormatPapier_A4
(Valeur par défaut)
Papier A4 (210 x 297 mm)
iFormatPapier_A4PetitPetit papier A4 (210 x 297 mm)
iFormatPapier_A5A5 (148 x 20 mm)
iFormatPapier_AllemandLGLPapier continu 8.5 x 13 inch
iFormatPapier_AllemandSTDPapier continu 8.5 x 12 inch
iFormatPapier_B4Papier B4 (250 x 354 mm)
iFormatPapier_B5Papier B5 (182 x 257 mm)
iFormatPapier_ContinuAméricainPapier continu 14.875 x 11 inch
iFormatPapier_Enveloppe10Enveloppe #10 (4.125 x 9.5 inch)
iFormatPapier_Enveloppe11Enveloppe #11 (4.5 x 10.375 inch)
iFormatPapier_Enveloppe12Enveloppe #12 (4.5 x 4.5 x 11 inch)
iFormatPapier_Enveloppe14Enveloppe #14 (5 x 11.5 inch)
iFormatPapier_Enveloppe9Enveloppe #9 (3.875 x 8.875 inch)
iFormatPapier_EnveloppeB4Enveloppe B4 (250 x 353 mm)
iFormatPapier_EnveloppeB5Enveloppe B5 (176 x 250 mm)
iFormatPapier_EnveloppeB6Enveloppe B6 (176 x 125 mm)
iFormatPapier_EnveloppeC3Enveloppe C3 (324 x 458 mm)
iFormatPapier_EnveloppeC4Enveloppe C4 (229 x 324 mm)
iFormatPapier_EnveloppeC5Enveloppe C5 (162 x 229 mm)
iFormatPapier_EnveloppeC6Enveloppe C6 (114 x 162 mm)
iFormatPapier_EnveloppeC65Enveloppe C65 (114 x 229 mm)
iFormatPapier_EnveloppeDLEnveloppe DL (110 x 220 mm)
iFormatPapier_EnveloppeItalieEnveloppe 110 x 230 mm
iFormatPapier_EnveloppeMonarchEnveloppe 3.875 x 7.5 inch
iFormatPapier_EnveloppePersoEnveloppe 3.625 x 6.5 inch
iFormatPapier_ExécutifPapier exécutif (7.5 x 10.5 inch)
iFormatPapier_FolioPapier folio (8.5 x 13 inch)
iFormatPapier_GrandLivrePapier grand livre (17 x 11 inch)
iFormatPapier_LégalPapier légal (8.5 x 14 inch)
iFormatPapier_LettrePapier à lettre (8.5 x 11 inch)
iFormatPapier_LettrePetitPetit papier à lettre (8.5 x 11 inch)
iFormatPapier_NotePapier note (8.5 x 11 inch)
iFormatPapier_QuartoPapier quarto (215 x 275 mm)
iFormatPapier_RelevéPapier relevé (5.5 x 8.5 inch)
iFormatPapier_TabloïdePapier tabloïde (11 x 17 inch)
iFormatPapier_TailleCFeuille de taille C
iFormatPapier_TailleDFeuille de taille D
iFormatPapier_TailleEFeuille de taille E
<Paramètres PDF> : Variable de type pdfParamètre optionnel
Nom de la variable de type pdfParamètre décrivant toutes les options du document PDF à générer.
Classification Métier / UI : Code neutre
Composante : wd290std.dll
Version minimum requise
  • Version 28
Documentation également disponible pour…
Commentaires
Cliquez sur [Ajouter] pour publier un commentaire

Dernière modification : 21/07/2022

Signaler une erreur ou faire une suggestion | Aide en ligne locale