The observed hard X-ray (HXR) flux spectrum <i>I</i>(ε) from solar flares is a combination of primary bremsstrahlung photons <i>I</i><sub>p</sub>(ε) with a spectrally modified component from photospheric Compton backscatter of downward primary emission. The latter can be significant, distorting or hiding the true features of the primary spectrum which are key diagnostics for acceleration and propagation of high energy electrons and of their energy budget. For the first time in solar physics, we use a Green's function approach to the backscatter spectral deconvolution problem, constructing a Green's matrix including photoelectric absorption. This approach allows spectrum-independent extraction of...