# vFS

Use the vFS to handle files

Source:
  - modules/vfs.js, line 9

### Methods

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

Source:
  - modules/vfs.js, line 40

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 25

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 57

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