Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.supernote.com/llms.txt

Use this file to discover all available pages before exploring further.

Handwriting elements in DOC are not written directly into the DOC file, but into its corresponding mark file.
static clearMarkElements(filePath: string, page: number): Promise<APIResponse<boolean>>;
Parameters
ParameterTypeDescription
filePathstringDOC file path
pagenumberPage index (starts from 0)
Returns

Example

import { 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;
}