PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Converts a Word Processing document into a PDF file.
Note: This function is available for the applications run in 32-bit mode only.
WEBDEV - Server code Caution: This function is available in WEBDEV from WEBDEV 22 Update 2 level 2.
Example
// Exports a Document variable to PDF
d is Document = "text.docx"
IF DocToPDF(d, fExeDir() + [fSep] + "MyDoc.pdf") THEN
Info("Document converted to PDF")
END
// Exports the content of a Word Processing control to PDF
// Click code of "PDF export" button
DocToPDF(WP_MyDoc, fExeDir() + [fSep] + "wp.pdf")
Syntax
<Result> = DocToPDF(<Document to Convert> , <Name of PDF File>)
<Result>: Boolean
  • True if the PDF file was created.
  • False otherwise. To find out the error details, use ErrorInfo.
<Document to Convert>: Document variable or character string (with or without quotes)
Document to use. This document corresponds to:
  • the name of a Word Processing control.
  • a Document variable.
<Name of PDF File>: Character string (with quotes)
Name and full path of PDF file to create. The file is replaced by the new file if it already exists.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230wdpdf.dll
Minimum required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment