Retrieve number of pages in PDF document

Is anyone aware of a way to get the number of pages in a pdf document? I have a document of varying length that I need to extract a number of pages from the end of. I found the pdf creation shared component, but I'm struggling to find a way to get the total number of pages. Hopefully it's something obvious that I'm just not noticing. ...

OriginalPostID-69795

OriginalPostID-69795

  Discussion posts and replies are publicly visible