docraptor 2.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/.docker_env.list +5 -0
  3. data/.docker_mounts.list +4 -0
  4. data/.generator-language-identifier +1 -0
  5. data/.generator-revision +1 -0
  6. data/.github/pull_request_template.txt +17 -0
  7. data/.gitignore +20 -14
  8. data/.gitlab-ci.yml +26 -0
  9. data/.openapi-generator/FILES +32 -0
  10. data/.openapi-generator/VERSION +1 -0
  11. data/{.swagger-codegen-ignore → .openapi-generator-ignore} +13 -7
  12. data/.review/README.md +16 -0
  13. data/.review/generated_files/.gitignore +39 -0
  14. data/.review/generated_files/README.md +108 -0
  15. data/.review/generated_files/docs/AsyncDoc.md +18 -0
  16. data/.review/generated_files/docs/Doc.md +50 -0
  17. data/.review/generated_files/docs/DocApi.md +503 -0
  18. data/.review/generated_files/docs/DocStatus.md +28 -0
  19. data/.review/generated_files/docs/PrinceOptions.md +82 -0
  20. data/.review/generated_files/spec/api/doc_api_spec.rb +112 -0
  21. data/{spec → .review/generated_files/spec}/api_client_spec.rb +6 -21
  22. data/{spec → .review/generated_files/spec}/configuration_spec.rb +6 -6
  23. data/.review/generated_files/spec/models/async_doc_spec.rb +34 -0
  24. data/.review/generated_files/spec/models/doc_spec.rb +138 -0
  25. data/.review/generated_files/spec/models/doc_status_spec.rb +64 -0
  26. data/.review/generated_files/spec/models/prince_options_spec.rb +234 -0
  27. data/{spec → .review/generated_files/spec}/spec_helper.rb +3 -3
  28. data/.rubocop.yml +148 -0
  29. data/.runtime-environments +13 -0
  30. data/.travis.yml +9 -7
  31. data/CHANGELOG.md +8 -0
  32. data/Gemfile +3 -1
  33. data/README.md +8 -8
  34. data/Rakefile +1 -2
  35. data/docraptor.gemspec +5 -19
  36. data/docraptor.yaml +283 -284
  37. data/examples/async.rb +24 -30
  38. data/examples/hosted_async.rb +21 -33
  39. data/examples/hosted_sync.rb +19 -32
  40. data/examples/sync.rb +20 -26
  41. data/gemfiles/Gemfile.2.5.lock +70 -0
  42. data/gemfiles/Gemfile.2.6.lock +70 -0
  43. data/gemfiles/Gemfile.2.7.lock +70 -0
  44. data/gemfiles/Gemfile.3.0.lock +70 -0
  45. data/gemfiles/Gemfile.3.1.lock +72 -0
  46. data/gemfiles/Gemfile.3.2.lock +72 -0
  47. data/gemfiles/Gemfile.3.3.lock +72 -0
  48. data/{swagger-config.json → generator-config.json} +3 -2
  49. data/lib/docraptor/api/doc_api.rb +180 -85
  50. data/lib/docraptor/api_client.rb +91 -90
  51. data/lib/docraptor/api_error.rb +23 -3
  52. data/lib/docraptor/configuration.rb +101 -15
  53. data/lib/docraptor/models/async_doc.rb +53 -18
  54. data/lib/docraptor/models/doc.rb +80 -50
  55. data/lib/docraptor/models/doc_status.rb +58 -23
  56. data/lib/docraptor/models/prince_options.rb +149 -75
  57. data/lib/docraptor/version.rb +4 -4
  58. data/lib/docraptor.rb +3 -3
  59. data/script/clean +2 -2
  60. data/script/console +5 -0
  61. data/script/docker +56 -0
  62. data/script/fix_gemspec.rb +3 -18
  63. data/script/generate_language +43 -4
  64. data/script/inside_container/README.md +6 -0
  65. data/script/inside_container/test +87 -0
  66. data/script/post_generate_language +8 -2
  67. data/script/release +13 -0
  68. data/script/setup +25 -14
  69. data/script/swagger +6 -33
  70. data/script/test +30 -27
  71. data/test/async.rb +2 -2
  72. data/test/expire_hosted.rb +2 -2
  73. data/test/hosted_async.rb +7 -1
  74. data/test/hosted_sync.rb +2 -2
  75. data/test/iframes_default.rb +40 -0
  76. data/test/iframes_false.rb +40 -0
  77. data/test/iframes_true.rb +40 -0
  78. data/test/prince_options.rb +45 -0
  79. data/test/sync.rb +2 -2
  80. data/test/xlsx.rb +10 -3
  81. metadata +52 -214
  82. data/.swagger-codegen/VERSION +0 -1
  83. data/.swagger-revision +0 -1
@@ -0,0 +1,503 @@
1
+ # DocRaptor::DocApi
2
+
3
+ All URIs are relative to *https://api.docraptor.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_async_doc**](DocApi.md#create_async_doc) | **POST** /async_docs | |
8
+ | [**create_doc**](DocApi.md#create_doc) | **POST** /docs | |
9
+ | [**create_hosted_async_doc**](DocApi.md#create_hosted_async_doc) | **POST** /hosted_async_docs | |
10
+ | [**create_hosted_doc**](DocApi.md#create_hosted_doc) | **POST** /hosted_docs | |
11
+ | [**expire**](DocApi.md#expire) | **PATCH** /expire/{id} | |
12
+ | [**get_async_doc**](DocApi.md#get_async_doc) | **GET** /download/{id} | |
13
+ | [**get_async_doc_status**](DocApi.md#get_async_doc_status) | **GET** /status/{id} | |
14
+
15
+
16
+ ## create_async_doc
17
+
18
+ > <AsyncDoc> create_async_doc(doc)
19
+
20
+
21
+
22
+ Creates a document asynchronously. You must use a callback url or the returned status id and the status API to find out when it completes. Then use the download API to get the document.
23
+
24
+ ### Examples
25
+
26
+ ```ruby
27
+ require 'time'
28
+ require 'docraptor'
29
+ # setup authorization
30
+ DocRaptor.configure do |config|
31
+ # Configure HTTP basic authorization: basicAuth
32
+ config.username = 'YOUR USERNAME'
33
+ config.password = 'YOUR PASSWORD'
34
+ end
35
+
36
+ api_instance = DocRaptor::DocApi.new
37
+ doc = DocRaptor::Doc.new({name: 'name_example', document_type: 'pdf'}) # Doc |
38
+
39
+ begin
40
+
41
+ result = api_instance.create_async_doc(doc)
42
+ p result
43
+ rescue DocRaptor::ApiError => e
44
+ puts "Error when calling DocApi->create_async_doc: #{e}"
45
+ end
46
+ ```
47
+
48
+ #### Using the create_async_doc_with_http_info variant
49
+
50
+ This returns an Array which contains the response data, status code and headers.
51
+
52
+ > <Array(<AsyncDoc>, Integer, Hash)> create_async_doc_with_http_info(doc)
53
+
54
+ ```ruby
55
+ begin
56
+
57
+ data, status_code, headers = api_instance.create_async_doc_with_http_info(doc)
58
+ p status_code # => 2xx
59
+ p headers # => { ... }
60
+ p data # => <AsyncDoc>
61
+ rescue DocRaptor::ApiError => e
62
+ puts "Error when calling DocApi->create_async_doc_with_http_info: #{e}"
63
+ end
64
+ ```
65
+
66
+ ### Parameters
67
+
68
+ | Name | Type | Description | Notes |
69
+ | ---- | ---- | ----------- | ----- |
70
+ | **doc** | [**Doc**](Doc.md) | | |
71
+
72
+ ### Return type
73
+
74
+ [**AsyncDoc**](AsyncDoc.md)
75
+
76
+ ### Authorization
77
+
78
+ [basicAuth](../README.md#basicAuth)
79
+
80
+ ### HTTP request headers
81
+
82
+ - **Content-Type**: application/json
83
+ - **Accept**: */*
84
+
85
+
86
+ ## create_doc
87
+
88
+ > String create_doc(doc)
89
+
90
+
91
+
92
+ Creates a document synchronously.
93
+
94
+ ### Examples
95
+
96
+ ```ruby
97
+ require 'time'
98
+ require 'docraptor'
99
+ # setup authorization
100
+ DocRaptor.configure do |config|
101
+ # Configure HTTP basic authorization: basicAuth
102
+ config.username = 'YOUR USERNAME'
103
+ config.password = 'YOUR PASSWORD'
104
+ end
105
+
106
+ api_instance = DocRaptor::DocApi.new
107
+ doc = DocRaptor::Doc.new({name: 'name_example', document_type: 'pdf'}) # Doc |
108
+
109
+ begin
110
+
111
+ result = api_instance.create_doc(doc)
112
+ p result
113
+ rescue DocRaptor::ApiError => e
114
+ puts "Error when calling DocApi->create_doc: #{e}"
115
+ end
116
+ ```
117
+
118
+ #### Using the create_doc_with_http_info variant
119
+
120
+ This returns an Array which contains the response data, status code and headers.
121
+
122
+ > <Array(String, Integer, Hash)> create_doc_with_http_info(doc)
123
+
124
+ ```ruby
125
+ begin
126
+
127
+ data, status_code, headers = api_instance.create_doc_with_http_info(doc)
128
+ p status_code # => 2xx
129
+ p headers # => { ... }
130
+ p data # => String
131
+ rescue DocRaptor::ApiError => e
132
+ puts "Error when calling DocApi->create_doc_with_http_info: #{e}"
133
+ end
134
+ ```
135
+
136
+ ### Parameters
137
+
138
+ | Name | Type | Description | Notes |
139
+ | ---- | ---- | ----------- | ----- |
140
+ | **doc** | [**Doc**](Doc.md) | | |
141
+
142
+ ### Return type
143
+
144
+ **String**
145
+
146
+ ### Authorization
147
+
148
+ [basicAuth](../README.md#basicAuth)
149
+
150
+ ### HTTP request headers
151
+
152
+ - **Content-Type**: application/json
153
+ - **Accept**: */*
154
+
155
+
156
+ ## create_hosted_async_doc
157
+
158
+ > <AsyncDoc> create_hosted_async_doc(doc)
159
+
160
+
161
+
162
+ Creates a hosted document asynchronously. You must use a callback url or the returned status id and the status API to find out when it completes. Then use the download API to get the document.
163
+
164
+ ### Examples
165
+
166
+ ```ruby
167
+ require 'time'
168
+ require 'docraptor'
169
+ # setup authorization
170
+ DocRaptor.configure do |config|
171
+ # Configure HTTP basic authorization: basicAuth
172
+ config.username = 'YOUR USERNAME'
173
+ config.password = 'YOUR PASSWORD'
174
+ end
175
+
176
+ api_instance = DocRaptor::DocApi.new
177
+ doc = DocRaptor::Doc.new({name: 'name_example', document_type: 'pdf'}) # Doc |
178
+
179
+ begin
180
+
181
+ result = api_instance.create_hosted_async_doc(doc)
182
+ p result
183
+ rescue DocRaptor::ApiError => e
184
+ puts "Error when calling DocApi->create_hosted_async_doc: #{e}"
185
+ end
186
+ ```
187
+
188
+ #### Using the create_hosted_async_doc_with_http_info variant
189
+
190
+ This returns an Array which contains the response data, status code and headers.
191
+
192
+ > <Array(<AsyncDoc>, Integer, Hash)> create_hosted_async_doc_with_http_info(doc)
193
+
194
+ ```ruby
195
+ begin
196
+
197
+ data, status_code, headers = api_instance.create_hosted_async_doc_with_http_info(doc)
198
+ p status_code # => 2xx
199
+ p headers # => { ... }
200
+ p data # => <AsyncDoc>
201
+ rescue DocRaptor::ApiError => e
202
+ puts "Error when calling DocApi->create_hosted_async_doc_with_http_info: #{e}"
203
+ end
204
+ ```
205
+
206
+ ### Parameters
207
+
208
+ | Name | Type | Description | Notes |
209
+ | ---- | ---- | ----------- | ----- |
210
+ | **doc** | [**Doc**](Doc.md) | | |
211
+
212
+ ### Return type
213
+
214
+ [**AsyncDoc**](AsyncDoc.md)
215
+
216
+ ### Authorization
217
+
218
+ [basicAuth](../README.md#basicAuth)
219
+
220
+ ### HTTP request headers
221
+
222
+ - **Content-Type**: application/json
223
+ - **Accept**: */*
224
+
225
+
226
+ ## create_hosted_doc
227
+
228
+ > <DocStatus> create_hosted_doc(doc)
229
+
230
+
231
+
232
+ Creates a hosted document synchronously.
233
+
234
+ ### Examples
235
+
236
+ ```ruby
237
+ require 'time'
238
+ require 'docraptor'
239
+ # setup authorization
240
+ DocRaptor.configure do |config|
241
+ # Configure HTTP basic authorization: basicAuth
242
+ config.username = 'YOUR USERNAME'
243
+ config.password = 'YOUR PASSWORD'
244
+ end
245
+
246
+ api_instance = DocRaptor::DocApi.new
247
+ doc = DocRaptor::Doc.new({name: 'name_example', document_type: 'pdf'}) # Doc | The document to be created.
248
+
249
+ begin
250
+
251
+ result = api_instance.create_hosted_doc(doc)
252
+ p result
253
+ rescue DocRaptor::ApiError => e
254
+ puts "Error when calling DocApi->create_hosted_doc: #{e}"
255
+ end
256
+ ```
257
+
258
+ #### Using the create_hosted_doc_with_http_info variant
259
+
260
+ This returns an Array which contains the response data, status code and headers.
261
+
262
+ > <Array(<DocStatus>, Integer, Hash)> create_hosted_doc_with_http_info(doc)
263
+
264
+ ```ruby
265
+ begin
266
+
267
+ data, status_code, headers = api_instance.create_hosted_doc_with_http_info(doc)
268
+ p status_code # => 2xx
269
+ p headers # => { ... }
270
+ p data # => <DocStatus>
271
+ rescue DocRaptor::ApiError => e
272
+ puts "Error when calling DocApi->create_hosted_doc_with_http_info: #{e}"
273
+ end
274
+ ```
275
+
276
+ ### Parameters
277
+
278
+ | Name | Type | Description | Notes |
279
+ | ---- | ---- | ----------- | ----- |
280
+ | **doc** | [**Doc**](Doc.md) | The document to be created. | |
281
+
282
+ ### Return type
283
+
284
+ [**DocStatus**](DocStatus.md)
285
+
286
+ ### Authorization
287
+
288
+ [basicAuth](../README.md#basicAuth)
289
+
290
+ ### HTTP request headers
291
+
292
+ - **Content-Type**: application/json
293
+ - **Accept**: */*
294
+
295
+
296
+ ## expire
297
+
298
+ > expire(id)
299
+
300
+
301
+
302
+ Expires a previously created hosted doc.
303
+
304
+ ### Examples
305
+
306
+ ```ruby
307
+ require 'time'
308
+ require 'docraptor'
309
+ # setup authorization
310
+ DocRaptor.configure do |config|
311
+ # Configure HTTP basic authorization: basicAuth
312
+ config.username = 'YOUR USERNAME'
313
+ config.password = 'YOUR PASSWORD'
314
+ end
315
+
316
+ api_instance = DocRaptor::DocApi.new
317
+ id = 'id_example' # String | The download_id returned from status request or hosted document response.
318
+
319
+ begin
320
+
321
+ api_instance.expire(id)
322
+ rescue DocRaptor::ApiError => e
323
+ puts "Error when calling DocApi->expire: #{e}"
324
+ end
325
+ ```
326
+
327
+ #### Using the expire_with_http_info variant
328
+
329
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
330
+
331
+ > <Array(nil, Integer, Hash)> expire_with_http_info(id)
332
+
333
+ ```ruby
334
+ begin
335
+
336
+ data, status_code, headers = api_instance.expire_with_http_info(id)
337
+ p status_code # => 2xx
338
+ p headers # => { ... }
339
+ p data # => nil
340
+ rescue DocRaptor::ApiError => e
341
+ puts "Error when calling DocApi->expire_with_http_info: #{e}"
342
+ end
343
+ ```
344
+
345
+ ### Parameters
346
+
347
+ | Name | Type | Description | Notes |
348
+ | ---- | ---- | ----------- | ----- |
349
+ | **id** | **String** | The download_id returned from status request or hosted document response. | |
350
+
351
+ ### Return type
352
+
353
+ nil (empty response body)
354
+
355
+ ### Authorization
356
+
357
+ [basicAuth](../README.md#basicAuth)
358
+
359
+ ### HTTP request headers
360
+
361
+ - **Content-Type**: Not defined
362
+ - **Accept**: Not defined
363
+
364
+
365
+ ## get_async_doc
366
+
367
+ > String get_async_doc(id)
368
+
369
+
370
+
371
+ Downloads a finished document.
372
+
373
+ ### Examples
374
+
375
+ ```ruby
376
+ require 'time'
377
+ require 'docraptor'
378
+ # setup authorization
379
+ DocRaptor.configure do |config|
380
+ # Configure HTTP basic authorization: basicAuth
381
+ config.username = 'YOUR USERNAME'
382
+ config.password = 'YOUR PASSWORD'
383
+ end
384
+
385
+ api_instance = DocRaptor::DocApi.new
386
+ id = 'id_example' # String | The download_id returned from an async status request or callback.
387
+
388
+ begin
389
+
390
+ result = api_instance.get_async_doc(id)
391
+ p result
392
+ rescue DocRaptor::ApiError => e
393
+ puts "Error when calling DocApi->get_async_doc: #{e}"
394
+ end
395
+ ```
396
+
397
+ #### Using the get_async_doc_with_http_info variant
398
+
399
+ This returns an Array which contains the response data, status code and headers.
400
+
401
+ > <Array(String, Integer, Hash)> get_async_doc_with_http_info(id)
402
+
403
+ ```ruby
404
+ begin
405
+
406
+ data, status_code, headers = api_instance.get_async_doc_with_http_info(id)
407
+ p status_code # => 2xx
408
+ p headers # => { ... }
409
+ p data # => String
410
+ rescue DocRaptor::ApiError => e
411
+ puts "Error when calling DocApi->get_async_doc_with_http_info: #{e}"
412
+ end
413
+ ```
414
+
415
+ ### Parameters
416
+
417
+ | Name | Type | Description | Notes |
418
+ | ---- | ---- | ----------- | ----- |
419
+ | **id** | **String** | The download_id returned from an async status request or callback. | |
420
+
421
+ ### Return type
422
+
423
+ **String**
424
+
425
+ ### Authorization
426
+
427
+ [basicAuth](../README.md#basicAuth)
428
+
429
+ ### HTTP request headers
430
+
431
+ - **Content-Type**: Not defined
432
+ - **Accept**: */*
433
+
434
+
435
+ ## get_async_doc_status
436
+
437
+ > <DocStatus> get_async_doc_status(id)
438
+
439
+
440
+
441
+ Check on the status of an asynchronously created document.
442
+
443
+ ### Examples
444
+
445
+ ```ruby
446
+ require 'time'
447
+ require 'docraptor'
448
+ # setup authorization
449
+ DocRaptor.configure do |config|
450
+ # Configure HTTP basic authorization: basicAuth
451
+ config.username = 'YOUR USERNAME'
452
+ config.password = 'YOUR PASSWORD'
453
+ end
454
+
455
+ api_instance = DocRaptor::DocApi.new
456
+ id = 'id_example' # String | The status_id returned when creating an asynchronous document.
457
+
458
+ begin
459
+
460
+ result = api_instance.get_async_doc_status(id)
461
+ p result
462
+ rescue DocRaptor::ApiError => e
463
+ puts "Error when calling DocApi->get_async_doc_status: #{e}"
464
+ end
465
+ ```
466
+
467
+ #### Using the get_async_doc_status_with_http_info variant
468
+
469
+ This returns an Array which contains the response data, status code and headers.
470
+
471
+ > <Array(<DocStatus>, Integer, Hash)> get_async_doc_status_with_http_info(id)
472
+
473
+ ```ruby
474
+ begin
475
+
476
+ data, status_code, headers = api_instance.get_async_doc_status_with_http_info(id)
477
+ p status_code # => 2xx
478
+ p headers # => { ... }
479
+ p data # => <DocStatus>
480
+ rescue DocRaptor::ApiError => e
481
+ puts "Error when calling DocApi->get_async_doc_status_with_http_info: #{e}"
482
+ end
483
+ ```
484
+
485
+ ### Parameters
486
+
487
+ | Name | Type | Description | Notes |
488
+ | ---- | ---- | ----------- | ----- |
489
+ | **id** | **String** | The status_id returned when creating an asynchronous document. | |
490
+
491
+ ### Return type
492
+
493
+ [**DocStatus**](DocStatus.md)
494
+
495
+ ### Authorization
496
+
497
+ [basicAuth](../README.md#basicAuth)
498
+
499
+ ### HTTP request headers
500
+
501
+ - **Content-Type**: Not defined
502
+ - **Accept**: */*
503
+
@@ -0,0 +1,28 @@
1
+ # DocRaptor::DocStatus
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **status** | **String** | The present status of the document. Can be queued, working, completed, and failed. | [optional] |
8
+ | **download_url** | **String** | The URL where the document can be retrieved. This URL may only be used a few times. | [optional] |
9
+ | **download_id** | **String** | The identifier for downloading the document with the download API. | [optional] |
10
+ | **message** | **String** | Additional information. | [optional] |
11
+ | **number_of_pages** | **Integer** | Number of PDF pages in document. | [optional] |
12
+ | **validation_errors** | **String** | Error information. | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'docraptor'
18
+
19
+ instance = DocRaptor::DocStatus.new(
20
+ status: null,
21
+ download_url: null,
22
+ download_id: null,
23
+ message: null,
24
+ number_of_pages: null,
25
+ validation_errors: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,82 @@
1
+ # DocRaptor::PrinceOptions
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **baseurl** | **String** | Set the baseurl for assets. | [optional] |
8
+ | **no_xinclude** | **Boolean** | Disable XML inclusion. | [optional] |
9
+ | **no_network** | **Boolean** | Disable network access. | [optional] |
10
+ | **no_parallel_downloads** | **Boolean** | Disables parallel fetching of assets during PDF creation. Useful if your asset host has strict rate limiting. | [optional] |
11
+ | **http_user** | **String** | Set the user for HTTP authentication. | [optional] |
12
+ | **http_password** | **String** | Set the password for HTTP authentication. | [optional] |
13
+ | **http_proxy** | **String** | Set the HTTP proxy server. | [optional] |
14
+ | **http_timeout** | **Integer** | Set the HTTP request timeout. | [optional] |
15
+ | **insecure** | **Boolean** | Disable SSL verification. | [optional] |
16
+ | **media** | **String** | Specify the CSS media type. Defaults to \&quot;print\&quot; but you may want to use \&quot;screen\&quot; for web styles. | [optional] |
17
+ | **no_author_style** | **Boolean** | Ignore author stylesheets. | [optional] |
18
+ | **no_default_style** | **Boolean** | Ignore default stylesheets. | [optional] |
19
+ | **no_embed_fonts** | **Boolean** | Disable font embedding in PDFs. | [optional] |
20
+ | **no_subset_fonts** | **Boolean** | Disable font subsetting in PDFs. | [optional] |
21
+ | **no_compress** | **Boolean** | Disable PDF compression. | [optional] |
22
+ | **encrypt** | **Boolean** | Encrypt PDF output. | [optional] |
23
+ | **key_bits** | **Integer** | Set encryption key size. | [optional] |
24
+ | **user_password** | **String** | Set the PDF user password. | [optional] |
25
+ | **owner_password** | **String** | Set the PDF owner password. | [optional] |
26
+ | **disallow_print** | **Boolean** | Disallow printing of this PDF. | [optional] |
27
+ | **disallow_copy** | **Boolean** | Disallow copying of this PDF. | [optional] |
28
+ | **disallow_annotate** | **Boolean** | Disallow annotation of this PDF. | [optional] |
29
+ | **disallow_modify** | **Boolean** | Disallow modification of this PDF. | [optional] |
30
+ | **debug** | **Boolean** | Enable Prince debug mode. | [optional] |
31
+ | **input** | **String** | Specify the input format, defaults to html. | [optional] |
32
+ | **version** | **String** | Deprecated, use the appropriate &#x60;pipeline&#x60; version. Specify a specific verison of PrinceXML to use. | [optional] |
33
+ | **javascript** | **Boolean** | Enable PrinceXML JavaScript. DocRaptor JavaScript parsing is also available elsewhere. | [optional] |
34
+ | **css_dpi** | **Integer** | Set the DPI when rendering CSS. Defaults to 96 but can be set with Prince 9.0 and up. | [optional] |
35
+ | **profile** | **String** | In Prince 9.0 and up you can set the PDF profile. | [optional] |
36
+ | **pdf_title** | **String** | Specify the PDF title, part of the document&#39;s metadata. | [optional] |
37
+ | **iframes** | **Boolean** | Enable loading of iframes. | [optional] |
38
+ | **page_margin** | **String** | Specify the page margin distance. | [optional] |
39
+ | **pdf_forms** | **Boolean** | Make form fields editable by default. | [optional] |
40
+
41
+ ## Example
42
+
43
+ ```ruby
44
+ require 'docraptor'
45
+
46
+ instance = DocRaptor::PrinceOptions.new(
47
+ baseurl: null,
48
+ no_xinclude: null,
49
+ no_network: null,
50
+ no_parallel_downloads: null,
51
+ http_user: null,
52
+ http_password: null,
53
+ http_proxy: null,
54
+ http_timeout: null,
55
+ insecure: null,
56
+ media: null,
57
+ no_author_style: null,
58
+ no_default_style: null,
59
+ no_embed_fonts: null,
60
+ no_subset_fonts: null,
61
+ no_compress: null,
62
+ encrypt: null,
63
+ key_bits: null,
64
+ user_password: null,
65
+ owner_password: null,
66
+ disallow_print: null,
67
+ disallow_copy: null,
68
+ disallow_annotate: null,
69
+ disallow_modify: null,
70
+ debug: null,
71
+ input: null,
72
+ version: null,
73
+ javascript: null,
74
+ css_dpi: null,
75
+ profile: null,
76
+ pdf_title: null,
77
+ iframes: null,
78
+ page_margin: null,
79
+ pdf_forms: null
80
+ )
81
+ ```
82
+