FoxitPDFSDKforWeb  v10.0.4
Foxit PDF SDK for Web
All Classes Functions Variables Enumerations Enumerator Modules Pages
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
fileSpecobjectThe file specifications object.
fileSpec.fileNameStringThe 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
namestringThe 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
@2025 Foxit Software Incorporated. All rights reserved.