mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
1 parent
bec13d523f
commit
b3c4bbc844
45 files changed
+1885
-1453
No files matched your search
@@ -24,6 +24,7 @@ import (
|
||||
"github.com/tdewolff/canvas"
|
||||
cimage "github.com/tdewolff/canvas/image"
|
||||
"github.com/tdewolff/canvas/renderers/pdf"
|
||||
codecpdf "github.com/xiaoqidun/ofdgo/internal/codec/pdf"
|
||||
"github.com/xiaoqidun/pdfgo"
|
||||
)
|
||||
|
||||
@@ -36,16 +37,10 @@ type pdfRenderer struct {
|
||||
exactImages bool
|
||||
imageError error
|
||||
navigation *pdfNavigation
|
||||
text []pdfPageText
|
||||
text []codecpdf.TextPage
|
||||
exactText bool
|
||||
}
|
||||
|
||||
// pdfPageText 记录后端文字对象数量及OFD原文所属区段
|
||||
type pdfPageText struct {
|
||||
count int
|
||||
replacements []pdfgo.TextReplacement
|
||||
}
|
||||
|
||||
// pdfNavigation PDF导航信息
|
||||
type pdfNavigation struct {
|
||||
Link map[int][]pdfLink
|
||||
|
||||
Reference in new issue
Block a user