Adding Pages

If you need to append a page to the current document, all you need is to call the method "AddPage"; it doesn't take any parameter.

Here some sample code that generates a 5 pages PDF:

Private Sub Command7_Click()
  Dim PDFRPT As New PDFDocument
  PDFRPT.NewPDF "This is my first PDF"
  PDFRPT.TextOut "Hello World!", 10, 10
  PDFRPT.AddPage
  PDFRPT.TextOut "Hello World!", 10, 10
  PDFRPT.AddPage
  PDFRPT.TextOut "Hello World!", 10, 10
  PDFRPT.AddPage
  PDFRPT.TextOut "Hello World!", 10, 10
  PDFRPT.AddPage
  PDFRPT.TextOut "Hello World!", 10, 10
  PDFRPT.SavePDF "c:\provaocx.pdf"
End Sub