Photosynthesis has a light reaction and a dark reaction
From Wikipedia:
The overall equation for the light-dependent reactions under the conditions of non-cyclic electron flow in green plants is:
2 H2O + 2 NADP+ + 3 ADP + 3 Pi + light 2 NADPH + 2 H+ + 3 ATP + O2
So the author's description of photosynthesis is not so far off as critics here are maintaining.