docs/module-vFS.html
Use the vFS to handle files
Source:
Source:
Add a file to the vFS
doc.addFileToVFS("someFile.txt", "BADFACE1");
| Name | Type | Description |
|---|---|---|
filename | string |
The name of the file which should be added.
|
| filecontent | string |
The content of the file.
|
Type jsPDF
Source:
Check if the file exists in the vFS
doc.existsFileInVFS("someFile.txt");
| Name | Type | Description |
|---|---|---|
Possible | string |
filename in the vFS.
|
Type boolean
Source:
Get the file from the vFS
doc.getFileFromVFS("someFile.txt");
| Name | Type | Description |
|---|---|---|
The | string |
name of the file which gets requested.
|
Type string