unidoc / unipdf

Golang PDF library for creating and processing PDF files (pure go)
https://unidoc.io
Other
2.47k stars 250 forks source link

[FEATURE] add tint transform to translates spot values into a different color space #460

Closed ghiewa closed 2 years ago

ghiewa commented 3 years ago

In some situation, have to add registration black (diecut line) on a pdf [URL]https://en.wikipedia.org/wiki/Registration_black

possible to add tint transform in our code?

github-actions[bot] commented 3 years ago

Welcome! Thanks for posting your first issue. The way things work here is that while customer issues are prioritized, other issues go into our backlog where they are assessed and fitted into the roadmap when suitable. If you need to get this done, consider buying a license which also enables you to use it in your commercial products. More information can be found on https://unidoc.io/

gunnsth commented 2 years ago

This is already supported, see for example https://apidocs.unidoc.io/unipdf/v3.25.0/github.com/unidoc/unipdf/v3/model/#PdfColorspaceDeviceN

A tint transform can be specified with a PdfFunction.

For some pretty advanced example of color handling, i suggest taking a look at: https://github.com/unidoc/unipdf-examples/blob/master/advanced/pdf_grayscale_transform.go