added pdf resolution handeler to accomodate different page sizes