There's likely not much that can be done. If the structure of the PDF file is not consistent then you won't get a consistent result. It all depends on how the file was created, and by which application.
.
Visit my custom-made PDF scripts website: http://try67.blogspot.com
Contact me personally: try6767@gmail.com