mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-08-30 12:12:40 +08:00
feat(渲染注释): 渲染注释,可配置不渲染
This commit is contained in:
@@ -36,6 +36,7 @@ type Reader struct {
|
||||
compositeGraphicUnitCache map[string]*CompositeGraphicUnit
|
||||
doc *Document
|
||||
Stamps map[string][]Stamp
|
||||
Annots map[string][]Annotation
|
||||
fileIndex map[string]*zip.File
|
||||
}
|
||||
|
||||
@@ -138,6 +139,7 @@ func (r *Reader) Doc() (*Document, error) {
|
||||
r.loadRes(doc.CommonData.PublicRes)
|
||||
}
|
||||
r.doc = &doc
|
||||
_ = r.parseAnnotations(&doc)
|
||||
_ = r.parseSignatures(&doc)
|
||||
return r.doc, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user