ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Your version: 01F150038E (WINDEV 15)

This page concerns the 2024 + version of WINDEV and WEBDEV. Update your version of WINDEV.
The content of this page has been updated to version 2024.  See documentation 2024 now.
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
<pdfDocument variable>.ExtractPage (Function)
In french: <Variable pdfDocument>.ExtraitPage
Extracts a page from a PDF file in a variable of type Image.
Versions 25 and later
Linux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV websites in Linux.
Versions 26 and later
WEBDEV - Server codeWindows This function is now available for WEBDEV websites in Windows.
Example
// Extracts page 3 from the text.pdf file
MyPDF is pdfDocument = PDFOpen("test.pdf")
MyImage is Image = MyPDF.ExtractPage(3)
Syntax
<Result> = <PDF document>.ExtractPage(<Page number> [, <Width> [, <Height> [, <Password>]]])
<Result>: Image (image variable)
Image variable that contains the image of the extracted page. The returned image is a raster image.
Remark: If the PDF or the page does not exist, the Image variable returned will be invalid. The ErrorOccurred variable will be set to True.
<PDF document>: pdfDocument variable
Name of the pdfDocument variable that corresponds to the PDF document to be used.
<Page number>: Integer
Number of the page to be extracted.
<Width>: Optional integer
Width at which the page is to be rasterized.
If this parameter is not specified (or is set to 0), the height and width will be calculated from the page size (in millimeters), using a DPI of 300.
<Height>: Optional integer
Height at which the page is to be rasterized.
If this parameter is not specified (or is set to 0), the height and width will be calculated from the page size (in millimeters), using a DPI of 300.
<Password>: Optional character string
Password of the PDF document.
Business / UI classification: Business Logic
Component: wd290pdf.dll
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/26/2024

Send a report | Local help