PDF 生成模板编辑器
开源可视化 PDF 生成引擎,支持自定义模板,并提供面向开发者的 API,灵活构建文档生成流程。
onCustomToolbarItemTapped 返回自定义顶部工具栏项或自定义 More 菜单项的 identifier。内置工具栏项不会触发该回调。
<CPDFReaderView
ref={pdfReaderRef}
document={samplePDF}
configuration={configuration}
onCustomToolbarItemTapped={(identifier) => {
console.log("Custom toolbar item:", identifier);
}}
/>菜单配置参见主工具栏。