README.md in mupdf-0.2.0 vs README.md in mupdf-0.3.0

- old
+ new

@@ -12,8 +12,21 @@ gem install mupdf ``` ## Usage +### Document + +A `MuPDF::Document` wraps for a file: + ```ruby -MuPDF.mutool('info', 'file.pdf') +document = MuPDF::Document.new('./file.pdf') +``` + +#### Info + +The `info` command displays information about a document such as the number of pages: + +```ruby +info = document.info +info.pages # e.g. 2 ```