ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / PDF functions
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
Opens a PDF document and loads it in a pdfDocument variable.
Example
MyPDF 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 an error occurs, the ErrorOccurred variable is set to True and ErrorInfo returns the details of the error.
<Document source>: Type corresponding to the source
Corresponds to one of the following elements:
  • Full or relative path of PDF file to open (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: <Data file> <Item>.
<Password>: Optional character string
Password to open the PDF file to use (if the file is protected by a password).
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: 12/15/2023

Send a report | Local help