# FileSpecification Class

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

- Product: Adobe PDF Library 21
- Language: .NET Framework
- Version: APDFL21.0.0PlusP1e
- HTML page: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/FileSpecification
- Version index: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/llms.txt

```csharp
class FileSpecification : SystemIDisposable
```

**Namespace:** `Datalogics::PDFL`

**Inherits from:** `SystemIDisposable`

## 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/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/LaunchAction.md), [`RemoteGoToAction`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/RemoteGoToAction.md)

**Uses types:** [`Document`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Document.md), [`PDFObject`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/PDFObject.md)

## Constructors

### FileSpecification

```csharp
Datalogics.PDFL.FileSpecification.FileSpecification(Document doc, string path)
```

*constructor*

**Parameters**

- `doc` ([`Document`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/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.

## Properties

### PDFObject

```csharp
PDFObject Datalogics.PDFL.FileSpecification.PDFObject { get; }
```

Retrieve the PDFObject representation of this object.

### Path

```csharp
string Datalogics.PDFL.FileSpecification.Path { get; }
```

Gets the path to the file referenced.

## Methods

### Dispose

```csharp
void Datalogics.PDFL.FileSpecification.Dispose()
```

**Returns:** `void`

### ToString

```csharp
override string Datalogics.PDFL.FileSpecification.ToString()
```

**Returns:** `override 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.
