pdfserve_client 2.0.0 → 2.0.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.
- checksums.yaml +4 -4
- data/README.md +12 -12
- data/lib/{pdfserve_client → pdfserve}/client.rb +4 -4
- data/lib/{pdfserve_client → pdfserve}/merge.rb +1 -1
- data/lib/{pdfserve_client → pdfserve}/split.rb +1 -1
- data/lib/{pdfserve_client → pdfserve}/stamp.rb +1 -1
- data/lib/pdfserve/version.rb +5 -0
- metadata +8 -9
- data/lib/pdfserve_client/version.rb +0 -5
- data/lib/pdfserve_client.rb +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d153b8a5ff8112445c47ded72e265cb5cc06ae776a7311dc81efe0c6d27a643f
|
|
4
|
+
data.tar.gz: d76bead370c4ddca6764bc1d2a05ae8b29fb53300d57afda8c2fe176ce5e85d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0789afd569c402b16aed0b1eb7df08fc720a033097e6ab85bfc990db8f2d6ca15455cffa7aecd0b05a3ae1ea41e22421996859be522b52ce0ddfc667ed251f4c'
|
|
7
|
+
data.tar.gz: 74394ec2bb6eb1ff0edbbe149524b14bb4cc68881779bdfd59dc7b2914839259ed626dec863fb29ee5805a3954aa0bef22a974d6006ee84071d27a2ca587f1ec
|
data/README.md
CHANGED
|
@@ -21,7 +21,7 @@ bundle install
|
|
|
21
21
|
### PDFServe Client
|
|
22
22
|
|
|
23
23
|
```ruby
|
|
24
|
-
require '
|
|
24
|
+
require 'pdfserve/client'
|
|
25
25
|
|
|
26
26
|
file_urls = [
|
|
27
27
|
'https://s3-public.de/file1.pdf',
|
|
@@ -29,7 +29,7 @@ file_urls = [
|
|
|
29
29
|
]
|
|
30
30
|
output_path = './output.pdf'
|
|
31
31
|
|
|
32
|
-
client =
|
|
32
|
+
client = Pdfserve::Client.new(api_endpoint: 'https://your.custom.endpoint')
|
|
33
33
|
client.merge(file_urls:, output_path:)
|
|
34
34
|
```
|
|
35
35
|
|
|
@@ -37,7 +37,7 @@ or with a token
|
|
|
37
37
|
|
|
38
38
|
```ruby
|
|
39
39
|
|
|
40
|
-
require '
|
|
40
|
+
require 'pdfserve/client'
|
|
41
41
|
|
|
42
42
|
file_urls = [
|
|
43
43
|
'https://s3-public.de/file1.pdf',
|
|
@@ -45,7 +45,7 @@ file_urls = [
|
|
|
45
45
|
]
|
|
46
46
|
output_path = './output.pdf'
|
|
47
47
|
|
|
48
|
-
client =
|
|
48
|
+
client = Pdfserve::Client.new(api_endpoint: 'https://your.custom.endpoint', api_token: 'the-token')
|
|
49
49
|
client.merge(file_urls:, output_path:)
|
|
50
50
|
```
|
|
51
51
|
|
|
@@ -56,12 +56,12 @@ client.merge(file_urls:, output_path:)
|
|
|
56
56
|
### PDF Stamp
|
|
57
57
|
|
|
58
58
|
```ruby
|
|
59
|
-
require '
|
|
59
|
+
require 'pdfserve/client'
|
|
60
60
|
|
|
61
61
|
file_url = 'https://s3-public.de/file1.pdf'
|
|
62
62
|
stamp_text = 'A1'
|
|
63
63
|
|
|
64
|
-
client =
|
|
64
|
+
client = Pdfserve::Client.new(api_endpoint: 'https://your.custom.endpoint')
|
|
65
65
|
client.stamp(file_url:, stamp_text:)
|
|
66
66
|
```
|
|
67
67
|
|
|
@@ -69,12 +69,12 @@ or with a token
|
|
|
69
69
|
|
|
70
70
|
```ruby
|
|
71
71
|
|
|
72
|
-
require '
|
|
72
|
+
require 'pdfserve/client'
|
|
73
73
|
|
|
74
74
|
file_url = 'https://s3-public.de/file1.pdf'
|
|
75
75
|
stamp_text = 'A1'
|
|
76
76
|
|
|
77
|
-
client =
|
|
77
|
+
client = Pdfserve::Client.new(api_endpoint: 'https://your.custom.endpoint', api_token: 'the-token')
|
|
78
78
|
client.stamp(file_url:, stamp_text:)
|
|
79
79
|
```
|
|
80
80
|
|
|
@@ -84,12 +84,12 @@ client.stamp(file_url:, stamp_text:)
|
|
|
84
84
|
### PDF Split
|
|
85
85
|
|
|
86
86
|
```ruby
|
|
87
|
-
require '
|
|
87
|
+
require 'pdfserve/client'
|
|
88
88
|
|
|
89
89
|
file_url = 'https://s3-public.de/file1.pdf'
|
|
90
90
|
pages = '1-3,4,6-8'
|
|
91
91
|
|
|
92
|
-
client =
|
|
92
|
+
client = Pdfserve::Client.new(api_endpoint: 'https://your.custom.endpoint')
|
|
93
93
|
client.split(file_url:, pages:)
|
|
94
94
|
```
|
|
95
95
|
|
|
@@ -97,12 +97,12 @@ or with a token
|
|
|
97
97
|
|
|
98
98
|
```ruby
|
|
99
99
|
|
|
100
|
-
require '
|
|
100
|
+
require 'pdfserve/client'
|
|
101
101
|
|
|
102
102
|
file_url = 'https://s3-public.de/file1.pdf'
|
|
103
103
|
pages = '1-3,4,6-8'
|
|
104
104
|
|
|
105
|
-
client =
|
|
105
|
+
client = Pdfserve::Client.new(api_endpoint: 'https://your.custom.endpoint', api_token: 'the-token')
|
|
106
106
|
client.split(file_url:, pages:)
|
|
107
107
|
```
|
|
108
108
|
|
|
@@ -2,7 +2,7 @@ require_relative "merge"
|
|
|
2
2
|
require_relative "stamp"
|
|
3
3
|
require_relative "split"
|
|
4
4
|
|
|
5
|
-
module
|
|
5
|
+
module Pdfserve
|
|
6
6
|
class Client
|
|
7
7
|
attr_reader :merge_service, :stamp_service, :split_service
|
|
8
8
|
|
|
@@ -26,15 +26,15 @@ module PdfserveClient
|
|
|
26
26
|
private
|
|
27
27
|
|
|
28
28
|
def merge_service
|
|
29
|
-
|
|
29
|
+
Pdfserve::Merge.new(api_endpoint: @api_endpoint, api_token: @api_token)
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
def stamp_service
|
|
33
|
-
|
|
33
|
+
Pdfserve::Stamp.new(api_endpoint: @api_endpoint, api_token: @api_token)
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
def split_service
|
|
37
|
-
|
|
37
|
+
Pdfserve::Split.new(api_endpoint: @api_endpoint, api_token: @api_token)
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pdfserve_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Isabel Garcia
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2025-01-
|
|
13
|
+
date: 2025-01-29 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: net-http
|
|
@@ -29,7 +29,7 @@ dependencies:
|
|
|
29
29
|
description: This gem provides a simple interface to merge, stamp, split PDFs using
|
|
30
30
|
https://github.com/ant31/pdfserve API.
|
|
31
31
|
email:
|
|
32
|
-
-
|
|
32
|
+
- isabelgg22@gmail.com
|
|
33
33
|
- antoine.legrand@conny.legal
|
|
34
34
|
- lakhan.pasari@conny.legal
|
|
35
35
|
executables: []
|
|
@@ -37,12 +37,11 @@ extensions: []
|
|
|
37
37
|
extra_rdoc_files: []
|
|
38
38
|
files:
|
|
39
39
|
- README.md
|
|
40
|
-
- lib/
|
|
41
|
-
- lib/
|
|
42
|
-
- lib/
|
|
43
|
-
- lib/
|
|
44
|
-
- lib/
|
|
45
|
-
- lib/pdfserve_client/version.rb
|
|
40
|
+
- lib/pdfserve/client.rb
|
|
41
|
+
- lib/pdfserve/merge.rb
|
|
42
|
+
- lib/pdfserve/split.rb
|
|
43
|
+
- lib/pdfserve/stamp.rb
|
|
44
|
+
- lib/pdfserve/version.rb
|
|
46
45
|
homepage: https://github.com/mietright/pdf_merger
|
|
47
46
|
licenses:
|
|
48
47
|
- MIT
|
data/lib/pdfserve_client.rb
DELETED