Returns
APIResponse<boolean>:result === trueindicates clearing succeeded
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Clear handwriting elements in a DOC file.
static clearMarkElements(filePath: string, page: number): Promise<APIResponse<boolean>>;
| Parameter | Type | Description |
|---|---|---|
filePath | string | DOC file path |
page | number | Page index (starts from 0) |
APIResponse<boolean>: result === true indicates clearing succeededimport { PluginFileAPI } from 'sn-plugin-lib';
/**
* Clear a page mark element example.
*/
export async function exampleClearMarkElements() {
const filePath = '/storage/emulated/0/Note/demo.pdf';
const page = 1;
const res = await PluginFileAPI.clearMarkElements(filePath, page);
if (!res.success) {
throw new Error(res.error?.message ?? 'clearMarkElements call failed');
}
return res.result;
}