pdf preview works