mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
This commit is contained in:
1 parent
4a6174c2ae
commit
7bf9f7b3b7
14 files changed
+785
-102
No files matched your search
@@ -109,6 +109,7 @@ type Session struct {
|
||||
signatures []SignatureInfo
|
||||
signatureError error
|
||||
signaturesRead bool
|
||||
editing bool
|
||||
}
|
||||
|
||||
// DocumentInfo 文档信息
|
||||
@@ -455,7 +456,11 @@ func (s *Session) RenderPageSVG(index int) (PageSVG, error) {
|
||||
s.textCache[index] = text
|
||||
}
|
||||
}
|
||||
resources, err := renderer.RenderToSVGWithResources(page, &buf)
|
||||
renderSVG := renderer.RenderToSVGWithResources
|
||||
if s.editing {
|
||||
renderSVG = renderer.RenderToSVGWithObjects
|
||||
}
|
||||
resources, err := renderSVG(page, &buf)
|
||||
if err != nil {
|
||||
return PageSVG{}, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user