PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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
Saves the content of a pdfDocument variable in a".PDF" file.
Versions 250064 and later
Versions 25 and later
iPhone/iPad From version 25 Update 1 (250064), this function is available for iPhone/iPad applications.
Android Widget From version 25 Update 1 (250064), this function is available in Android widget mode.
Android From version 25 Update 1 (250064), this function is available for Android applications.
WINDEVLinux From version 25 Update 1 (250064), this function is available for WINDEV applications in Linux.
WEBDEV - Server codeLinux From version 25 Update 1 (250064), this function is available for WEBDEV sites in Linux.
New in version 25
iPhone/iPad From version 25 Update 1 (250064), this function is available for iPhone/iPad applications.
Android Widget From version 25 Update 1 (250064), this function is available in Android widget mode.
Android From version 25 Update 1 (250064), this function is available for Android applications.
WINDEVLinux From version 25 Update 1 (250064), this function is available for WINDEV applications in Linux.
WEBDEV - Server codeLinux From version 25 Update 1 (250064), this function is available for WEBDEV sites in Linux.
iPhone/iPad From version 25 Update 1 (250064), this function is available for iPhone/iPad applications.
Android Widget From version 25 Update 1 (250064), this function is available in Android widget mode.
Android From version 25 Update 1 (250064), this function is available for Android applications.
WINDEVLinux From version 25 Update 1 (250064), this function is available for WINDEV applications in Linux.
WEBDEV - Server codeLinux From version 25 Update 1 (250064), this function is available for WEBDEV sites in Linux.
New in version 250064
Versions 25 and later
iPhone/iPad From version 25 Update 1 (250064), this function is available for iPhone/iPad applications.
Android Widget From version 25 Update 1 (250064), this function is available in Android widget mode.
Android From version 25 Update 1 (250064), this function is available for Android applications.
WINDEVLinux From version 25 Update 1 (250064), this function is available for WINDEV applications in Linux.
WEBDEV - Server codeLinux From version 25 Update 1 (250064), this function is available for WEBDEV sites in Linux.
New in version 25
iPhone/iPad From version 25 Update 1 (250064), this function is available for iPhone/iPad applications.
Android Widget From version 25 Update 1 (250064), this function is available in Android widget mode.
Android From version 25 Update 1 (250064), this function is available for Android applications.
WINDEVLinux From version 25 Update 1 (250064), this function is available for WINDEV applications in Linux.
WEBDEV - Server codeLinux From version 25 Update 1 (250064), this function is available for WEBDEV sites in Linux.
iPhone/iPad From version 25 Update 1 (250064), this function is available for iPhone/iPad applications.
Android Widget From version 25 Update 1 (250064), this function is available in Android widget mode.
Android From version 25 Update 1 (250064), this function is available for Android applications.
WINDEVLinux From version 25 Update 1 (250064), this function is available for WINDEV applications in Linux.
WEBDEV - Server codeLinux From version 25 Update 1 (250064), this function is available for WEBDEV sites in Linux.
Versions 25 and later
iPhone/iPad From version 25 Update 1 (250064), this function is available for iPhone/iPad applications.
Android Widget From version 25 Update 1 (250064), this function is available in Android widget mode.
Android From version 25 Update 1 (250064), this function is available for Android applications.
WINDEVLinux From version 25 Update 1 (250064), this function is available for WINDEV applications in Linux.
WEBDEV - Server codeLinux From version 25 Update 1 (250064), this function is available for WEBDEV sites in Linux.
New in version 25
iPhone/iPad From version 25 Update 1 (250064), this function is available for iPhone/iPad applications.
Android Widget From version 25 Update 1 (250064), this function is available in Android widget mode.
Android From version 25 Update 1 (250064), this function is available for Android applications.
WINDEVLinux From version 25 Update 1 (250064), this function is available for WINDEV applications in Linux.
WEBDEV - Server codeLinux From version 25 Update 1 (250064), this function is available for WEBDEV sites in Linux.
iPhone/iPad From version 25 Update 1 (250064), this function is available for iPhone/iPad applications.
Android Widget From version 25 Update 1 (250064), this function is available in Android widget mode.
Android From version 25 Update 1 (250064), this function is available for Android applications.
WINDEVLinux From version 25 Update 1 (250064), this function is available for WINDEV applications in Linux.
WEBDEV - Server codeLinux From version 25 Update 1 (250064), this function is available for WEBDEV sites in Linux.
Example
MyPDF is pdfDocument = "Test.pdf"
 
FOR EACH DocumentPage OF MyPDF.Page
Trace(DocumentPage.Height)
END
 
PDFSave(MyPDF, "passwordtest.pdf")
Syntax
<Result> = PDFSave(<PDF to use> , <Name and path of PDF file> [, <Password>])
<Result>: Boolean
  • True if saved successfully,
  • False otherwise. To get the details of the error, use ErrorInfo.
<PDF to use>: pdfDocument variable
Name of the pdfDocument variable that corresponds to the PDF document to save.
<Name and path of PDF file>: Character string
Name and full (or relative) path of PDF file to create.
<Password>: Optional character string
New password to open the PDF file.
  • If this parameter corresponds to an empty string (""), the PDF document will have no password.
  • If this parameter is not specified, the PDF document will keep its password if it has one.
AndroidAndroid Widget iPhone/iPad This parameter is not available.
Related Examples:
PDFDocument type Unit examples (WINDEV): PDFDocument type
[ + ] This example shows how to use the pdfDocument WLanguage type.
This type is used to handle PDF files by programming.
You can:
- Retrieve the details of the PDF file (Created, Modified, Author, etc.)
- Retrieve the text of the PDF file (page by page and line by line)
- List / Add / Delete attachments
Business / UI classification: Business Logic
Component: wd270wdpdf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment