feat(渲染编辑): 完善渲染编辑验签并优化性能
build.yaml / build (push) Successful in 45s

This commit is contained in:
xiaoqidun committed 2026-10-02 13:08:34 +08:00
1 parent 9c5ce1d66f
commit ac198f3351
56 files changed
+3029 -825

No files matched your search

+2 -9
View File
@@ -16,21 +16,14 @@ package ofdgo
import "github.com/xiaoqidun/pdfgo"
// halftone 检查连续色调转换及不可忽略的传递函数,避免将打印网屏误用于屏幕显示
// halftone 检查连续色调转换,避免将打印网屏误用于屏幕显示
// 入参: style 图形状态
// 返回: error 严格模式或非恒等传递函数无法表达
// 返回: error 严格模式无法保留设备网屏
func (p *pdfImporter) halftone(style pdfgo.Style) error {
h := style.Halftone
if h == nil || h.Type == 0 {
return nil
}
identity, err := h.IdentityTransfer(p.reader)
if err != nil {
return err
}
if !identity {
return &pdfgo.UnsupportedError{Feature: "halftone transfer function conversion"}
}
if p.warning == nil {
return &pdfgo.UnsupportedError{Feature: "device halftone conversion"}
}