FoxitPDFSDKforWeb  v10.0.0
Foxit PDF SDK for Web
FileSpec Class Reference

Public Member Functions

 constructor (fileSpec={})
 Create a File specification object. More...
 
 getFileName ()
 Get the file name. More...
 
 setFileName (name)
 Set the file name that exists in the full path or relative path. More...
 

Detailed Description

File specification object

Member Function Documentation

◆ constructor()

FileSpec::constructor (   fileSpec = {})
inline

Create a File specification object.

Parameters
fileSpecobject - The file specifications object.
fileSpec.fileNameString - The file name that exists in the full path or relative path. Such as: "C:\example.pdf" or "./example.pdf".It should not be an empty string.
Since
10.0.0

◆ getFileName()

FileSpec::getFileName ( )
inline

Get the file name.

Returns
string - The file name that exists in the full path or relative path.
Since
10.0.0

◆ setFileName()

FileSpec::setFileName (   name)
inline

Set the file name that exists in the full path or relative path.

Parameters
namestring - The file name that exists in the full path or relative path. Such as: "C:\example.pdf" or "./example.pdf".It should not be an empty string.
Since
10.0.0

Foxit Software Corporation Logo
@2024 Foxit Software Incorporated. All rights reserved.