[Gambas-user] How to know how many pages a pdf file has.

Tobias Boege taboege at ...626...
Thu Apr 24 19:22:00 CEST 2014


On Thu, 24 Apr 2014, Ru Vuott wrote:
> Hello Tobias,
> 
> If I try with  " PdfDocument.Count "
> I obtain this error:
> 
> " PdfDocument.Count is not static "
> 
> bye

Of course, you need to ask an actual object of the PdfDocument class to give
you its Count:

  Dim hPdfDocument As New PdfDocument

  ' Open your document
  Print hPdfDocument.Count

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk




More information about the User mailing list