AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Procesador de texto
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
// 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 get more details on the error, use ErrorInfo.
<Document to convert>: Document variable or character string
Document to use. This document can correspond to:
  • a variable of type Document.
  • WINDEV a Word Processing control.
<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
  • OpenType (.otf) fonts are not supported by the PDF generation.
  • Watermarks are not supported by the PDF generation.
Component: wd290wdpdf.dll
Versión mínima requerida
  • Versión 22
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 02/05/2023

Señalar un error o enviar una sugerencia | Ayuda local