djvu.cr

Crystal bindings for djvulibre for inspecting djvu documents

djvu.cr

This lib provides methods to inspect djvu documents

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      djvu:
        gitlab: repomaa/djvu.cr
    
  2. Run shards install

Usage

require "djvu"

doc = Djvu::Document.new("path/to/file.djvu")
doc.annotations.try do |annotations|
  pp annotations.metadata
end

doc.pages.each do |page|
  pp page.text
  # or
  page.html(STDOUT)
end

Contributing

  1. Fork it (https://gitlab.com/repomaa/djvu/forks/new)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Merge Request

Contributors

Repository

djvu.cr

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 1
  • almost 5 years ago
  • August 3, 2019
License

MIT License

Links
Synced at

Mon, 20 May 2024 18:38:34 GMT

Languages