This is the "raw" version of the sentence by the "Stiftsoverret" (Diocesan court?) on 17 August 1840, later upheld by the "Høyesterret" (Supreme Court). This document has been partially transcribed and translated, and some details incorporated on other pages. For background, you might first study the Høyesterret document, which is translated in more detail, and contains some of the same information.