mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 16:44:23 +08:00
This commit is contained in:
1 parent
21bd592358
commit
bec13d523f
47 files changed
+1455
-539
No files matched your search
@@ -48,6 +48,11 @@ func (r *Renderer) GetPageBox(page *PageContent) (Box, error) {
|
||||
// 入参: page 页面内容
|
||||
// 返回: []PageLink 页面链接, error 错误信息
|
||||
func (r *Renderer) PageLinks(page *PageContent) ([]PageLink, error) {
|
||||
if r.RenderAnnotations && r.Reader.relatedPending {
|
||||
if _, err := r.Reader.DocContext(r.outputContext()); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
sources := r.pageActionSources(page)
|
||||
if r.RenderAnnotations {
|
||||
sources = append(sources, r.annotationActionSources(r.Reader.Annots[page.ID])...)
|
||||
|
||||
Reference in new issue
Block a user