feat(渐变合成): 完善渐变透明合成
build.yaml / build (push) Successful in 46s

This commit is contained in:
xiaoqidun committed 2026-10-05 17:11:55 +08:00
1 parent 6c14eef1ee
commit 09a49b2c26
10 files changed
+282 -25

No files matched your search

+9
View File
@@ -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
}