pdfcrowd 5.12.1 → 5.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pdfcrowd.rb +15 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54cd69d25cfda77bbca04f440303be338382e9392091e9b1a9dd3f34f882cb1e
4
- data.tar.gz: d0c5e879c75a8f62a191ecb12dc1cab7d0301e75380337223729aa715ae7b59a
3
+ metadata.gz: f960da37e7c3184d59d432b8b3c023c7eb187f658e7f124d20b4b3d92ce6bf17
4
+ data.tar.gz: a5b87ba982098b105599746db23251f9050d12f159940233ade39b0447cae929
5
5
  SHA512:
6
- metadata.gz: 2ef4b55ad852187274578c9c91a1fbb309c34706a1bf7fd8b85b9f1c84ab757e256228fa84b1dd6a26893cd02b77af391b598c05a979fcd296f8b99e6b541038
7
- data.tar.gz: b79f66e6e0224b611b7d6941d438ad156809eb79ed0957a61844e0bbe0752262941cdfe37d65f3afe281fc87dc171ad2dce234e351ba2c6b2e4df8990f4dd1a5
6
+ metadata.gz: a79f3bfc9990447d45d6e388da9ff072fd30cb6bada3549e61439662d8041dc8fd2e5eb1c5ba496adf7539cfa6d49e17f327d99dd9e099e5779f55f7d1e24042
7
+ data.tar.gz: db213d0e3d657ed2e5d66498470c810a3703fd6cb6a8631ce15eec33442d5b398ab655423dfc18d4ee13a012bc7e19c135e5be93ade21a808a9858d58cf8cdc5
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 = '5.12.1'
533
+ CLIENT_VERSION = '5.13.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/5.12.1 (https://pdfcrowd.com)')
544
+ setUserAgent('pdfcrowd_ruby_client/5.13.0 (https://pdfcrowd.com)')
545
545
 
546
546
  @retry_count = 1
547
547
  @converter_version = '20.10'
@@ -1185,6 +1185,19 @@ module Pdfcrowd
1185
1185
  self
1186
1186
  end
1187
1187
 
1188
+ # Specifies which blank pages to exclude from the output document.
1189
+ #
1190
+ # * +pages+ - The empty page behavior. Allowed values are trailing, none.
1191
+ # * *Returns* - The converter object.
1192
+ def setRemoveBlankPages(pages)
1193
+ unless /(?i)^(trailing|none)$/.match(pages)
1194
+ raise Error.new(Pdfcrowd.create_invalid_value_message(pages, "setRemoveBlankPages", "html-to-pdf", "Allowed values are trailing, none.", "set_remove_blank_pages"), 470);
1195
+ end
1196
+
1197
+ @fields['remove_blank_pages'] = pages
1198
+ self
1199
+ end
1200
+
1188
1201
  # Load an HTML code from the specified URL and use it as the page header. The following classes can be used in the HTML. The content of the respective elements will be expanded as follows: pdfcrowd-page-count - the total page count of printed pages pdfcrowd-page-number - the current page number pdfcrowd-source-url - the source URL of the converted document pdfcrowd-source-title - the title of the converted document The following attributes can be used: data-pdfcrowd-number-format - specifies the type of the used numerals. Allowed values: arabic - Arabic numerals, they are used by default roman - Roman numerals eastern-arabic - Eastern Arabic numerals bengali - Bengali numerals devanagari - Devanagari numerals thai - Thai numerals east-asia - Chinese, Vietnamese, Japanese and Korean numerals chinese-formal - Chinese formal numerals Please contact us if you need another type of numerals. Example: <span class='pdfcrowd-page-number' data-pdfcrowd-number-format='roman'></span> data-pdfcrowd-placement - specifies where to place the source URL. Allowed values: The URL is inserted to the content Example: <span class='pdfcrowd-source-url'></span> will produce <span>http://example.com</span> href - the URL is set to the href attribute Example: <a class='pdfcrowd-source-url' data-pdfcrowd-placement='href'>Link to source</a> will produce <a href='http://example.com'>Link to source</a> href-and-content - the URL is set to the href attribute and to the content Example: <a class='pdfcrowd-source-url' data-pdfcrowd-placement='href-and-content'></a> will produce <a href='http://example.com'>http://example.com</a>
1189
1202
  #
1190
1203
  # * +url+ - The supported protocols are http:// and https://.
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: 5.12.1
4
+ version: 5.13.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: 2023-02-15 00:00:00.000000000 Z
11
+ date: 2023-03-30 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.