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.
Example
MyPDF is pdfDocument = "Test.pdf"
 
FOR EACH DocumentPage OF MyPDF.Page
Trace(DocumentPage.Height)
END
 
MyPDF.Save("passwordtest.pdf")
Syntax
<Result> = <PDF to save>.Save(<Name and path of the PDF file> [, <Password>])
<Result>: Boolean
  • True if saved successfully,
  • False otherwise. To get more details on the error, use ErrorInfo.
<PDF to save>: pdfDocument variable
Name of the pdfDocument variable that corresponds to the PDF document to save.
<Name and path of the 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.
Business / UI classification: Business Logic
Component: wd280wdpdf.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment