title: " A device-specific color space (DeviceGray) without an appropriate output intent is used" when using XSL-FO for PDF validation
body: <p>I was asked to generate a PDF type A-3 using XSL-FO with Apache FOP configuration.
  The PDF is already generated but it can't be validated</p>
  <blockquote>
  <p>error : A device-specific color space (DeviceGray) without an appropriate output intent is used.</p>
  </blockquote>
  <p>I think the issue will be related to the FOP configuration, this is the one I used:</p>
  <pre><code>&lt;fop version=&quot;1.0&quot;&gt;
  
    &lt;!-- Base URL for resolving relative URLs --&gt;
    &lt;base&gt;.&lt;/base&gt;
    
    &lt;!-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi --&gt;
    &lt;source-resolution&gt;72&lt;/source-resolution&gt;
    &lt;!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi --&gt;
    &lt;target-resolution&gt;72&lt;/target-resolution&gt;
    
    &lt;!-- Default page-height and page-width, in case
         value is specified as auto --&gt;
    &lt;default-page-settings height=&quot;11in&quot; width=&quot;8.26in&quot;/&gt;
    
    &lt;!-- Information for specific renderers --&gt;
    &lt;!-- Uses renderer mime type for renderers --&gt;
    &lt;renderers&gt;
      &lt;renderer mime=&quot;application/pdf&quot;&gt;
      
        &lt;version&gt;1.4&lt;/version&gt;
        &lt;filterList&gt;
          &lt;!-- provides compression using zlib flate (default is on) --&gt;
          &lt;value&gt;flate&lt;/value&gt;
         
        &lt;/filterList&gt;
  
        &lt;fonts&gt;
         
      &lt;font embed-url=&quot;ZapfDingbats.ttf&quot; kerning=&quot;yes&quot; sub-font=&quot;ZapfDingbats&quot;&gt;
          &lt;font-triplet name=&quot;ZapfDingbats&quot; style=&quot;normal&quot; weight=&quot;normal&quot;/&gt;
          &lt;font-triplet name=&quot;ZapfDingbats&quot; style=&quot;normal&quot; weight=&quot;bold&quot;/&gt;
      &lt;/font&gt;
      &lt;font embed-url=&quot;symbol.ttf&quot; kerning=&quot;yes&quot; sub-font=&quot;Symbol&quot;&gt;
          &lt;font-triplet name=&quot;Symbol&quot; style=&quot;normal&quot; weight=&quot;normal&quot;/&gt;
          &lt;font-triplet name=&quot;Symbol&quot; style=&quot;normal&quot; weight=&quot;bold&quot;/&gt;
      &lt;/font&gt;
  
      
          &lt;font metrics-url=&quot;ariali.xml&quot; kerning=&quot;yes&quot; embed-url=&quot;ariali.ttf&quot; embedding-mode=&quot;full&quot;&gt;
            &lt;font-triplet name=&quot;Arial&quot; style=&quot;italic&quot; weight=&quot;normal&quot;/&gt;
          &lt;/font&gt;
          &lt;font metrics-url=&quot;arial.xml&quot; kerning=&quot;yes&quot; embed-url=&quot;arial.ttf&quot; embedding-mode=&quot;full&quot;&gt;
            &lt;font-triplet name=&quot;Arial&quot; style=&quot;normal&quot; weight=&quot;normal&quot;/&gt;
          &lt;/font&gt;
          &lt;font metrics-url=&quot;arialbd.xml&quot; kerning=&quot;yes&quot; embed-url=&quot;arialbd.ttf&quot; embedding-mode=&quot;full&quot;&gt;
            &lt;font-triplet name=&quot;Arial&quot; style=&quot;normal&quot; weight=&quot;bold&quot;/&gt;
          &lt;/font&gt;
          
        &lt;/fonts&gt;
      
      &lt;/renderer&gt;
  
      &lt;renderer mime=&quot;application/postscript&quot;&gt;
       
      &lt;/renderer&gt;
  
      &lt;renderer mime=&quot;application/vnd.hp-PCL&quot;&gt;
      &lt;/renderer&gt;
  
      &lt;renderer mime=&quot;image/svg+xml&quot;&gt;
        &lt;format type=&quot;paginated&quot;/&gt;
        &lt;link value=&quot;true&quot;/&gt;
        &lt;strokeText value=&quot;false&quot;/&gt;
      &lt;/renderer&gt;
  
      &lt;renderer mime=&quot;application/awt&quot;&gt;
      &lt;/renderer&gt;
  
      &lt;renderer mime=&quot;image/png&quot;&gt;
        &lt;!--transparent-page-background&gt;true&lt;/transparent-page-background--&gt;
      &lt;/renderer&gt;
  
      &lt;renderer mime=&quot;image/tiff&quot;&gt;
        &lt;!--transparent-page-background&gt;true&lt;/transparent-page-background--&gt;
        &lt;!--compression&gt;CCITT T.6&lt;/compression--&gt;
      &lt;/renderer&gt;
  
      &lt;renderer mime=&quot;text/xml&quot;&gt;
      &lt;/renderer&gt;
  
      &lt;!-- RTF does not have a renderer
      &lt;renderer mime=&quot;text/rtf&quot;&gt;
      &lt;/renderer&gt;
      --&gt;
  
      &lt;renderer mime=&quot;text/plain&quot;&gt;
        &lt;pageSize columns=&quot;80&quot;/&gt;
      &lt;/renderer&gt;
  
    &lt;/renderers&gt;
  
  &lt;/fop&gt;
  </code></pre>