Class: Preflight::Rules::OnlyEmbeddedFonts
- Inherits:
-
Object
- Object
- Preflight::Rules::OnlyEmbeddedFonts
- Defined in:
- lib/preflight/rules/only_embedded_fonts.rb
Overview
Instance Attribute Summary collapse
-
#issues ⇒ Object
readonly
Returns the value of attribute issues.
Instance Method Summary collapse
Instance Attribute Details
#issues ⇒ Object (readonly)
Returns the value of attribute issues.
20 21 22 |
# File 'lib/preflight/rules/only_embedded_fonts.rb', line 20 def issues @issues end |
Instance Method Details
#page=(page) ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/preflight/rules/only_embedded_fonts.rb', line 22 def page=(page) @issues = [] page.fonts.each { |key, obj| obj = page.objects.deref(obj) if !(page.objects, obj) @issues << Issue.new("Font not embedded", self, :base_font => obj[:BaseFont]) end } end |