pdfbeads 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/ChangeLog +6 -0
  2. data/lib/imageinspector.rb +1 -1
  3. metadata +4 -4
data/ChangeLog CHANGED
@@ -39,3 +39,9 @@
39
39
  + An attempt to achive 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
+
43
+ 2012 March 5 (Alexey Kryukov) Version 1.0.8
44
+
45
+ Palette colors in PNG images were treated as signed chars and this could cause
46
+ indexed images to be incorrecty displayed in the resulting PDF.
47
+
@@ -433,7 +433,7 @@ class ImageInspector::Image
433
433
  when 'PLTE'
434
434
  @palette = Array.new()
435
435
  for i in (0...length/3)
436
- r, g, b = io.read( 3 ).unpack( 'ccc' )
436
+ r, g, b = io.read( 3 ).unpack( 'CCC' )
437
437
  @palette << [ r, g, b ]
438
438
  end
439
439
  when 'IDAT'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdfbeads
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 7
10
- version: 1.0.7
9
+ - 8
10
+ version: 1.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alexey Kryukov
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-10 00:00:00 +04:00
18
+ date: 2012-03-05 00:00:00 +04:00
19
19
  default_executable: pdfbeads
20
20
  dependencies: []
21
21