pdfcrowd 6.6.0 → 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 +51 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9686527e9d64eae1da885d40a6bee170bc285ec8bdd91f0b34cc79de42307ff4
4
- data.tar.gz: b14aab1f17b5646ee2a4ae00d93ae94d20a347308d38ad0c7de5c84606ef0ede
3
+ metadata.gz: 4bba99d234831af239ed3bd92bae83e4104e323c821e07818711879918072a32
4
+ data.tar.gz: '0203388c40aa2a65cfbca7791bfb155d5e8512494c9ba7a03c5d7ed092c6cded'
5
5
  SHA512:
6
- metadata.gz: f33336af2906826157c8a881dd711a1b7aa5dc9cb338df130ad20e4b432b8001f3cd674be3261f370997c21b37225a69c5d610ca7bf4eb48fc4f8b1e060a3f61
7
- data.tar.gz: 7dddff5177a63e2af8d93d945d82e2371f1cb58032bd68d87555068e4eba646a565e41478de6d2abdc227a206178368e432121e750432c07b2235c3b7cf884ca
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.6.0'
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.6.0 (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)
@@ -3416,6 +3443,17 @@ module Pdfcrowd
3416
3443
  self
3417
3444
  end
3418
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
+
3419
3457
  # @see https://pdfcrowd.com/api/pdf-to-pdf-ruby/ref/#set_page_layout
3420
3458
  def setPageLayout(layout)
3421
3459
  unless /(?i)^(single-page|one-column|two-column-left|two-column-right)$/.match(layout)
@@ -4090,6 +4128,17 @@ module Pdfcrowd
4090
4128
  self
4091
4129
  end
4092
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
+
4093
4142
  # @see https://pdfcrowd.com/api/image-to-pdf-ruby/ref/#set_page_layout
4094
4143
  def setPageLayout(layout)
4095
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.6.0
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: 2026-05-21 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.