Skip to content
DemoAPI 参考文档FAQ

PDF 生成模板编辑器

开源可视化 PDF 生成引擎,支持自定义模板,并提供面向开发者的 API,灵活构建文档生成流程。

查看 GitHub
Guides

自定义工具栏菜单

onCustomToolbarItemTapped 返回自定义顶部工具栏项或自定义 More 菜单项的 identifier。内置工具栏项不会触发该回调。

tsx
<CPDFReaderView
  ref={pdfReaderRef}
  document={samplePDF}
  configuration={configuration}
  onCustomToolbarItemTapped={(identifier) => {
    console.log("Custom toolbar item:", identifier);
  }}
/>

菜单配置参见主工具栏