You can run the water gas shift reaction in reverse to reform CO2 and H2 to CO and H2O, then do Fischer-Tropsch style reactions using CO and H2. But if you're starting with a carbonaceous feedstock in the first place to make your hydrogen, it would be energetically foolish to go this route.