custom pdf shape analysis