pdfbeads 1.1.3 → 1.1.4

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: 198ab9ffc035604ce4cfb3528dbebfb7746d746de1a429089028102003e35480
4
- data.tar.gz: e32b5a1de30aeb1bb715f0ea6417478f16f9ba9f229268a55ad3fd4ae9bc67ab
3
+ metadata.gz: c3c27e64f2c904c6c0117e66d881029fc52ae7151813f09ca74e161b1f381d71
4
+ data.tar.gz: 89e091a9f9b091dba703ccf450b97d41f8e4315883970d9385873a9dc5ffcc4c
5
5
  SHA512:
6
- metadata.gz: 485725e99d06c9216e238626b35ec73d7ea2c64513f5112c24448191b6a09ccef40ef58a24bac291a975c8881779a6e62450e629ebee4c89ec34be9d976b4ccb
7
- data.tar.gz: f0f53d06628a9433684d77e175cf95446abeebaa54e14e59bb2a637666d06eaa559734a2bac5e43b3d69182d6afb8ef6627d356bcd6c5b3991200a5cd9e8e858
6
+ metadata.gz: 6909f3878a67916514bd0074aa8926eda9ec94a9192de32fb0a304168523cbe9f601a1b31935373c5252a6ea921cd942056705d2ece7f2f099ca421d440192a6
7
+ data.tar.gz: 25a6e025fb60298f2c074b72c66d283b3dc71bb0d3204ec9800176c7c92f9adb5eebfbac7637fd825bf662def51db20a5d0546503d02bb08e359d4e34ac4af11
data/ChangeLog CHANGED
@@ -36,7 +36,7 @@
36
36
 
37
37
  2012 February 10 (Alexey Kryukov) Version 1.0.7
38
38
 
39
- + An attempt to achive better positioning of the hidden text layer, taking into
39
+ + An attempt to achieve better positioning of the hidden text layer, taking into
40
40
  account not just lines, but also individual words. This should work with hOCR
41
41
  files produced with Cuneiform or Tesseract.
42
42
 
@@ -98,3 +98,6 @@
98
98
  2021 Nov 24 (Alexey Kryukov) Version 1.1.3
99
99
  * Fixed some errors/warnings produced by newer rmagick versions
100
100
  * Bumped the required rmagick version up to 3.2.0
101
+
102
+ 2025 Jun 28 (Alexey Kryukov) Version 1.1.4
103
+ * Still problems with photometric
data/README CHANGED
@@ -48,7 +48,7 @@ Here's a few operations you can perform with PDFBeads:
48
48
  file.
49
49
 
50
50
  Note that PDFBeads is intended for creating PDF files from previously
51
- processed images, and so it can't done some operations (e. g. converting
51
+ processed images, and so it can't do some operations (e. g. converting
52
52
  color or grayscale scans to B&W) which should be typically performed with
53
53
  a special scan processing application, such as ScanTailor.
54
54
 
@@ -926,13 +926,13 @@ class PDFBeads::PDFBuilder
926
926
  'ColorSpace' => '/DeviceGray',
927
927
  'BitsPerComponent' => '1',
928
928
  'Filter' => '/CCITTFaxDecode',
929
- 'DecodeParms' => "<< /Columns #{width} /K -1 >>",
930
929
  ], body)
931
930
  if photometric == 1 then
932
931
  # As ImageMask is always on, BlackIs1 actually doesn't work, while
933
932
  # the Decode array does.
934
- xobj.addToDict( 'BlackIs1', 'true' )
935
- xobj.addToDict( 'Decode', '[1 0]' )
933
+ xobj.addToDict( 'DecodeParms', "<< /Columns #{width} /K -1 /BlackIs1 true /Decode [1 0] >>" )
934
+ else
935
+ xobj.addToDict( 'DecodeParms', "<< /Columns #{width} /K -1 >>" )
936
936
  end
937
937
 
938
938
  return [ xobj,width,height,xres,yres ]
@@ -981,8 +981,7 @@ class PDFBeads::PDFBuilder
981
981
  # other image types we just call ImageMagick to convert them into a
982
982
  # zip-compressed PNG, and then retrieve the raw data from that PNG image.
983
983
  unless [ :JPEG, :JPEG2000, :PNG ].include? insp.format or
984
- ( insp.format.eql? :TIFF and ( insp.compression.eql? :NoCompression or
985
- ( [ :FlateDecode,:LZWDecode,:CCITTFaxDecode ].include? insp.compression and insp.tags[0x0116][0] >= insp.height )))
984
+ ( insp.format.eql? :TIFF and ( insp.compression.eql? :NoCompression))
986
985
 
987
986
  img = ImageList.new( impath )
988
987
  imgdata = img.to_blob { |imd|
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdfbeads
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Kryukov
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2021-11-24 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rmagick
@@ -66,9 +65,9 @@ executables:
66
65
  - pdfbeads
67
66
  extensions: []
68
67
  extra_rdoc_files:
69
- - README
70
68
  - COPYING
71
69
  - ChangeLog
70
+ - README
72
71
  files:
73
72
  - COPYING
74
73
  - ChangeLog
@@ -86,9 +85,8 @@ files:
86
85
  - lib/pdfbeads/pdftoc.rb
87
86
  homepage: http://pdfbeads.rubyforge.org
88
87
  licenses:
89
- - GPL-3.0+
88
+ - GPL-3.0-or-later
90
89
  metadata: {}
91
- post_install_message:
92
90
  rdoc_options: []
93
91
  require_paths:
94
92
  - lib
@@ -96,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
94
  requirements:
97
95
  - - ">="
98
96
  - !ruby/object:Gem::Version
99
- version: '0'
97
+ version: 1.9.0
100
98
  required_rubygems_version: !ruby/object:Gem::Requirement
101
99
  requirements:
102
100
  - - ">="
@@ -106,8 +104,7 @@ requirements:
106
104
  - RMagick, v3.2.0 or greater
107
105
  - nokogiri, v1.5.10 or greater
108
106
  - PDF::Reader, v1.0.0 or greater
109
- rubygems_version: 3.2.29
110
- signing_key:
107
+ rubygems_version: 3.6.7
111
108
  specification_version: 4
112
109
  summary: PDFBeads -- convert scanned images to a single PDF file.
113
110
  test_files: []