pdfcrowd 4.6.0 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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: 301583ff3d057f5ef3e0408ab0d147c9627c96d1
|
4
|
+
data.tar.gz: 8bbbdbd1bb7dd1524b32aa8e1cc883fb944b47db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dfc510d993c5fa9df9be5d56586b0b8b544153e580792aba031311e5ec8982699193726d161596b5a5b41df264de41cc660d92bd21f161b080ff43250fac8e0
|
7
|
+
data.tar.gz: a99a550113d600be4c0f028bad714b2405a72a0867ac9e23cb43002723bd329e0b842ada4f99988cbc1f6e2ad42bb3900bf23725251d07c390255f1187926aa5
|
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.7.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.7.0 (http://pdfcrowd.com)')
|
545
545
|
|
546
546
|
@retry_count = 1
|
547
547
|
end
|
@@ -1501,6 +1501,19 @@ module Pdfcrowd
|
|
1501
1501
|
self
|
1502
1502
|
end
|
1503
1503
|
|
1504
|
+
# Specifies the scaling mode used for fitting the HTML contents to the print area.
|
1505
|
+
#
|
1506
|
+
# * +smart_scaling_mode+ - The smart scaling mode. Allowed values are default, disabled, viewport-fit, content-fit, single-page-fit.
|
1507
|
+
# * *Returns* - The converter object.
|
1508
|
+
def setSmartScalingMode(smart_scaling_mode)
|
1509
|
+
unless /(?i)^(default|disabled|viewport-fit|content-fit|single-page-fit)$/.match(smart_scaling_mode)
|
1510
|
+
raise Error.new(Pdfcrowd.create_invalid_value_message(smart_scaling_mode, "smart_scaling_mode", "html-to-pdf", "Allowed values are default, disabled, viewport-fit, content-fit, single-page-fit.", "set_smart_scaling_mode"), 470);
|
1511
|
+
end
|
1512
|
+
|
1513
|
+
@fields['smart_scaling_mode'] = smart_scaling_mode
|
1514
|
+
self
|
1515
|
+
end
|
1516
|
+
|
1504
1517
|
# Set the scaling factor (zoom) for the main page area.
|
1505
1518
|
#
|
1506
1519
|
# * +scale_factor+ - The percentage value. The value must be in the range 10-500.
|
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.7.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-03-
|
11
|
+
date: 2019-03-21 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.
|