feat(文档导出): 新增文档导出进度显示
build.yaml / build (push) Successful in 34s

This commit is contained in:
xiaoqidun committed 2026-09-14 13:16:07 +08:00
1 parent a7e86a322f
commit 92585edd1e
6 files changed
+46 -8

No files matched your search

+2
View File
@@ -24,11 +24,13 @@ import (
// Renderer 渲染器实现
// 通过NewRenderer创建,实例及共享的Reader需串行使用
// OnPageText可选,接收页面绘制时同步提取的文字,不包含图案和签名外观
// OnExportProgress可选,同步回报文档导出的已处理页数及总页数,不代表封装或写入成功
type Renderer struct {
Reader *Reader
DPI float64
RenderAnnotations bool
OnPageText func(*PageContent, *PageText)
OnExportProgress func(completed, total int)
DrawParams map[string]*DrawParam
CompositeGraphicUnits map[string]*CompositeGraphicUnit
fontFamily *canvas.FontFamily