pdfcrowd 4.3.1 → 4.3.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pdfcrowd.rb +11 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c95364dec9f567789987dd67ff9f923b82220720
4
- data.tar.gz: 166d748d6a9df3da63af4a1eccde9da869271ba7
3
+ metadata.gz: 70ce6bde0b6a7e2b7ebdf15c7c4c1a4d8df843c5
4
+ data.tar.gz: 43173f73b943a1f742081432dd8fd6e0f45bca1e
5
5
  SHA512:
6
- metadata.gz: 9b6b9dac1e568bb8b4dc7b49a47186a3997be87020f488304b6ebce1cbbdd331de9963128884a3e9c9cd28550151c15b845a847b5861bac0c10e27bd09558aec
7
- data.tar.gz: 542f7f128a2ba325f1c54647c18dc18deac01c2e91da5abc41895cb79890f8bfe2019a364c7ee537bf94c9cb80908a685e8c5f6d9fc820f062ee91ca1cf9288d
6
+ metadata.gz: 9a5c3d6e4e508e1d909369a4c4ff22111fcaa16ccab9dc88f53a04d32be779bb053dff3a17059fbad3c9afbdd316c6f1c9441c1a64d5d6803d481cba236785e3
7
+ data.tar.gz: db2c8471fb554d7c283ea7b4ac9103e672d92e669c0875e1366611e1ab947b85f9970ed55723432a6506222886d48c54a1124dcc335b7182ad64c012080733d0
@@ -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.3.1'
533
+ CLIENT_VERSION = '4.3.2'
534
534
 
535
535
  def self.float_to_string(value)
536
536
  value.to_s.sub(',', '.')
@@ -545,7 +545,7 @@ module Pdfcrowd
545
545
 
546
546
  setProxy(nil, nil, nil, nil)
547
547
  setUseHttp(false)
548
- setUserAgent('pdfcrowd_ruby_client/4.3.1 (http://pdfcrowd.com)')
548
+ setUserAgent('pdfcrowd_ruby_client/4.3.2 (http://pdfcrowd.com)')
549
549
 
550
550
  @retry_count = 1
551
551
  end
@@ -1501,6 +1501,15 @@ module Pdfcrowd
1501
1501
  self
1502
1502
  end
1503
1503
 
1504
+ # Disable the intelligent shrinking strategy that tries to optimally fit the HTML contents to a PDF page.
1505
+ #
1506
+ # * +disable_smart_shrinking+ - Set to true to disable the intelligent shrinking strategy.
1507
+ # * *Returns* - The converter object.
1508
+ def setDisableSmartShrinking(disable_smart_shrinking)
1509
+ @fields['disable_smart_shrinking'] = disable_smart_shrinking
1510
+ self
1511
+ end
1512
+
1504
1513
  # Create linearized PDF. This is also known as Fast Web View.
1505
1514
  #
1506
1515
  # * +linearize+ - Set to true to create linearized PDF.
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.3.1
4
+ version: 4.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pdfcrowd Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-15 00:00:00.000000000 Z
11
+ date: 2018-05-25 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.