imprimatur 0.7.0-x86_64-linux-gnu → 0.8.0-x86_64-linux-gnu
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/CHANGELOG.md +12 -0
- data/README.md +1 -1
- data/lib/imprimatur/4.0/imprimatur-render-worker +0 -0
- data/lib/imprimatur/4.0/imprimatur_native.so +0 -0
- data/lib/imprimatur/reader.rb +2 -2
- data/lib/imprimatur/version.rb +1 -1
- data/lib/imprimatur.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad664ac67388f8b79a46cd133ce183a9e508005fbf46a61f4850c5d9f48b1c2d
|
|
4
|
+
data.tar.gz: cc352b504b9cfaedba5fed6ffe9547ed0810114ae9df19a74309e882c97e5ff8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6a38d1b14982c4a1300a7ed6660a6b10bc12f3704e8b8604010a123669b064c2070841d0e39d4d2f3bb0974ad8350ed37c980a1e15216209516987af97fac5f8
|
|
7
|
+
data.tar.gz: 9e89c317cdf9f54fc0a2fe59df4f0eb44c24404e0d8903858fe04ef84d47b7ac0f5ceeff33ab59e669bd5491b3cf168478622b3d3718826844842045e092b870
|
data/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,18 @@
|
|
|
11
11
|
- Allow a bounded exit grace when macOS cannot inspect an exiting worker;
|
|
12
12
|
persistent monitor failures still terminate and reap a live worker.
|
|
13
13
|
|
|
14
|
+
## [0.8.0](https://github.com/seuros/imprimatur/compare/v0.7.0...v0.8.0) (2026-10-27)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **reader:** accept drop_repeated in the Ruby API ([4e537d6](https://github.com/seuros/imprimatur/commit/4e537d641bafd8d3cdb8b1c20d16f4cb766ad073))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* **pdf:** read printed page numbers from headers too, not just footers ([c036434](https://github.com/seuros/imprimatur/commit/c0364341ee8fc36be2c97d25fd06da0aa76a4ad6))
|
|
25
|
+
|
|
14
26
|
## [0.7.0](https://github.com/seuros/imprimatur/compare/v0.6.1...v0.7.0) (2026-10-26)
|
|
15
27
|
|
|
16
28
|
|
data/README.md
CHANGED
|
@@ -32,7 +32,7 @@ end
|
|
|
32
32
|
gem "imprimatur"
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
Precompiled gems ship for Linux (x86_64 and aarch64, glibc 2.34+
|
|
35
|
+
Precompiled gems ship for Linux (x86_64 and aarch64, glibc 2.34+),
|
|
36
36
|
macOS 13+ (arm64, x86_64) and FreeBSD 15.1 (amd64): nothing to compile.
|
|
37
37
|
Anywhere else, the source gem compiles the extension on install, with the
|
|
38
38
|
toolchain from [rustup.rs](https://rustup.rs) (1.99+).
|
|
Binary file
|
|
Binary file
|
data/lib/imprimatur/reader.rb
CHANGED
|
@@ -41,8 +41,8 @@ module Imprimatur
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
# @api private
|
|
44
|
-
def self.limits(timeout: 60, max_bytes: nil, max_inflated: nil)
|
|
45
|
-
[max_bytes, max_inflated, timeout && Float(timeout)]
|
|
44
|
+
def self.limits(timeout: 60, max_bytes: nil, max_inflated: nil, drop_repeated: false)
|
|
45
|
+
[max_bytes, max_inflated, timeout && Float(timeout), drop_repeated ? true : false]
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
# A path or an IO is read no further than +max_bytes+ (one byte past it
|
data/lib/imprimatur/version.rb
CHANGED
data/lib/imprimatur.rb
CHANGED
|
@@ -72,6 +72,8 @@ module Imprimatur
|
|
|
72
72
|
# @param timeout [Numeric, nil] seconds the read may take (60), +nil+ for none
|
|
73
73
|
# @param max_bytes [Integer, nil] the largest document accepted (512 MiB)
|
|
74
74
|
# @param max_inflated [Integer, nil] decompressed bytes allowed in all (1 GiB)
|
|
75
|
+
# @param drop_repeated [Boolean] PDF only: drop text repeated at the same
|
|
76
|
+
# spot on most pages, anywhere on the page (watermarks); off by default
|
|
75
77
|
# @return [String] Markdown, UTF-8
|
|
76
78
|
# @raise [NoTextLayer] a PDF of scanned pages: run OCR instead
|
|
77
79
|
# @raise [PasswordRequired] a PDF that needs a password to open
|