vFS

Use the vFS to handle files

Source:

Methods

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

Source:

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:

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:

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