gotenberg-ruby 1.0.12 → 1.0.14

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88445f0f58092b9e2d6be42c5cc98a7a89e26690308b11d61b58335f843882c0
4
- data.tar.gz: cf50d4938b42a7684d57a377e06743e599a0a3224da06d073a17aeeaee203d87
3
+ metadata.gz: 9441196804cb75c639c8b1bd57debb0f08c98c82202934f811d1b3b52db1192b
4
+ data.tar.gz: 0e74735c6db783cc8e118496bcedb2bc14c7e577af7b7c1ba4574934dbc7871c
5
5
  SHA512:
6
- metadata.gz: 6cc1b8b2e3ef620d6bf6d3468ad65e3f005cbd86d6f658ea908b7acfb4ef584e5f72c85f0f0ffdc22cb39d974d9fa2f9484c087c24154ae88cb80561e32b6e1e
7
- data.tar.gz: 44db5856d4e4ca62396296a968d69dde66f547e5e98a012f0ea1061c254ca2a4525ad36b3007c6d5e8dd47e7ab11ea9d7feea924edc9be738db123043b915197
6
+ metadata.gz: 15879cf272467ac54f419e65737f4f61bab65efbf8cb40c874471255d9ff72643cd54f0a69d0e885c7b2d579160bda48b6ee04ec6bf027569d55a295afd70d59
7
+ data.tar.gz: d5df1c240951f0f7aaf57fbc0c66c504e61b662d2e161fcbda7a59963191d0af53ed73a03e019c010e54d9222c77b1e4a843fffa053b01ea880ca5a23a4dae2d
data/README.md CHANGED
@@ -53,11 +53,11 @@ After having created the HTTP request (see below), you have two options:
53
53
 
54
54
  ### Chromium
55
55
 
56
- The [Chromium module](https://gotenberg.dev/docs/modules/chromium) interacts with the Chromium browser to convert HTML documents to PDF.
56
+ The [Chromium module](https://gotenberg.dev/docs/routes#convert-with-chromium) interacts with the Chromium browser to convert HTML documents to PDF.
57
57
 
58
58
  #### Convert a target URL to PDF
59
59
 
60
- See https://gotenberg.dev/docs/modules/chromium#url.
60
+ See https://gotenberg.dev/docs/routes#url-into-pdf-route.
61
61
 
62
62
  Converting a target URL to PDF is as simple as:
63
63
 
@@ -146,7 +146,7 @@ gotenberg_stylesheet_tag 'application.css', inline: true, skip_analyze: true
146
146
 
147
147
  #### Convert an HTML document to PDF
148
148
 
149
- See https://gotenberg.dev/docs/modules/chromium#html.
149
+ See See https://gotenberg.dev/docs/routes#url-into-pdf-route.
150
150
 
151
151
  Prepare HTML content with build-in Rails methods:
152
152
 
@@ -210,7 +210,7 @@ end
210
210
 
211
211
  #### Convert one or more markdown files to PDF
212
212
 
213
- See https://gotenberg.dev/docs/modules/chromium#markdown.
213
+ See https://gotenberg.dev/docs/routes#markdown-files-into-pdf-route.
214
214
 
215
215
  You may convert markdown files with:
216
216
 
@@ -479,7 +479,7 @@ end
479
479
 
480
480
  #### PDF Format
481
481
 
482
- See https://gotenberg.dev/docs/modules/pdf-engines#engines.
482
+ See https://gotenberg.dev/docs/routes#pdfa-chromium.
483
483
 
484
484
  You may set the PDF format of the resulting PDF with:
485
485
 
@@ -492,12 +492,12 @@ end
492
492
 
493
493
  ### LibreOffice
494
494
 
495
- The [LibreOffice module](https://gotenberg.dev/docs/modules/libreoffice) interacts with [LibreOffice](https://www.libreoffice.org/)
495
+ The [LibreOffice module](https://gotenberg.dev/docs/routes#convert-with-libreoffice) interacts with [LibreOffice](https://www.libreoffice.org/)
496
496
  to convert documents to PDF, thanks to [unoconv](https://github.com/unoconv/unoconv).
497
497
 
498
498
  #### Convert documents to PDF
499
499
 
500
- See https://gotenberg.dev/docs/modules/libreoffice#route.
500
+ See https://gotenberg.dev/docs/routes#office-documents-into-pdfs-route.
501
501
 
502
502
  Converting a document to PDF is as simple as:
503
503
 
@@ -557,7 +557,7 @@ end
557
557
 
558
558
  #### PDF format
559
559
 
560
- See https://gotenberg.dev/docs/modules/pdf-engines#engines.
560
+ See https://gotenberg.dev/docs/routes#pdfa-libreoffice.
561
561
 
562
562
  You may set the PDF format of the resulting PDF(s) with:
563
563
 
@@ -582,11 +582,11 @@ end
582
582
 
583
583
  ### PDF Engines
584
584
 
585
- The [PDF Engines module](https://gotenberg.dev/docs/modules/pdf-engines) gathers all engines that can manipulate PDF files.
585
+ The [PDF Engines module](https://gotenberg.dev/docs/configuration#pdf-engines) gathers all engines that can manipulate PDF files.
586
586
 
587
587
  #### Merge PDFs
588
588
 
589
- See https://gotenberg.dev/docs/modules/pdf-engines#merge.
589
+ See https://gotenberg.dev/docs/routes#merge-pdfs-route.
590
590
 
591
591
  Merging PDFs is as simple as:
592
592
 
@@ -609,7 +609,7 @@ end
609
609
 
610
610
  #### Convert to a specific PDF format
611
611
 
612
- See https://gotenberg.dev/docs/modules/pdf-engines#convert.
612
+ See https://gotenberg.dev/docs/routes#convert-into-pdfa--pdfua-route.
613
613
 
614
614
  You may convert a PDF to a specific PDF format with:
615
615
 
@@ -634,7 +634,7 @@ end
634
634
 
635
635
  ### Webhook
636
636
 
637
- The [Webhook module](https://gotenberg.dev/docs/modules/webhook) is a Gotenberg middleware that sends the API
637
+ The [Webhook module](https://gotenberg.dev/docs/webhook) is a Gotenberg middleware that sends the API
638
638
  responses to callbacks.
639
639
 
640
640
  ⚠️ You cannot use the `document.to_binary` method if you're using the webhook feature.
@@ -4,6 +4,11 @@ module Gotenberg
4
4
  class Chromium
5
5
  module Properties
6
6
 
7
+ # Define whether to print the entire content in one single page
8
+ def single_page
9
+ properties['singlePage'] = true
10
+ end
11
+
7
12
  # Overrides the default paper size, in inches. Examples of paper size (width x height):
8
13
  # Letter - 8.5 x 11 (default)
9
14
  # Legal - 8.5 x 14
@@ -3,11 +3,12 @@ module Gotenberg
3
3
  attr_accessor :backtrace_dir, :html_debug
4
4
 
5
5
  def initialize
6
- @backtrace_dir = if defined?(Rails)
7
- Rails.root.join('tmp', 'gotenberg')
8
- else
9
- Dir.mktmpdir
10
- end
6
+ @backtrace_dir =
7
+ if defined?(Rails) && Rails.respond_to?(:root)
8
+ Rails.root.join('tmp', 'gotenberg')
9
+ else
10
+ Dir.mktmpdir
11
+ end
11
12
 
12
13
  @html_debug = false
13
14
  end
@@ -1,3 +1,3 @@
1
1
  module Gotenberg
2
- VERSION = '1.0.12'
2
+ VERSION = '1.0.14'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gotenberg-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - sanzstez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-26 00:00:00.000000000 Z
11
+ date: 2025-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  requirements: []
128
- rubygems_version: 3.4.10
128
+ rubygems_version: 3.5.22
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: A gem that provides a client interface for the Gotenberg PDF generate service