ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / PDF functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Opens a PDF document and loads it in a pdfDocument variable.
Example
MonPDF is pdfDocument = PDFOpen("test.pdf")

IF ErrorOccurred() THEN
   Error(ErrorInfo())
   RETURN
END
Syntax
<Result> = PDFOpen(<Document source> [, <Password>])
<Result>: pdfDocument variable
pdfDocument variable corresponding to the specified PDF document.
In the event of an error, variable ErrorOccurred is set to True and function ErrorInfo is used to find out the cause of the error.
<Document source>: Type corresponding to the source
Corresponds to one of the following elements:
  • Full or relative path of the PDF file to be opened (up to 260 characters).
  • Name of the Buffer containing the PDF document.
  • Name of the memo item containing the PDF document. This parameter is of the form: <Fichier de données>.<Rubrique>.
<Password>: Optional string or Secret string
Password to open the PDF file to use (if the file is protected by a password).
New in version 2025
Secret strings: If you use the secret string vault, the type of secret string used for this parameter must be "ANSI or Unicode string".
To learn more about secret strings and how to use the vault, see Secret string vault.
Remarks
AndroidAndroid Widget Starting with version 28, this function is not supported by 32-bit ARM processors. New PDF features require a 64-bit execution mode.
If an application is to be run on devices with 32-bit ARM processors, it must be generated with WINDEV Mobile 27.
Business / UI classification: Business Logic
Component: wd300wdpdf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/16/2025

Send a report | Local help