ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 2025 feature!
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
Creates a new PDF document from individual pages extracted from an existing PDF file.
iPhone/iPad This function is available for iPhone/iPad applications only from version 2025 Update 1.
Example
MySourcePDF is pdfDocument = "C:\Temp\My_source_PDF.pdf"
// Extract pages 3, 10, 15 to 16 and 36
MyTargetPDF is pdfDocument = PDFExtract(MySourcePDF, "3,10,15-16,36")
IF ErrorOccurred THEN
	Error(ErrorInfo(errFullDetails))
	RETURN
END
PDFSave(MyTargetPDF, "C:\Temp\My_target_PDF.pdf")
Syntax
<Result> = PDFExtract(<Source PDF file> , <Pages to extract> [, <Password>])
<Result>: pdfDocument variable
pdfDocument variable corresponding to the new PDF file that contains the extracted page(s).
<Source PDF file>: String or pdfDocument variable
PDF file from which the page(s) are to be extracted. This parameter can correspond to: Path of the PDF file from which the page(s) are to be extracted.
<Pages to extract>: Character string
List of pages to extract. The individual pages to be extracted must be separated by a comma (","). To specify a set of pages, the first and last pages of the set must be separated by a hyphen ("-"). For example: "1-10, 15-18, 35"
<Password>: Optional character string
Password of the PDF document.
Component: wd300pdf.dll
Minimum version required
  • Version 2025
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/01/2025

Send a report | Local help