ocrsdk 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ocrsdk/pdf.rb +8 -1
- data/spec/fixtures/files/recognizeable.title.pdf +0 -0
- data/spec/fixtures/files/recognizeable.title2.pdf +8230 -42
- data/spec/ocrsdk/pdf_spec.rb +5 -0
- metadata +6 -2
data/spec/ocrsdk/pdf_spec.rb
CHANGED
@@ -29,5 +29,10 @@ describe OCRSDK::PDF do
|
|
29
29
|
it "should return true for 'searchable' document with malformed text underneath the pic" do
|
30
30
|
OCRSDK::PDF.new(TestFiles.searchable_malformed_pdf).recognizeable?.should be_true
|
31
31
|
end
|
32
|
+
|
33
|
+
it "should return true for recognizeable document with title page" do
|
34
|
+
OCRSDK::PDF.new(TestFiles.recognizeable_title_pdf).recognizeable?.should be_true
|
35
|
+
OCRSDK::PDF.new(TestFiles.recognizeable_title2_pdf).recognizeable?.should be_true
|
36
|
+
end
|
32
37
|
end
|
33
38
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocrsdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
@@ -197,6 +197,8 @@ files:
|
|
197
197
|
- spec/fixtures/files/lorem.pdf
|
198
198
|
- spec/fixtures/files/malformed.pdf
|
199
199
|
- spec/fixtures/files/recognizeable.pdf
|
200
|
+
- spec/fixtures/files/recognizeable.title.pdf
|
201
|
+
- spec/fixtures/files/recognizeable.title2.pdf
|
200
202
|
- spec/fixtures/files/russian.jpg
|
201
203
|
- spec/fixtures/files/searchable.malformed.pdf
|
202
204
|
- spec/ocrsdk/image_spec.rb
|
@@ -242,6 +244,8 @@ test_files:
|
|
242
244
|
- spec/fixtures/files/lorem.pdf
|
243
245
|
- spec/fixtures/files/malformed.pdf
|
244
246
|
- spec/fixtures/files/recognizeable.pdf
|
247
|
+
- spec/fixtures/files/recognizeable.title.pdf
|
248
|
+
- spec/fixtures/files/recognizeable.title2.pdf
|
245
249
|
- spec/fixtures/files/russian.jpg
|
246
250
|
- spec/fixtures/files/searchable.malformed.pdf
|
247
251
|
- spec/ocrsdk/image_spec.rb
|