I have created an application that must determine the amount of white space on the top and bottom of a document.
I am utilizing a method that converts the page to a bitmap and queries rows of bits to determie whether or not the row has a bit with a color other than white.
This method works but is less than optimal from a performance perspective. Is there a more efficient method to determine the extents of visible objects on a page?