Class: Pdf::ImageExtractor::Placement

Inherits:
Data
  • Object
show all
Defined in:
app/services/pdf/image_extractor.rb

Overview

One painted image. +path+ is the extracted temp file (jpg/png/jpx as the
PDF's encoding allows); +x+, +y+, +width+, +height+ are the on-page box.

Instance Attribute Summary collapse

Instance Attribute Details

#formatObject (readonly)

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



24
25
26
# File 'app/services/pdf/image_extractor.rb', line 24

def format
  @format
end

#heightObject (readonly)

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



24
25
26
# File 'app/services/pdf/image_extractor.rb', line 24

def height
  @height
end

#pageObject (readonly)

Returns the value of attribute page

Returns:

  • (Object)

    the current value of page



24
25
26
# File 'app/services/pdf/image_extractor.rb', line 24

def page
  @page
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



24
25
26
# File 'app/services/pdf/image_extractor.rb', line 24

def path
  @path
end

#widthObject (readonly)

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



24
25
26
# File 'app/services/pdf/image_extractor.rb', line 24

def width
  @width
end

#xObject (readonly)

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



24
25
26
# File 'app/services/pdf/image_extractor.rb', line 24

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



24
25
26
# File 'app/services/pdf/image_extractor.rb', line 24

def y
  @y
end