ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV and WEBDEV 2024 feature!
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.
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 (non vectorial).
Remark: If the PDF file does not exist or if the page does not exist, the Image variable returned will be invalid. The ErrorOccurred variable will correspond to True.
<PDF document>: pdfDocument variable
Name of the pdfDocument variable that corresponds to the PDF document to use.
<Page number>: Integer
Number of the page to extract.
<Width>: Optional integer
Width at which the page must be rasterized.
If this parameter is not specified (or if this parameter is equal to 0), the height and width will be calculated from the page size (in millimeters), by considering a DPI set to 300.
<Height>: Optional integer
Height at which the page must be rasterized.
If this parameter is not specified (or if this parameter is equal to 0), the height and width will be calculated from the page size (in millimeters), by considering a DPI set to 300.
<Password>: Optional character string
Password of the PDF document.
Business / UI classification: Business Logic
Component: wd290wdpdf.dll
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/10/2024

Send a report | Local help