dealing with cases where there's no pdf