Returns
APIResponse<number[]>:resultis the mark page index array
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get the page indices that have mark pages in a DOC file.
static getMarkPages(filePath: string): Promise<APIResponse<number[]>>;
| Parameter | Type | Description |
|---|---|---|
filePath | string | DOC file path |
APIResponse<number[]>:
result is the mark page index arrayimport { 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;
}