In case it helps someone, for a data mining project at the research lab i work, i tried more than 10 different commercial and opensource libraries. The best one was commercial version of Foxit SDK, it always kept the layout perfectly.
Function you need to use:
FPDFText.FPDFText_PDFToText()
If you check the chrome page on fixtracking.com (prepared by DuckDuckGo), it is asking you to uncheck "Use a prediction service to help complete searches and URLs typed in the address bar", so what is the point here?It is enabled by default.
I don't know if this is normal? I followed the tutorial on fixtracking.com and installed DuckDuckGo plug-in for Firefox, and later i realized by analyzing http traffic that everything i type in address bar is sent to DuckDuckGo, even it is not selected as a default search engine. I wouldn't trust DuckDuckGo
Function you need to use: FPDFText.FPDFText_PDFToText()