Class: Preflight::Rules::OutputIntentForPdfx
- Inherits:
-
Object
- Object
- Preflight::Rules::OutputIntentForPdfx
- Defined in:
- lib/preflight/rules/output_intent_for_pdfx.rb
Instance Method Summary collapse
Instance Method Details
#messages(ohash) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/preflight/rules/output_intent_for_pdfx.rb', line 8 def (ohash) intents = output_intents(ohash).select { |dict| ohash.object(dict)[:S] == :GTS_PDFX } if intents.size != 1 ["There must be exactly 1 OutputIntent with a subtype of GTS_PDFX"] else [] end end |