# vFS

Use the vFS to handle files

Source:
  - modules/vfs.js, line 11

### Methods

#### (inner) addFileToVFS(filename, filecontent) → {jsPDF}

Source:
  - modules/vfs.js, line 42

Add a file to the vFS

##### Example

    doc.addFileToVFS("someFile.txt", "BADFACE1");

##### Parameters:

Name | Type | Description
--- | --- | ---
`filename` | string | The name of the file which should be added.
`filecontent` | string | The content of the file.

##### Returns:

Type
  jsPDF

#### (inner) existsFileInVFS(Possible) → {boolean}

Source:
  - modules/vfs.js, line 27

Check if the file exists in the vFS

##### Example

    doc.existsFileInVFS("someFile.txt");

##### Parameters:

Name | Type | Description
--- | --- | ---
`Possible` | string | filename in the vFS.

##### Returns:

Type
  boolean

#### (inner) getFileFromVFS(The) → {string}

Source:
  - modules/vfs.js, line 59

Get the file from the vFS

##### Example

    doc.getFileFromVFS("someFile.txt");

##### Parameters:

Name | Type | Description
--- | --- | ---
`The` | string | name of the file which gets requested.

##### Returns:

Type
  string