PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Converts a Word Processing document into a PDF file.
Example
// Export en PDF d'une variable de type Document
d is Document = "texte.docx"
IF DocToPDF(d, fExeDir() + [fSep] + "MonDoc.pdf") THEN
Info("Document converti en PDF")
END
// Export en PDF du contenu d'un champ Traitement de texte
// Code de clic du bouton "Export PDF"
DocToPDF(TT_MonDoc, fExeDir() + [fSep] + "tt.pdf")
Syntax
<Result> = DocToPDF(<Document to convert> , <Name of PDF file>)
<Result>: Boolean
  • True if the PDF file was created.
  • False otherwise. To get more details on the error, use ErrorInfo.
<Document to convert>: Document variable or character string
Document to use. This document can correspond to:
<Name of PDF file>: Character string
Name and full path of PDF file to create. The file is replaced with the new file if it already exists.
Remarks
  • otf" (OpenType) fonts are not supported by the PDF generation.
  • Watermarks are not supported by the PDF generation.
Component: wd280wdpdf.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment