pdf_outline_editor 0.1.2-java → 0.2.0-java
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 912ad6bc76c448ef915e0dc0819a6824937b10c7f12fa854da672b7133a6326a
|
4
|
+
data.tar.gz: be5891811d28fe9bc07e270d35b387803871db0b0bede661270e55a756108024
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28aec0aec4c9385182ee723d06702ea487bd2df5c929156b416b7e414c2702425b69d78276405a4cf1f4a00b246926f6f0c3cdd8485bd741746472edf95075a0
|
7
|
+
data.tar.gz: d7db0dc6c2f2ffcad70ea5d5937db562d3f28eb93252f11934af24fd58a5f6fadc554d90ad058f7fc2f398f24020e75cc2aeba03d2672a2d91340464826d4c56
|
data/README.md
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
|
5
5
|
This gem provides a command to get/set PDF outlines from a JSON/YAML definition file.
|
6
6
|
|
7
|
+
Useful for [PDF files which don't have outlines](https://github.com/healthypackrat/pdf-outlines).
|
8
|
+
|
7
9
|
## Requirements
|
8
10
|
|
9
11
|
- JRuby
|
@@ -16,7 +18,7 @@ $ jgem install pdf_outline_editor
|
|
16
18
|
|
17
19
|
## Usage
|
18
20
|
|
19
|
-
First, generate outlines definition file by running `init` command:
|
21
|
+
First, generate an outlines definition file by running `init` command:
|
20
22
|
|
21
23
|
```
|
22
24
|
$ pdf_outline_editor init -f json > toc.json
|
@@ -38,13 +40,9 @@ $ pdf_outline_editor load input.pdf toc.json output.pdf
|
|
38
40
|
|
39
41
|
## Development
|
40
42
|
|
41
|
-
Run `bin/
|
42
|
-
|
43
|
-
```
|
44
|
-
$ bin/jruby-ng-server &
|
45
|
-
```
|
43
|
+
Run `bin/rspec` to run the specs.
|
46
44
|
|
47
|
-
|
45
|
+
Run `bin/rubocop` to check formattings.
|
48
46
|
|
49
47
|
## Contributing
|
50
48
|
|
@@ -64,7 +64,9 @@ module PdfOutlineEditor
|
|
64
64
|
|
65
65
|
max_page_number = @pages.size
|
66
66
|
|
67
|
-
|
67
|
+
unless (1..max_page_number).include?(page_number)
|
68
|
+
raise Error, "page number must be between 1 and #{max_page_number}: got #{page_number}"
|
69
|
+
end
|
68
70
|
|
69
71
|
page = @pages[page_number - 1]
|
70
72
|
|
data/lib/pdf_outline_editor.rb
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdf_outline_editor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- healthypackrat
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
14
15
|
requirement: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
17
|
- - "~>"
|
17
18
|
- !ruby/object:Gem::Version
|
18
19
|
version: '2.0'
|
19
|
-
name: bundler
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -25,12 +25,12 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
28
29
|
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - "~>"
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '13.0'
|
33
|
-
name: rake
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -39,12 +39,12 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '13.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
42
43
|
requirement: !ruby/object:Gem::Requirement
|
43
44
|
requirements:
|
44
45
|
- - "~>"
|
45
46
|
- !ruby/object:Gem::Version
|
46
47
|
version: '3.0'
|
47
|
-
name: rspec
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -70,11 +70,12 @@ files:
|
|
70
70
|
- lib/pdf_outline_editor/loader.rb
|
71
71
|
- lib/pdf_outline_editor/runner.rb
|
72
72
|
- lib/pdf_outline_editor/version.rb
|
73
|
-
- vendor/pdfbox/pdfbox-app-2.0.
|
73
|
+
- vendor/pdfbox/pdfbox-app-2.0.25.jar
|
74
74
|
homepage: https://github.com/healthypackrat/pdf_outline_editor
|
75
75
|
licenses:
|
76
76
|
- Apache-2.0
|
77
|
-
metadata:
|
77
|
+
metadata:
|
78
|
+
rubygems_mfa_required: 'true'
|
78
79
|
post_install_message:
|
79
80
|
rdoc_options: []
|
80
81
|
require_paths:
|
@@ -90,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
91
|
- !ruby/object:Gem::Version
|
91
92
|
version: '0'
|
92
93
|
requirements: []
|
93
|
-
rubygems_version: 3.
|
94
|
+
rubygems_version: 3.2.32
|
94
95
|
signing_key:
|
95
96
|
specification_version: 4
|
96
97
|
summary: Set PDF outlines from a JSON/YAML definition file
|