Ailing Spanish baker Panrico has filed for creditor protection to give itself some breathing space as it tries to restructure the business.