adding pdf preview for page