ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Word Processing functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Converts a Word Processing document into a PDF file.
Example
// Exports the content of a Word Processing control to PDF
// Click code of "PDF export" button 
WP_MyDoc.ToPDF(fExeDir() + [fSep] + "wp.pdf")
Syntax
<Result> = <Word Processing control>.ToPDF(<Name of PDF file>)
<Result>: Boolean
  • True if the PDF file was created.
  • False otherwise. To get more details on the error, use ErrorInfo.
<Word Processing control>: Control name
Name of the Word Processing control to use.
<Name of PDF file>: Character string
Name and full path of the PDF file to be created. The file is replaced with the new file if it already exists.
Remarks
  • New in version 2025
    Links included in the document are preserved in the resulting PDF file.
  • OpenType (.otf) fonts are not supported by the PDF generation.
  • Watermarks are not supported by the PDF generation.
Component: wd300pdf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/20/2024

Send a report | Local help