Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1810

[PATCH] Spot color support for the PDF Renderer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Resolution: Fixed
    • 0.95
    • None
    • renderer/pdf
    • None
    • Operating System: All
      Platform: All
    • 49403

    Description

      This patch provides spot color support for spot colors for the PDF renderer. It was developed against the 0.95 codebase, so it may not be compatible with the HEAD.

      The code's rather rough and unforgiving (you need to specify the color function with ALL arguments correctly or it will likely die), but it's sufficient for our current production environment. Values for the alternate colorspaces (RGB/CMYK) must be provided, with the tint pre-calculated...though I believe it currently only actually uses one of the alternates (I think CMYK ??) for non-PDF renderers.

      With this patch applied, you may specify spot colors in your FO using the following function:

      rgb-icc(R,G,B,'#Separation',spot-color-name,tint-value,C,M,Y,K)

      Here's one with real values:
      rgb-icc(0,91,165,'#Separation','Reflex Blue CV',1,0.96,0.7,0.04,0)

      I'm posting this here at Jeremias' request since he's working on implementing full support for spot colors. If you're looking at this for your own fork, you should probably review the status of his efforts first!

      Attachments

        1. spot-color.diff
          32 kB
          Patrick Jaromin

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            patrick@jaromin.com Patrick Jaromin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: