| FoxitPDFSDKforWeb v11.0.4 Archives Foxit PDF SDK for Web

Public Member Functions | List of all members
FileSpec Class Reference
PDF » common

## 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

  fileSpec | object - The file specifications object.
  fileSpec.fileName | String - 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

  name | string - 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

@2025 Foxit Software Incorporated. All rights reserved.