feat(转换能力): 修正颜色转换与路径填充
build.yaml / build (push) Successful in 43s

This commit is contained in:
xiaoqidun committed 2026-09-28 20:23:12 +08:00
1 parent 73105646aa
commit 30d9699385
6 files changed
+12 -18

No files matched your search

+1 -1
View File
@@ -315,7 +315,7 @@ func pdfBounds(points []pdfgo.Point) Box {
// 返回: *FillColor OFD颜色
func (p *pdfImporter) color(paint pdfgo.Paint) *FillColor {
alpha := int(math.Round(paint.Alpha * 255))
if paint.CMYK != nil {
if paint.CMYK != nil && (paint.Space == nil || !paint.Space.Calibrated()) {
if p.cmykSpace == "" {
p.cmykSpace = p.editor.nextID()
p.editor.resources = append(p.editor.resources, editorResource{space: &ColorSpace{ID: p.cmykSpace, Type: "CMYK", BitsPerComponent: 16}})