Class: Ilovepdf::Tool::Pdfa
- Inherits:
-
Ilovepdf::Task
- Object
- Ilovepdf
- Ilovepdf::Task
- Ilovepdf::Tool::Pdfa
- Defined in:
- lib/ilovepdf/tool/pdfa.rb
Constant Summary collapse
- API_PARAMS =
[:conformance, :allow_downgrade]
- 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) ⇒ Pdfa
constructor
A new instance of Pdfa.
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) ⇒ Pdfa
Returns a new instance of Pdfa.
11 12 13 14 15 |
# File 'lib/ilovepdf/tool/pdfa.rb', line 11 def initialize(public_key, secret_key, make_start=true) self.tool = :pdfa super(public_key, secret_key, make_start) self.allow_downgrade = true end |
Instance Method Details
#conformance ⇒ Object
22 23 24 |
# File 'lib/ilovepdf/tool/pdfa.rb', line 22 def conformance @conformance ||= 'pdfa-2b' end |
#conformance=(new_val) ⇒ Object
17 18 19 20 |
# File 'lib/ilovepdf/tool/pdfa.rb', line 17 def conformance= new_val raise Errors::ArgumentEnumError.new(CONFORMANCE_VALUES) unless CONFORMANCE_VALUES.include? new_val @conformance = new_val end |