pdfcrowd 6.2.0 → 6.2.1

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 +6 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ced48bdced7379753e37229aab427f954e8f072a8cbc1d7f9dd5fcec926db33
4
- data.tar.gz: a00e3aec16dd5fcdc70534b28955ca2240095090c0b34235c90afdc75583082b
3
+ metadata.gz: f97c72508c22bb03da1413d7868420657d6e93fe0447913d93b71c1dc9bfa1fb
4
+ data.tar.gz: 3956525e9d2c6ee9c490684fcda82e933e98fca0bbc5d4176df112ef03c8cf1d
5
5
  SHA512:
6
- metadata.gz: 6f256d7dd7f6ca51472abe629e158238eaad99e2033f9ea8b05c21f9ab547de857f8d2463b573edaa071ed9bf47296f9afb6192452b78eec0b69b1020b8053ba
7
- data.tar.gz: 7c31d569baf3b0a1dc81eb9966d10d517befdee64ed75021202e999a2155d60d57c7e6504178b508ec0eaf954cce9d44d6bef57bcf4075c296cd17a30d842f03
6
+ metadata.gz: f56fbea6b28e21d0f74bde3cb9e33e04cabbb20f38ee4e3a54f46c722f8dba14ed35be040f0c464b7c0649bbac33b896f7d9d4d136d8f45986c821beab727fde
7
+ data.tar.gz: 3a50f9412ad1f5236c0ab3d335c50aad84a9f41bf76aef3b9e381c35fd0fb57aac85d62dee9f1056ad2b19f30838d883029e63d69722a57919ecffde75860c22
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 = '6.2.0'
533
+ CLIENT_VERSION = '6.2.1'
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/6.2.0 (https://pdfcrowd.com)')
544
+ setUserAgent('pdfcrowd_ruby_client/6.2.1 (https://pdfcrowd.com)')
545
545
 
546
546
  @retry_count = 1
547
547
  @converter_version = '24.04'
@@ -1098,11 +1098,11 @@ module Pdfcrowd
1098
1098
 
1099
1099
  # Set the viewport width for formatting the HTML content when generating a PDF. By specifying a viewport width, you can control how the content is rendered, ensuring it mimics the appearance on various devices or matches specific design requirements.
1100
1100
  #
1101
- # * +width+ - The width of the viewport. The value must be "balanced", "small", "medium", "large", "extra-large", or a number in the range 96-65000.
1101
+ # * +width+ - The width of the viewport. The value must be "balanced", "small", "medium", "large", "extra-large", or a number in the range 96-65000px.
1102
1102
  # * *Returns* - The converter object.
1103
1103
  def setContentViewportWidth(width)
1104
- unless /(?i)^(balanced|small|medium|large|extra-large|[0-9]+)$/.match(width)
1105
- raise Error.new(Pdfcrowd.create_invalid_value_message(width, "setContentViewportWidth", "html-to-pdf", "The value must be \"balanced\", \"small\", \"medium\", \"large\", \"extra-large\", or a number in the range 96-65000.", "set_content_viewport_width"), 470);
1104
+ unless /(?i)^(balanced|small|medium|large|extra-large|[0-9]+(px)?)$/.match(width)
1105
+ raise Error.new(Pdfcrowd.create_invalid_value_message(width, "setContentViewportWidth", "html-to-pdf", "The value must be \"balanced\", \"small\", \"medium\", \"large\", \"extra-large\", or a number in the range 96-65000px.", "set_content_viewport_width"), 470);
1106
1106
  end
1107
1107
 
1108
1108
  @fields['content_viewport_width'] = width
@@ -1114,7 +1114,7 @@ module Pdfcrowd
1114
1114
  # * +height+ - The viewport height. The value must be "auto", "large", or a number.
1115
1115
  # * *Returns* - The converter object.
1116
1116
  def setContentViewportHeight(height)
1117
- unless /(?i)^(auto|large|[0-9]+)$/.match(height)
1117
+ unless /(?i)^(auto|large|[0-9]+(px)?)$/.match(height)
1118
1118
  raise Error.new(Pdfcrowd.create_invalid_value_message(height, "setContentViewportHeight", "html-to-pdf", "The value must be \"auto\", \"large\", or a number.", "set_content_viewport_height"), 470);
1119
1119
  end
1120
1120
 
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: 6.2.0
4
+ version: 6.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pdfcrowd Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-01 00:00:00.000000000 Z
11
+ date: 2024-10-10 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.