Obtain Page dimensions (height/width) using C++ library

This post explains the different packages.