refactor(色彩管理): 统一色彩与四色保真
build.yaml / build (push) Successful in 10m5s

This commit is contained in:
xiaoqidun committed 2026-10-16 00:05:46 +08:00
1 parent 5e0bca66e3
commit b5a8c9af9c
24 files changed
+935 -223

No files matched your search

+6 -3
View File
@@ -325,7 +325,7 @@ func (p *pdfImporter) text(mark pdfgo.TextMark) error {
}
object.Boundary = pdfBoundary(box)
if stroke && !outlineStroke {
strokePaint, err := p.paintColor(mark.Style.Stroke, box)
strokePaint, err := p.paintColor(mark.Style.Stroke, box, mark.Style.RenderingIntent)
if err != nil {
return err
}
@@ -339,9 +339,12 @@ func (p *pdfImporter) text(mark pdfgo.TextMark) error {
object.Fill = &fill
object.Stroke = &stroke
object.Visible = &visible
object.FillColor = p.color(mark.Style.Fill)
object.FillColor, err = p.color(mark.Style.Fill, mark.Style.RenderingIntent)
if err != nil {
return err
}
if fill && !outlineStroke {
object.FillColor, err = p.paintColor(mark.Style.Fill, box)
object.FillColor, err = p.paintColor(mark.Style.Fill, box, mark.Style.RenderingIntent)
if err != nil {
return err
}