mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 17:27:08 +08:00
This commit is contained in:
1 parent
19dc79e8e3
commit
a710bc5f41
68 files changed
+2149
-724
No files matched your search
@@ -168,7 +168,10 @@ func (r *pdfTextReplacements) count(nodes []pdfCompositeNode, blocked bool) erro
|
||||
}
|
||||
childBlocked := blocked
|
||||
if group := node.group; group != nil && node.textObject == nil {
|
||||
opaque, err := node.opaque(group.ColorSpace)
|
||||
opaque, err := r.importer.opaque(node, group.ColorSpace)
|
||||
if err := r.importer.ctx.Err(); err != nil {
|
||||
return err
|
||||
}
|
||||
childBlocked = childBlocked || !opaque || err != nil || group.ColorSpace != nil && !group.ColorSpace.SRGBEquivalent()
|
||||
}
|
||||
if err := r.count(node.children, childBlocked); err != nil {
|
||||
|
||||
Reference in new issue
Block a user