implementing —adjust-page-height and —no-layout options