A man who drew a pistol and fired a paintball gun into a restive crowd of protesters in downtown Portland will remain in state prison, the Oregon Court of Appeals ruled, rejecting most of his appeal.