PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV, WINDEV Mobile 25 feature!
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
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
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 (with quotes)
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 : wd250obj.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment