Class: Ilovepdf::Tool::Pdfjpg
Constant Summary
collapse
- API_PARAMS =
[
:view_width, :view_height, :navigation_timeout, :delay,
:page_size, :page_orientation, :page_margin, :remove_popups,
:single_page
]
- PAGE_SIZE_VALUES =
['A3', 'A4', 'A5', 'A6', 'Letter']
- PAGE_ORIENTATION_VALUES =
['portrait', 'landscape']
Ilovepdf::Task::DOWNLOAD_INFO
Constants included
from Ilovepdf
VERSION
Instance Attribute Summary
#ignore_errors, #ignore_password, #output_filename, #packaged_filename, #result, #task_id, #tool, #try_pdf_repair
Instance Method Summary
collapse
#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
root
Constructor Details
#initialize(public_key, secret_key, make_start = true) ⇒ Pdfjpg
Returns a new instance of Pdfjpg.
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/ilovepdf/tool/pdfjpg.rb', line 14
def initialize(public_key, secret_key, make_start=true)
self.tool = :pdfjpg
super(public_key, secret_key, make_start)
self.view_width = 1920
self.navigation_timeout = 10
self.delay = 2
self.page_margin = 0
end
|
Instance Method Details
#addUrl(file_url) ⇒ Object
38
39
40
|
# File 'lib/ilovepdf/tool/pdfjpg.rb', line 38
def addUrl(file_url)
add_file_from_url(file_url)
end
|
#delay=(new_val) ⇒ Object
29
30
|
# File 'lib/ilovepdf/tool/pdfjpg.rb', line 29
def delay=(new_val)
end
|
#navigation_timeout=(new_val) ⇒ Object
26
27
|
# File 'lib/ilovepdf/tool/pdfjpg.rb', line 26
def navigation_timeout=(new_val)
end
|
#page_orientation=(new_val) ⇒ Object
35
36
|
# File 'lib/ilovepdf/tool/pdfjpg.rb', line 35
def page_orientation=(new_val)
end
|
#page_size=(new_val) ⇒ Object
32
33
|
# File 'lib/ilovepdf/tool/pdfjpg.rb', line 32
def page_size=(new_val)
end
|