Class: Ilovepdf::Tool::ValidatePdfa
- Inherits:
-
Ilovepdf::Task
- Object
- Ilovepdf
- Ilovepdf::Task
- Ilovepdf::Tool::ValidatePdfa
- Defined in:
- lib/ilovepdf/tool/validate_pdfa.rb
Constant Summary collapse
- API_PARAMS =
[:conformance]
- CONFORMANCE_VALUES =
['pdfa-1b', 'pdfa-1a', 'pdfa-2b', 'pdfa-2u', 'pdfa-2a', 'pdfa-3b', 'pdfa-3u', 'pdfa-3a' ]
Constants inherited from Ilovepdf::Task
Constants included from Ilovepdf
Instance Attribute Summary
Attributes inherited from Ilovepdf::Task
#ignore_errors, #ignore_password, #output_filename, #packaged_filename, #result, #task_id, #tool, #try_pdf_repair
Instance Method Summary collapse
- #conformance ⇒ Object
- #conformance=(new_val) ⇒ Object
-
#initialize(public_key, secret_key, make_start = true) ⇒ ValidatePdfa
constructor
A new instance of ValidatePdfa.
Methods inherited from Ilovepdf::Task
#add_file, #add_file_from_url, #assign_meta_value, #blob, #chained_task?, #delete!, #delete_file, #download, #download_info, #enable_file_encryption, #execute, #files, #next, #status
Methods included from Ilovepdf
Constructor Details
#initialize(public_key, secret_key, make_start = true) ⇒ ValidatePdfa
Returns a new instance of ValidatePdfa.
11 12 13 14 |
# File 'lib/ilovepdf/tool/validate_pdfa.rb', line 11 def initialize(public_key, secret_key, make_start=true) self.tool = :validatepdfa super(public_key, secret_key, make_start) end |
Instance Method Details
#conformance ⇒ Object
21 22 23 |
# File 'lib/ilovepdf/tool/validate_pdfa.rb', line 21 def conformance @conformance ||= 'pdfa-2b' end |
#conformance=(new_val) ⇒ Object
16 17 18 19 |
# File 'lib/ilovepdf/tool/validate_pdfa.rb', line 16 def conformance= new_val raise Errors::ArgumentEnumError.new(CONFORMANCE_VALUES) unless CONFORMANCE_VALUES.include? new_val @conformance = new_val end |