mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
This commit is contained in:
1 parent
5e0bca66e3
commit
b5a8c9af9c
24 files changed
+935
-223
No files matched your search
+6
-3
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user