Demo PDF calculation with custom profile function.
Link the pdfrectprofile example.