title: How to get the current page count?
body: <p>Hi i have to create a pdf document from a grid view. Thus this is the problem that i encountered. When i tried to count the total number of pages, i cant seems to get the amount.
  Please help</p>
  
  <p>THis are some of the coding i tried but to no avail.</p>
  
  <pre><code>Dim pdfDoc As New Document(PageSize.A2, 50, 50, 50, 50)
  ...................
  ...................
  pdfDoc.PageCount 
  pdfDoc.PageSize
  </code></pre>
  
  <p>i tried to append the total page to my integer
  however for the first one what ive got is that page count is a writeOnly value
  while pagesize if i am not wrong is the size of the document.</p>
  
  <p>Please help me thank you</p>