Method: PDF::Core::DocumentState#page_count

Defined in:
lib/pdf/core/document_state.rb

#page_countInteger

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Number of pages in the document

Returns:

  • (Integer)


146
147
148
# File 'lib/pdf/core/document_state.rb', line 146

def page_count
  pages.length
end