Preheat the oven to 325 degrees F. Line a baking sheet with parchment paper, and spray with cooking spray.
In a medium bowl, add the corn syrup, sugar, salt, cinnamon, nutmeg and pepper; mix well. Add the pecans, stir to coat, and then transfer to a baking sheet. Bake for 5 minutes. Remove and stir the pecans. Return back to oven to finish cooking, another 10 minutes, or until the coating is bubbling. Remove from oven and use a fork to separate the cooked nuts on the baking sheet. Let cool.