ADXL193 Accelerometer Assistance Needed!

Here are the errors:

sketch_feb01b:27: error: stray '\' in program
sketch_feb01b:27: error: stray '\' in program
sketch_feb01b:28: error: stray '\' in program
sketch_feb01b:28: error: stray '\' in program
sketch_feb01b:28: error: stray '\' in program
sketch_feb01b:35: error: stray '\' in program
sketch_feb01b:35: error: stray '\' in program
sketch_feb01b:38: error: stray '\' in program
sketch_feb01b:38: error: stray '\' in program
sketch_feb01b:39: error: stray '\' in program
sketch_feb01b:39: error: stray '\' in program
sketch_feb01b:40: error: stray '\' in program
sketch_feb01b:40: error: stray '\' in program
sketch_feb01b:41: error: stray '\' in program
sketch_feb01b:41: error: stray '\' in program
sketch_feb01b:105: error: stray '\' in program
sketch_feb01b:105: error: stray '\' in program
sketch_feb01b:106: error: stray '\' in program
sketch_feb01b:106: error: stray '\' in program
sketch_feb01b:109: error: stray '\' in program
sketch_feb01b:109: error: stray '\' in program
sketch_feb01b:109: error: stray '\' in program
sketch_feb01b:109: error: stray '\' in program
sketch_feb01b:1: error: 'import' does not name a type
sketch_feb01b:2: error: 'import' does not name a type
sketch_feb01b:4: error: 'Serial' does not name a type
sketch_feb01b:7: error: 'PFont' does not name a type
sketch_feb01b.ino: In function 'void setup()':
sketch_feb01b:10: error: 'OPENGL' was not declared in this scope
sketch_feb01b:10: error: 'size' was not declared in this scope
sketch_feb01b:11: error: 'font' was not declared in this scope
sketch_feb01b:11: error: 'textFont' was not declared in this scope
sketch_feb01b:12: error: 'TOP' was not declared in this scope
sketch_feb01b:12: error: 'LEFT' was not declared in this scope
sketch_feb01b:12: error: 'textAIign' was not declared in this scope
sketch_feb01b:13: error: 'serial' was not declared in this scope
sketch_feb01b:13: error: expected type-specifier before 'Serial'
sketch_feb01b:13: error: expected `;' before 'Serial'
sketch_feb01b:14: error: 'background' was not declared in this scope
sketch_feb01b:15: error: 'smooth' was not declared in this scope
sketch_feb01b.ino: In function 'void draw()':
sketch_feb01b:21: error: 'background' was not declared in this scope
sketch_feb01b:22: error: 'fill' was not declared in this scope
sketch_feb01b:23: error: 'stroke' was not declared in this scope
sketch_feb01b:24: error: 'seriaI' was not declared in this scope
sketch_feb01b:27: error: 'u20190' was not declared in this scope
sketch_feb01b:27: error: expected `)' before 'u2019'
sketch_feb01b:28: error: 'u2018' was not declared in this scope
sketch_feb01b:28: error: expected `)' before 'n'
sketch_feb01b:35: error: 'u201cinput' was not declared in this scope
sketch_feb01b:35: error: 'text' was not declared in this scope
sketch_feb01b:38: error: 'u201cmax' was not declared in this scope
sketch_feb01b:38: error: 'noise' was not declared in this scope
sketch_feb01b:39: error: 'u201cmin' was not declared in this scope
sketch_feb01b:40: error: 'u201cinitiaI' was not declared in this scope
sketch_feb01b:41: error: expected `)' before 'max'
sketch_feb01b.ino: In function 'float minInBuffer()':
sketch_feb01b:47: error: 'buffer' was not declared in this scope
sketch_feb01b.ino: In function 'float maxInBuffer()':
sketch_feb01b:55: error: 'buIfer' was not declared in this scope
sketch_feb01b:56: error: 'buffer' was not declared in this scope
sketch_feb01b.ino: In function 'float minlnBuffer2()':
sketch_feb01b:63: error: 'buffer2' was not declared in this scope
sketch_feb01b.ino: In function 'float maxlnBuffer2()':
sketch_feb01b:72: error: 'buffer2' was not declared in this scope
sketch_feb01b.ino: At global scope:
sketch_feb01b:78: error: 'O' was not declared in this scope
sketch_feb01b:79: error: 'WlDTH' was not declared in this scope
sketch_feb01b:79: error: initializer fails to determine size of 'bufter'
sketch_feb01b:80: error: 'WlDTH' was not declared in this scope
sketch_feb01b:80: error: initializer fails to determine size of 'bufter2'
sketch_feb01b.ino: In function 'void next(int)':
sketch_feb01b:92: error: 'pause' was not declared in this scope
sketch_feb01b:97: error: 'buffer' was not declared in this scope
sketch_feb01b:98: error: 'buffer2' was not declared in this scope
sketch_feb01b.ino: In function 'void keyPressed()':
sketch_feb01b:105: error: 'key' was not declared in this scope
sketch_feb01b:105: error: 'u2018s' was not declared in this scope
sketch_feb01b:105: error: expected `)' before 'u2019'
sketch_feb01b:106: error: 'u201csnapshot' was not declared in this scope
sketch_feb01b:106: error: 'saveFrame' was not declared in this scope
sketch_feb01b:109: error: 'key' was not declared in this scope
sketch_feb01b:109: error: 'u2018p' was not declared in this scope
sketch_feb01b:109: error: expected `)' before 'u2019'
sketch_feb01b.ino: In function 'void renderBuffer()':
sketch_feb01b:118: error: 'height' was not declared in this scope
sketch_feb01b:118: error: 'buffer' was not declared in this scope
sketch_feb01b:118: error: 'line' was not declared in this scope
sketch_feb01b:122: error: 'height' was not declared in this scope
sketch_feb01b:122: error: 'buffer' was not declared in this scope
sketch_feb01b:122: error: 'line' was not declared in this scope

I got the code from a .pdf document of a report based on helmet testing. I had to run the .pdf doument through an OCR program to get the text.

The only thing I can think is that there are background programs/requirements the previous code writer had on their PC? Or maybe the OCR program didn't do too good of a job. I'll have a pop at writing it all myself today and see where that gets me.

What's the general consensus of people writing code for other people and being paid in return, that is seriously where I am right now...

Thanks