HomeUniDoc
HomeUniDoc
...

Package utils

Overview ▾

Index ▾

Package files

doc_util.go

func GetNumPages

func GetNumPages(d *document.Document) (int, error)

GetNumPages will try to get actual document page count by converting the document to a PDF first and then get the actual page count from the PDF result.

WARNING: This method is currently in experimental state as the PDF result might have incorrect page count.