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
PDFNumberOfPages (Function)
In french: PDFNombreDePages
Returns the total number of pages in a PDF file.
Example
NbPages is int
NbPages = PDFNumberOfPages("C:\temp\MonDocument.pdf")
Info("Nombre de pages du PDF : " + NbPages)
Syntax
<Result> = PDFNumberOfPages(<PDF file> [, <Password>])
<Result>: Integer
Total number of pages in the PDF file.
<PDF file>: Character string
Name and path of the PDF file to be analyzed.
<Password>: Optional string or Secret string
Password required to open the file if the PDF file is password protected.
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
Android 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 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/16/2025

Send a report | Local help