Hey Ali,
While AppleScriptObjC works well for extracting text from PDFs, it does not do a good job of preserving their layout.
The best tool I've ever found for the job (so far) is pdftotext
.
See this topic:
Keyboard Maestro “Convert PDF Files into Text Files in the Front Finder Window” Macro
Don't stop at the first post...
-Chris