https://github.com/healthypackrat/pdf_outline_editor
Set PDF outlines from a JSON/YAML definition file (RubyGems)
https://github.com/healthypackrat/pdf_outline_editor
gem jruby pdf pdfbox ruby
Last synced: 4 months ago
JSON representation
Set PDF outlines from a JSON/YAML definition file (RubyGems)
- Host: GitHub
- URL: https://github.com/healthypackrat/pdf_outline_editor
- Owner: healthypackrat
- License: apache-2.0
- Created: 2019-03-31T13:16:57.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-05T06:25:45.000Z (over 3 years ago)
- Last Synced: 2025-02-10T08:47:04.576Z (4 months ago)
- Topics: gem, jruby, pdf, pdfbox, ruby
- Language: Ruby
- Homepage: https://rubygems.org/gems/pdf_outline_editor
- Size: 25.3 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# pdf\_outline\_editor
[](https://travis-ci.org/healthypackrat/pdf_outline_editor)
This gem provides a command to get/set PDF outlines from a JSON/YAML definition file.
Useful for [PDF files which don't have outlines](https://github.com/healthypackrat/pdf-outlines).
## Requirements
- JRuby
## Installation
```
$ jgem install pdf_outline_editor
```## Usage
First, generate an outlines definition file by running `init` command:
```
$ pdf_outline_editor init -f json > toc.json
```or, by running `dump` command with an existing pdf file:
```
$ pdf_outline_editor dump -f json input.pdf > toc.json
```(Edit `toc.json` as you like...)
Then run `load` command to set outlines:
```
$ pdf_outline_editor load input.pdf toc.json output.pdf
```## Development
Run `bin/rspec` to run the specs.
Run `bin/rubocop` to check formattings.
## Contributing
Bug reports and pull requests are welcome on GitHub at .
## License
The gem is available as open source under the terms of the [Apache License, Version 2.0](https://opensource.org/licenses/Apache-2.0).