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.
static getMarkPages(filePath: string): Promise<APIResponse<number[]>>;
Parameters
| Parameter | Type | Description |
|---|
filePath | string | DOC file path |
Returns
Example
import { PluginFileAPI } from 'sn-plugin-lib';
/**
* Example: get mark page indices.
*/
export async function exampleGetMarkPages() {
const filePath = '/storage/emulated/0/Note/demo.pdf';
const res = await PluginFileAPI.getMarkPages(filePath);
if (!res.success) {
throw new Error(res.error?.message ?? 'getMarkPages call failed');
}
return res.result;
}