pdffonts 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +1 -2
- data/bin/pdffonts +5 -5
- data/pdffonts.gemspec +2 -2
- metadata +13 -26
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 746bb35dcb1bc8a494edf725c8e79151d01f138fb66780da9a6b1f66d50389ee
|
4
|
+
data.tar.gz: '039935386699c1429eb8862decc2e2ed79e9c144b1e370c2868a76c2f85b3cbc'
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 31502d90548286b4745d3508def45242241153d0f9af90c49d94e0d63652ce74b977f5e1a09ef35d0ef1c1d14cbe4f19a46c521b600c822a386b03017215caf4
|
7
|
+
data.tar.gz: 29855b31af749635c9d9118f7ea70b488946ec90d7b5ca6e82a496e1abd55574ec1f0c9585bc7251df32f3822be061d89d462942ffadb3a14ebb1d96d62b526e
|
data/README.md
CHANGED
@@ -8,13 +8,12 @@ A command-line tool to display fonts embedded inside PDF documents.
|
|
8
8
|
|
9
9
|
## Usage
|
10
10
|
|
11
|
-
$ pdffonts
|
11
|
+
$ pdffonts pdf-with-beautiful-type.pdf
|
12
12
|
Avenir-Black
|
13
13
|
Avenir-Medium
|
14
14
|
Avenir-Roman
|
15
15
|
AvenirNext-DemiBold
|
16
16
|
GearedSlab-Extrabold
|
17
|
-
Impact
|
18
17
|
Lavanderia-Sturdy
|
19
18
|
LucidaGrande
|
20
19
|
LucidaGrande-Bold
|
data/bin/pdffonts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
|
2
|
+
|
3
3
|
require 'term/ansicolor'
|
4
4
|
|
5
5
|
include Term::ANSIColor
|
@@ -16,20 +16,20 @@ multiple_files = files.length > 1
|
|
16
16
|
|
17
17
|
files.each do |file|
|
18
18
|
puts bold(file) if multiple_files
|
19
|
-
|
19
|
+
|
20
20
|
# Find the strings in the PDF, look for a FontName descriptor
|
21
21
|
raw_list = `strings #{file.inspect} | grep FontName`
|
22
|
-
|
22
|
+
|
23
23
|
# Extract the font names from each line
|
24
24
|
font_names = raw_list.lines.map do |raw_line|
|
25
25
|
if match = raw_line.match(/\/FontName\s*\/[A-Z]{6}\+([^\/]*)\//)
|
26
26
|
match[1] && match[1].strip
|
27
27
|
end
|
28
28
|
end.uniq.compact
|
29
|
-
|
29
|
+
|
30
30
|
font_names.sort.each do |font|
|
31
31
|
puts blue(font)
|
32
32
|
end
|
33
|
-
|
33
|
+
|
34
34
|
puts if multiple_files
|
35
35
|
end
|
data/pdffonts.gemspec
CHANGED
@@ -4,9 +4,9 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "pdffonts"
|
7
|
-
gem.version = "1.0.
|
7
|
+
gem.version = "1.0.2"
|
8
8
|
gem.authors = ["Pete Nicholls"]
|
9
|
-
gem.email = ["
|
9
|
+
gem.email = ["aupajo@gmail.com"]
|
10
10
|
gem.summary = %q{A command-line tool to display fonts embedded inside PDF documents.}
|
11
11
|
gem.homepage = "http://github.com/Aupajo/pdffonts"
|
12
12
|
gem.license = "MIT"
|
metadata
CHANGED
@@ -1,57 +1,52 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdffonts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Pete Nicholls
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2019-11-08 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: term-ansicolor
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
description:
|
47
42
|
email:
|
48
|
-
-
|
43
|
+
- aupajo@gmail.com
|
49
44
|
executables:
|
50
45
|
- pdffonts
|
51
46
|
extensions: []
|
52
47
|
extra_rdoc_files: []
|
53
48
|
files:
|
54
|
-
- .gitignore
|
49
|
+
- ".gitignore"
|
55
50
|
- Gemfile
|
56
51
|
- LICENSE.txt
|
57
52
|
- README.md
|
@@ -61,32 +56,24 @@ files:
|
|
61
56
|
homepage: http://github.com/Aupajo/pdffonts
|
62
57
|
licenses:
|
63
58
|
- MIT
|
59
|
+
metadata: {}
|
64
60
|
post_install_message:
|
65
61
|
rdoc_options: []
|
66
62
|
require_paths:
|
67
63
|
- lib
|
68
64
|
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
65
|
requirements:
|
71
|
-
- -
|
66
|
+
- - ">="
|
72
67
|
- !ruby/object:Gem::Version
|
73
68
|
version: '0'
|
74
|
-
segments:
|
75
|
-
- 0
|
76
|
-
hash: 2346426602637004294
|
77
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
-
none: false
|
79
70
|
requirements:
|
80
|
-
- -
|
71
|
+
- - ">="
|
81
72
|
- !ruby/object:Gem::Version
|
82
73
|
version: '0'
|
83
|
-
segments:
|
84
|
-
- 0
|
85
|
-
hash: 2346426602637004294
|
86
74
|
requirements: []
|
87
|
-
|
88
|
-
rubygems_version: 1.8.24
|
75
|
+
rubygems_version: 3.0.3
|
89
76
|
signing_key:
|
90
|
-
specification_version:
|
77
|
+
specification_version: 4
|
91
78
|
summary: A command-line tool to display fonts embedded inside PDF documents.
|
92
79
|
test_files: []
|