pdfcrowd 4.5.0 → 4.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pdfcrowd.rb +15 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 824b667f1f89710cdb7039b100a88f4415e856b2
|
4
|
+
data.tar.gz: 82005dfe78754843d49d507debe73dbfcb9e9147
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c78d72ea3e505db26cadc68163cddc4dfb98544d5b4c6cd94897d3c5ae70486864d0d9d2a26db2a145554e1a213760a0e6f127425052a23714e16464ed85f33
|
7
|
+
data.tar.gz: 2d443bb567fdc2ca4824143b3cc46f8933fd4510cce00c438b2de4e5e1ce49683d8da472372637e2bf6922cb8e958404505db801efb8a92fd464c8c7dfce727c
|
data/lib/pdfcrowd.rb
CHANGED
@@ -530,7 +530,7 @@ end
|
|
530
530
|
module Pdfcrowd
|
531
531
|
HOST = ENV["PDFCROWD_HOST"] || 'api.pdfcrowd.com'
|
532
532
|
MULTIPART_BOUNDARY = '----------ThIs_Is_tHe_bOUnDary_$'
|
533
|
-
CLIENT_VERSION = '4.
|
533
|
+
CLIENT_VERSION = '4.6.0'
|
534
534
|
|
535
535
|
class ConnectionHelper
|
536
536
|
def initialize(user_name, api_key)
|
@@ -541,7 +541,7 @@ module Pdfcrowd
|
|
541
541
|
|
542
542
|
setProxy(nil, nil, nil, nil)
|
543
543
|
setUseHttp(false)
|
544
|
-
setUserAgent('pdfcrowd_ruby_client/4.
|
544
|
+
setUserAgent('pdfcrowd_ruby_client/4.6.0 (http://pdfcrowd.com)')
|
545
545
|
|
546
546
|
@retry_count = 1
|
547
547
|
end
|
@@ -2378,6 +2378,19 @@ module Pdfcrowd
|
|
2378
2378
|
self
|
2379
2379
|
end
|
2380
2380
|
|
2381
|
+
# Set the scaling factor (zoom) for the output image.
|
2382
|
+
#
|
2383
|
+
# * +scale_factor+ - The percentage value. Must be a positive integer number.
|
2384
|
+
# * *Returns* - The converter object.
|
2385
|
+
def setScaleFactor(scale_factor)
|
2386
|
+
if (!(Integer(scale_factor) > 0))
|
2387
|
+
raise Error.new(Pdfcrowd.create_invalid_value_message(scale_factor, "scale_factor", "html-to-image", "Must be a positive integer number.", "set_scale_factor"), 470);
|
2388
|
+
end
|
2389
|
+
|
2390
|
+
@fields['scale_factor'] = scale_factor
|
2391
|
+
self
|
2392
|
+
end
|
2393
|
+
|
2381
2394
|
# Turn on the debug logging. Details about the conversion are stored in the debug log. The URL of the log can be obtained from the getDebugLogUrl method or available in conversion statistics.
|
2382
2395
|
#
|
2383
2396
|
# * +debug_log+ - Set to true to enable the debug logging.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdfcrowd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pdfcrowd Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: The Pdfcrowd API lets you easily convert between HTML, PDF and various
|
14
14
|
image formats.
|