Class: Xberg::FormatMetadataPdf

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
FormatMetadata
Defined in:
lib/xberg/native.rb

Overview

Metadata extracted from a PDF document.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



2890
2891
2892
# File 'lib/xberg/native.rb', line 2890

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2943
2944
2945
# File 'lib/xberg/native.rb', line 2943

def self.from_hash(hash)
  new(value: hash[:_0] || hash["_0"])
end

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


2909
# File 'lib/xberg/native.rb', line 2909

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


2937
# File 'lib/xberg/native.rb', line 2937

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


2923
# File 'lib/xberg/native.rb', line 2923

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


2925
# File 'lib/xberg/native.rb', line 2925

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


2939
2940
2941
# File 'lib/xberg/native.rb', line 2939

def code? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#csv?Boolean

Returns:

  • (Boolean)


2921
# File 'lib/xberg/native.rb', line 2921

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


2929
# File 'lib/xberg/native.rb', line 2929

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


2901
# File 'lib/xberg/native.rb', line 2901

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


2905
# File 'lib/xberg/native.rb', line 2905

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


2933
# File 'lib/xberg/native.rb', line 2933

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


2903
# File 'lib/xberg/native.rb', line 2903

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


2927
# File 'lib/xberg/native.rb', line 2927

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


2917
# File 'lib/xberg/native.rb', line 2917

def html? = false

#image?Boolean

Returns:

  • (Boolean)


2911
# File 'lib/xberg/native.rb', line 2911

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


2931
# File 'lib/xberg/native.rb', line 2931

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


2919
# File 'lib/xberg/native.rb', line 2919

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


2899
# File 'lib/xberg/native.rb', line 2899

def pdf? = true

#pptx?Boolean

Returns:

  • (Boolean)


2907
# File 'lib/xberg/native.rb', line 2907

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


2935
# File 'lib/xberg/native.rb', line 2935

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


2915
# File 'lib/xberg/native.rb', line 2915

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


2913
# File 'lib/xberg/native.rb', line 2913

def xml? = false