PDF 生成模板编辑器
开源可视化 PDF 生成引擎,支持自定义模板,并提供面向开发者的 API,灵活构建文档生成流程。
const info = await pdfReaderRef.current?._pdfDocument.getInfo();
const title = info?.title;
const author = info?.author;
const subject = info?.subject;
const keywords = info?.keywords;
const creator = info?.creator;
const producer = info?.producer;
const creationDate = info?.creationDate;
const modDate = info?.modificationDate;const permissions = await pdfReaderRef.current?._pdfDocument.getPermissionsInfo();// 获取指定页面尺寸
const pageSize = await pdfReaderRef.current?._pdfDocument.getPageSize(0);