download pdf only for valid program