# FileSpecification Class

> Refers to the location of a PDF file within a file system.

- Product: Adobe PDF Library 18
- Language: Java
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/FileSpecification
- Version index: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/llms.txt

```java
class FileSpecification
```

**Namespace:** `com::datalogics::PDFL`

## Description

Refers to the location of a PDF file within a file system. The PDF file system is known more commonly as the file path name.

The reference can be either absolute, as in a complete path name, or relative to the current place in a directory structure.

**Referenced by:** [`LaunchAction`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/LaunchAction.md), [`RemoteGoToAction`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/RemoteGoToAction.md)

**Uses types:** [`Document`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Document.md), [`PDFObject`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/PDFObject.md)

## Constructors

### FileSpecification

```java
com.datalogics.PDFL.FileSpecification.FileSpecification(Document doc, String path)
```

*constructor*

**Parameters**

- `doc` ([`Document`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Document.md)): The document in which the file specification is created.
- `path` (`String`): The string corresponding to the path of the file to reference. It may be relative or absolute.

Creates a new file specification object.

## Methods

### delete

```java
synchronized void com.datalogics.PDFL.FileSpecification.delete(Boolean disposing)
```

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

```java
synchronized void com.datalogics.PDFL.FileSpecification.delete()
```

**Returns:** `synchronized void`

### finalize

```java
void com.datalogics.PDFL.FileSpecification.finalize()
```

*protected*

**Returns:** `void`

### getPDFObject

```java
PDFObject com.datalogics.PDFL.FileSpecification.getPDFObject()
```

**Returns:** [`PDFObject`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/PDFObject.md)

The underlying PDFObject for this FileSpecification.

Retrieve the PDFObject representation of this object.

### getPath

```java
String com.datalogics.PDFL.FileSpecification.getPath()
```

**Returns:** `String`

The file path as a string, which may be relative or absolute.

Gets the path to the file referenced.

### toString

```java
String com.datalogics.PDFL.FileSpecification.toString()
```

**Returns:** `String`

The path to the file referenced by this FileSpecification.

Returns a string representation of this FileSpecification. The returned value is the file path referenced by this specification.
