mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
1 parent
6c14eef1ee
commit
09a49b2c26
10 files changed
+282
-25
No files matched your search
@@ -294,6 +294,15 @@ func (p *pdfImporter) processOverprint(nodes []pdfCompositeNode) (bool, error) {
|
||||
return true, nil
|
||||
}
|
||||
for i, paint := range []pdfgo.Paint{style.Fill, style.Stroke} {
|
||||
if paint.Shading != nil && (i == 0 && fill || i == 1 && stroke) {
|
||||
nodes, err := p.compositeShadingPattern(paint.Shading)
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
if found, err := p.processOverprint(nodes); err != nil || found {
|
||||
return found, err
|
||||
}
|
||||
}
|
||||
if i == 0 && !fill || i == 1 && !stroke || paint.Tiling == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user