pdfcrowd 6.5.4 → 6.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pdfcrowd.rb +71 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf6d22d91bf2370c80cbe30f6b88346898ec032c89b344ebd7aa9234fd0ba26b
4
- data.tar.gz: 570b20435a53f3e4de1d27e5f564f5ebbf8adfce50770750c07177c95afdbd9a
3
+ metadata.gz: 4bba99d234831af239ed3bd92bae83e4104e323c821e07818711879918072a32
4
+ data.tar.gz: '0203388c40aa2a65cfbca7791bfb155d5e8512494c9ba7a03c5d7ed092c6cded'
5
5
  SHA512:
6
- metadata.gz: 74ce8b0867a294436e30cd964616506488e0c01341648a65ccd8b59fd12a875fc9631e252e316adcc07149c427cbedc5a38e50a519704c20b03eb96dbf7bd39c
7
- data.tar.gz: e11c97a80b6705a873e469463e972eb4cadd785639ce2269ea311267080268dd3ff0c3e71180b36e42eab66d8e640191f3bd5c8773b76097d11c82504c2bd011
6
+ metadata.gz: d5519ab74dc45efc3dd5bdadb8d5d76200700d9c63a577542615f4becfdcfa696ea973228c1b5b8c0feb0ba32f4c50bef7b410d97b7fcd0c1500cbcb14b34ba2
7
+ data.tar.gz: bfcb4c98ae7b999eb541c2e66103ce459cfe8c2c8a222c2f776daec2acf7cc4c176ffff86f28e7305790558bfb96f8dc3409be7c4bd67233d26d9cb2b5adf167
data/lib/pdfcrowd.rb CHANGED
@@ -558,7 +558,7 @@ end
558
558
  module Pdfcrowd
559
559
  HOST = ENV["PDFCROWD_HOST"] || 'api.pdfcrowd.com'
560
560
  MULTIPART_BOUNDARY = '----------ThIs_Is_tHe_bOUnDary_$'
561
- CLIENT_VERSION = '6.5.4'
561
+ CLIENT_VERSION = '6.7.0'
562
562
 
563
563
  class ConnectionHelper
564
564
  def initialize(user_name, api_key)
@@ -569,7 +569,7 @@ module Pdfcrowd
569
569
 
570
570
  setProxy(nil, nil, nil, nil)
571
571
  setUseHttp(false)
572
- setUserAgent('pdfcrowd_ruby_client/6.5.4 (https://pdfcrowd.com)')
572
+ setUserAgent('pdfcrowd_ruby_client/6.7.0 (https://pdfcrowd.com)')
573
573
 
574
574
  @retry_count = 1
575
575
  @converter_version = '24.04'
@@ -1672,6 +1672,33 @@ module Pdfcrowd
1672
1672
  self
1673
1673
  end
1674
1674
 
1675
+ # @see https://pdfcrowd.com/api/html-to-pdf-ruby/ref/#set_conformance
1676
+ def setConformance(conformance)
1677
+ unless /(?i)^(PDF\/A-2a|PDF\/A-2b|PDF\/A-2u|PDF\/A-3a|PDF\/A-3b|PDF\/A-3u|PDF\/A-4|PDF\/A-4e|PDF\/A-4f)$/.match(conformance)
1678
+ raise Error.new(Pdfcrowd.create_invalid_value_message(conformance, "setConformance", "html-to-pdf", "Allowed values are PDF/A-2a, PDF/A-2b, PDF/A-2u, PDF/A-3a, PDF/A-3b, PDF/A-3u, PDF/A-4, PDF/A-4e, PDF/A-4f.", "set_conformance"), 470);
1679
+ end
1680
+
1681
+ @fields['conformance'] = conformance
1682
+ self
1683
+ end
1684
+
1685
+ # @see https://pdfcrowd.com/api/html-to-pdf-ruby/ref/#set_tagged_pdf
1686
+ def setTaggedPdf(value)
1687
+ @fields['tagged_pdf'] = value
1688
+ self
1689
+ end
1690
+
1691
+ # @see https://pdfcrowd.com/api/html-to-pdf-ruby/ref/#add_attachment
1692
+ def addAttachment(attachment)
1693
+ if (!(File.file?(attachment) && !File.zero?(attachment)))
1694
+ raise Error.new(Pdfcrowd.create_invalid_value_message(attachment, "addAttachment", "html-to-pdf", "The file must exist and not be empty.", "add_attachment"), 470);
1695
+ end
1696
+
1697
+ @files['attachment_%s' % @file_id] = attachment
1698
+ @file_id += 1
1699
+ self
1700
+ end
1701
+
1675
1702
  # @see https://pdfcrowd.com/api/html-to-pdf-ruby/ref/#set_page_layout
1676
1703
  def setPageLayout(layout)
1677
1704
  unless /(?i)^(single-page|one-column|two-column-left|two-column-right)$/.match(layout)
@@ -1810,6 +1837,16 @@ module Pdfcrowd
1810
1837
  self
1811
1838
  end
1812
1839
 
1840
+ # @see https://pdfcrowd.com/api/html-to-pdf-ruby/ref/#set_data_variable_markers
1841
+ def setDataVariableMarkers(markers)
1842
+ unless /(?i)^(standard|square|angle)$/.match(markers)
1843
+ raise Error.new(Pdfcrowd.create_invalid_value_message(markers, "setDataVariableMarkers", "html-to-pdf", "Allowed values are standard, square, angle.", "set_data_variable_markers"), 470);
1844
+ end
1845
+
1846
+ @fields['data_variable_markers'] = markers
1847
+ self
1848
+ end
1849
+
1813
1850
  # @see https://pdfcrowd.com/api/html-to-pdf-ruby/ref/#set_data_options
1814
1851
  def setDataOptions(options)
1815
1852
  @fields['data_options'] = options
@@ -2546,6 +2583,16 @@ module Pdfcrowd
2546
2583
  self
2547
2584
  end
2548
2585
 
2586
+ # @see https://pdfcrowd.com/api/html-to-image-ruby/ref/#set_data_variable_markers
2587
+ def setDataVariableMarkers(markers)
2588
+ unless /(?i)^(standard|square|angle)$/.match(markers)
2589
+ raise Error.new(Pdfcrowd.create_invalid_value_message(markers, "setDataVariableMarkers", "html-to-image", "Allowed values are standard, square, angle.", "set_data_variable_markers"), 470);
2590
+ end
2591
+
2592
+ @fields['data_variable_markers'] = markers
2593
+ self
2594
+ end
2595
+
2549
2596
  # @see https://pdfcrowd.com/api/html-to-image-ruby/ref/#set_data_options
2550
2597
  def setDataOptions(options)
2551
2598
  @fields['data_options'] = options
@@ -3396,6 +3443,17 @@ module Pdfcrowd
3396
3443
  self
3397
3444
  end
3398
3445
 
3446
+ # @see https://pdfcrowd.com/api/pdf-to-pdf-ruby/ref/#add_attachment
3447
+ def addAttachment(attachment)
3448
+ if (!(File.file?(attachment) && !File.zero?(attachment)))
3449
+ raise Error.new(Pdfcrowd.create_invalid_value_message(attachment, "addAttachment", "pdf-to-pdf", "The file must exist and not be empty.", "add_attachment"), 470);
3450
+ end
3451
+
3452
+ @files['attachment_%s' % @file_id] = attachment
3453
+ @file_id += 1
3454
+ self
3455
+ end
3456
+
3399
3457
  # @see https://pdfcrowd.com/api/pdf-to-pdf-ruby/ref/#set_page_layout
3400
3458
  def setPageLayout(layout)
3401
3459
  unless /(?i)^(single-page|one-column|two-column-left|two-column-right)$/.match(layout)
@@ -4070,6 +4128,17 @@ module Pdfcrowd
4070
4128
  self
4071
4129
  end
4072
4130
 
4131
+ # @see https://pdfcrowd.com/api/image-to-pdf-ruby/ref/#add_attachment
4132
+ def addAttachment(attachment)
4133
+ if (!(File.file?(attachment) && !File.zero?(attachment)))
4134
+ raise Error.new(Pdfcrowd.create_invalid_value_message(attachment, "addAttachment", "image-to-pdf", "The file must exist and not be empty.", "add_attachment"), 470);
4135
+ end
4136
+
4137
+ @files['attachment_%s' % @file_id] = attachment
4138
+ @file_id += 1
4139
+ self
4140
+ end
4141
+
4073
4142
  # @see https://pdfcrowd.com/api/image-to-pdf-ruby/ref/#set_page_layout
4074
4143
  def setPageLayout(layout)
4075
4144
  unless /(?i)^(single-page|one-column|two-column-left|two-column-right)$/.match(layout)
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.5.4
4
+ version: 6.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: 2025-12-10 00:00:00.000000000 Z
11
+ date: 2026-08-03 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.