vFS

使用 vFS 处理文件

Source:

Methods

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

Source:

向 vFS 添加文件

Example
doc.addFileToVFS("someFile.txt", "BADFACE1");
Parameters:
Name Type Description
filename string

要添加的文件的名称。

filecontent string

文件的内容。

Returns:
Type
jsPDF

(inner) existsFileInVFS(Possible) → {boolean}

Source:

检查文件是否存在于 vFS 中

Example
doc.existsFileInVFS("someFile.txt");
Parameters:
Name Type Description
Possible string

vFS 中的文件名。

Returns:
Type
boolean

(inner) getFileFromVFS(The) → {string}

Source:

从 vFS 获取文件

Example
doc.getFileFromVFS("someFile.txt");
Parameters:
Name Type Description
The string

请求的文件的名称。

Returns:
Type
string