PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
PDFExtractPage (Function)
In French: PDFExtraitPage
Returns an Image type variable containing a page from a PDF file.
Example
// Extracts page 3 from the text.pdf file
MyImage is Image = PDFExtractPage("text.pdf", 3)
Syntax
<Result> = PDFExtractPage(<File Path> , <Page Number> [, <Width> [, <Height> [, <Password>]]])
<Result>: Image (image variable)
Image variable containing the image of extracted page. The returned image is a raster image (non vectorial).
Note: 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.
<File Path>: Character string (with quotes)
Path of PDF file from which the page will be extracted.
<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 (with quotes)
Password of PDF document.
Components
WINDEVReports and Queries wd230pdf.dll
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment