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 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
- Example
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
1
+ 0.2.0
@@ -1,12 +1,13 @@
1
1
  module PDF
2
2
  class Info
3
- class UnexpectedExitError < RuntimeError
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 < RuntimeError; end
8
- class FileError < RuntimeError; end
9
- class OutputError < RuntimeError; end
10
- class BadPermissionsError < RuntimeError; end
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pdf_info}
8
- s.version = "0.1.0"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tom Taylor"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdf_info
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 0.1.0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tom Taylor