jst-parser 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/jst.rb +7 -1
- data/lib/jst/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWM5MzYzYmZkMmU0ZDY1YzZkMmY4NmE0YmM2MjE3MTlhYWQ2MzYzOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjE0Yjc2YTNmMGQxZjNiNGYzOGQxMzk5OWY1ZDZjZmE4NGY1NjQ2Mw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWNjMGQzYzQ4ZmZmYjcyNjM5ZTJkMzdiMmEzMGZmNGJmMzUwZWM3NzM0MWMx
|
10
|
+
YTMzZWUyNmI5ODI5NzU1ZjM3MmMxNGNhNjU2YjgyYTg2NWM3OWU5MjI1NTVm
|
11
|
+
Njc5MWM2YWFmYjA5ZjhkNjdkZDYzNzJjNjZlNTI3NGFkOTYwYmY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDUyNDNmMDVlOTBjYmYyYWMzZWNmMDg2NDgwMzIyMjgzYWVjMjk1ZWQ0MDVk
|
14
|
+
MjBjY2UwM2NiZTZhOTc2MTEwMzQ3M2IyMWVjODRmNTk0MDhkYWY3ODJmNjAy
|
15
|
+
NzgwZjI3NjA1MjI1MzgyOTdhZTg1MzkxYTAzMzdjNzQzOTEwNzk=
|
data/lib/jst.rb
CHANGED
@@ -45,7 +45,13 @@ module JST
|
|
45
45
|
|
46
46
|
return @jst_response
|
47
47
|
rescue PDF::Reader::MalformedPDFError
|
48
|
-
raise
|
48
|
+
raise BadPDFError, "Could not parse JST."
|
49
|
+
rescue ArgumentError
|
50
|
+
raise BadPDFError, "PDF text parsing exception."
|
51
|
+
rescue PDF::Reader::UnknownGlyphWidthError
|
52
|
+
# Waiting for this exception to be commited from the following pull request:
|
53
|
+
# https://github.com/yob/pdf-reader/pull/105
|
54
|
+
raise BadPDFError, "PDF text parsing exception."
|
49
55
|
end
|
50
56
|
end
|
51
57
|
end
|
data/lib/jst/version.rb
CHANGED