Migrate PDF codec to fast_select.