pdf_info 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pdf_info might be problematic. Click here for more details.
- data/README.md +7 -3
- data/VERSION +1 -1
- data/lib/pdf/info/exceptions.rb +6 -5
- data/pdf_info.gemspec +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
pdf_info
|
2
2
|
==
|
3
3
|
|
4
|
-
Very simple wrapper to the pdfinfo unix tool, to provide the metadata information as a hash.
|
4
|
+
Very simple wrapper to the [pdfinfo](http://linuxcommand.org/man_pages/pdfinfo1.html) unix tool, to provide the metadata information as a hash.
|
5
5
|
|
6
|
-
|
6
|
+
Usage
|
7
7
|
--
|
8
8
|
|
9
9
|
require 'pdf/info'
|
@@ -29,4 +29,8 @@ Gives you the following output:
|
|
29
29
|
:page_count=>12,
|
30
30
|
:encrypted=>false}
|
31
31
|
|
32
|
-
Each of the pages has an individual size - that's just how PDFs are. If you want more of the metadata that pdfinfo outputs, send us a patch.
|
32
|
+
Each of the pages has an individual size in PDF points - that's just how PDFs are. If you want more of the metadata that `pdfinfo` outputs, send us a patch.
|
33
|
+
|
34
|
+
If you need to manually set the path to the `pdfinfo` binary:
|
35
|
+
|
36
|
+
PDF::Info.command_path = "/usr/local/bin/pdfinfo"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/lib/pdf/info/exceptions.rb
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
module PDF
|
2
2
|
class Info
|
3
|
-
class
|
3
|
+
class Error < RuntimeError; end
|
4
|
+
class UnexpectedExitError < PDF::Info::Error
|
4
5
|
attr_accessor :exit_code
|
5
6
|
end
|
6
7
|
|
7
|
-
class UnknownError <
|
8
|
-
class FileError <
|
9
|
-
class OutputError <
|
10
|
-
class BadPermissionsError <
|
8
|
+
class UnknownError < PDF::Info::Error; end
|
9
|
+
class FileError < PDF::Info::Error; end
|
10
|
+
class OutputError < PDF::Info::Error; end
|
11
|
+
class BadPermissionsError < PDF::Info::Error; end
|
11
12
|
end
|
12
13
|
end
|
data/pdf_info.gemspec
CHANGED
metadata
CHANGED