ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / PDF Reader 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
Saves the content of a PDF Reader to a file.
Example
// Save file
sFileName is string = "C:\temp\MyFile.pdf"
 
PDFReaderSave(PDF_MyPDFReader, sFileName)
 
IF ErrorOccurred THEN
Error(StringBuild("The %1 file was not saved.", ...
sFileName), ErrorInfo())
RETURN
END
Syntax
<Result> = PDFReaderSave(<PDF Reader control> [, <File path>])
<Result>: Boolean
  • True if the file has been saved,
  • False otherwise.
<PDF Reader control>: Control name
Name of PDF Reader control to use.
<File path>: Optional character string
Full path and name of "PDF" file.

If this parameter is specified, the file is saved at the specified location (the existing file is overwritten if necessary).
  • If saved successfully, the "PDF" file remains open.
  • If the "PDF" document is saved using a different path from the original ("Save as"), the original file is closed, the PDF is saved in the new file, and the new "PDF" file remains open.
If this parameter is not specified, the path of the PDF file currently displayed in the PDF Reader control will be used. If this path does not exist, an error is displayed.
Business / UI classification: UI Code
Component: wd290obj.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/02/2023

Send a report | Local help