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

- old
+ new

@@ -14,19 +14,33 @@ ## Usage ### Document -A `MuPDF::Document` wraps for a file: +A `MuPDF::Document` wraps a PDF file: ```ruby document = MuPDF::Document.new('./file.pdf') ``` #### Info -The `info` command displays information about a document such as the number of pages: +The `info` command displays information about the document such as the number of pages: ```ruby info = document.info info.pages # e.g. 2 +``` + +#### Pages + +The `pages` command finds sizing information about the pages within a document: + +```ruby +pages = document.pages +pages.count # e.g. 2 +page = pages[0] +page.pagenum # 1 +box = page.media_box # page.crop_box / page.bleed_box / page.trim_box / page.art_box +box.width # 612 +box.height # 792 ```