> ## 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.

# getNotePageTemplate

> 获取笔记页码指定页面的模版信息。

```ts wrap theme={null}
static getNotePageTemplate(notePath: string, page: number): Promise<APIResponse<NoteTemplateInfo>>;
```

**参数**

| 参数         | 类型       | 说明         |
| ---------- | -------- | ---------- |
| `notePath` | `string` | 笔记路径       |
| `page`     | `number` | 页码（从 0 开始） |

**返回**

* [`APIResponse<NoteTemplateInfo>`](/zh/api-reference/supernote-plugin/types/api-response)：
  `result` 为页面模版对象，字段如下：
  | 字段     | 类型       | 说明                    |
  | ------ | -------- | --------------------- |
  | `name` | `string` | 笔记背景样式名字              |
  | `md5`  | `string` | 自定义样式的 md5 值，系统样式都为 0 |

## 示例

```ts wrap theme={null}
import { PluginFileAPI } from 'sn-plugin-lib';

/**
 * 获取页面模版信息的示例。
 */
export async function exampleGetNotePageTemplate() {
  const notePath = '/storage/emulated/0/Note/demo.note';
  const page = 1;
  const res = await PluginFileAPI.getNotePageTemplate(notePath, page);
  if (!res.success) {
    throw new Error(res.error?.message ?? 'getNotePageTemplate 调用失败');
  }
  return res.result;
}
```
