title: Extract page number from Word document - Ruby on Rails
body: <p>I'm working on an application that generates a .docx document using <a href="https://github.com/trade-informatics/caracal" rel="nofollow noreferrer">Caracal</a> gem. I need a way to find out how many pages said document has, preferably directly from Caracal. Alternatively, I tried to use <a href="https://github.com/yomurb/yomu" rel="nofollow noreferrer">Yomu</a> gem to get the page count from the metadata, as shown in this <a href="https://stackoverflow.com/a/22749759/5592704">answer</a>.  However, apparently the document I'm generating does not include the page count in its metadata. Thanks in advance!</p>