Module: PDF::Reader::ResourceMethods

### Home Classes Methods

### In Files

- lib/pdf/reader/resource_methods.rb

### Methods

- #color_spaces
- #fonts
- #graphic_states
- #patterns
- #procedure_sets
- #properties
- #shadings
- #xobjects

### Files

- MIT-LICENSE
- README.rdoc
- TODO
- mac_expert.txt
- mac_roman.txt
- pdf_doc.txt
- standard.txt
- symbol.txt
- win_ansi.txt
- zapf_dingbats.txt
- glyphlist.txt

### Class/Module Index

Quicksearch

- PDF
- PDF::Reader
- PDF::Reader::Buffer
- PDF::Reader::CidWidths
- PDF::Reader::EncryptedPDFError
- PDF::Reader::Filter
- PDF::Reader::Filter::Ascii85
- PDF::Reader::Filter::AsciiHex
- PDF::Reader::Filter::Depredict
- PDF::Reader::Filter::Flate
- PDF::Reader::Filter::Lzw
- PDF::Reader::Filter::Null
- PDF::Reader::Filter::RunLength
- PDF::Reader::Font
- PDF::Reader::FontDescriptor
- PDF::Reader::FormXObject
- PDF::Reader::InvalidObjectError
- PDF::Reader::MalformedPDFError
- PDF::Reader::ObjectCache
- PDF::Reader::ObjectHash
- PDF::Reader::PageLayout
- PDF::Reader::PageState
- PDF::Reader::PageTextReceiver
- PDF::Reader::Parser
- PDF::Reader::PrintReceiver
- PDF::Reader::Reference
- PDF::Reader::RegisterReceiver
- PDF::Reader::ResourceMethods
- PDF::Reader::StandardSecurityHandler
- PDF::Reader::Stream
- PDF::Reader::SynchronizedCache
- PDF::Reader::TextReceiver
- PDF::Reader::TextRun
- PDF::Reader::TransformationMatrix
- PDF::Reader::UnsupportedFeatureError
- PDF::Reader::WidthCalculator
- PDF::Reader::WidthCalculator::BuiltIn
- PDF::Reader::WidthCalculator::Composite
- PDF::Reader::WidthCalculator::TrueType
- PDF::Reader::WidthCalculator::TypeOneOrThree
- PDF::Reader::WidthCalculator::TypeZero
- PDF::Reader::XRef
- AFM
- AFM::Font

No matching classes.

# PDF::Reader::ResourceMethods

mixin for common methods in Page and FormXobjects

### Public Instance Methods

color_spaces() click to toggle source

Returns a Hash of color spaces that are available to this page

NOTE: this method de-serialise objects from the underlying PDF

    with no caching. You will want to cache the results instead
    of calling it over and over.

    # File lib/pdf/reader/resource_methods.rb, line 14
    def color_spaces
      @objects.deref!(resources[:ColorSpace]) || {}
    end

fonts() click to toggle source

Returns a Hash of fonts that are available to this page

NOTE: this method de-serialise objects from the underlying PDF

    with no caching. You will want to cache the results instead
    of calling it over and over.

    # File lib/pdf/reader/resource_methods.rb, line 24
    def fonts
      @objects.deref!(resources[:Font]) || {}
    end

graphic_states() click to toggle source

Returns a Hash of external graphic states that are available to this page

NOTE: this method de-serialise objects from the underlying PDF

    with no caching. You will want to cache the results instead
    of calling it over and over.

    # File lib/pdf/reader/resource_methods.rb, line 35
    def graphic_states
      @objects.deref!(resources[:ExtGState]) || {}
    end

patterns() click to toggle source

Returns a Hash of patterns that are available to this page

NOTE: this method de-serialise objects from the underlying PDF

    with no caching. You will want to cache the results instead
    of calling it over and over.

    # File lib/pdf/reader/resource_methods.rb, line 45
    def patterns
      @objects.deref!(resources[:Pattern]) || {}
    end

procedure_sets() click to toggle source

Returns an Array of procedure sets that are available to this page

NOTE: this method de-serialise objects from the underlying PDF

    with no caching. You will want to cache the results instead
    of calling it over and over.

    # File lib/pdf/reader/resource_methods.rb, line 55
    def procedure_sets
      @objects.deref!(resources[:ProcSet]) || []
    end

properties() click to toggle source

Returns a Hash of properties sets that are available to this page

NOTE: this method de-serialise objects from the underlying PDF

    with no caching. You will want to cache the results instead
    of calling it over and over.

    # File lib/pdf/reader/resource_methods.rb, line 65
    def properties
      @objects.deref!(resources[:Properties]) || {}
    end

shadings() click to toggle source

Returns a Hash of shadings that are available to this page

NOTE: this method de-serialise objects from the underlying PDF

    with no caching. You will want to cache the results instead
    of calling it over and over.

    # File lib/pdf/reader/resource_methods.rb, line 75
    def shadings
      @objects.deref!(resources[:Shading]) || {}
    end

xobjects() click to toggle source

Returns a Hash of XObjects that are available to this page

NOTE: this method de-serialise objects from the underlying PDF

    with no caching. You will want to cache the results instead
    of calling it over and over.

    # File lib/pdf/reader/resource_methods.rb, line 85
    def xobjects
      @objects.deref!(resources[:XObject]) || {}
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.