I need to turn a few PDF research papers into plain text for my thesis, but copying them scrambles the paragraphs. Is there a free way to convert them without losing the reading order?
Copying from a PDF is a pain, I know. What worked for me was opening the PDF straight in Word, it asks to convert and usually keeps the paragraphs in order. If the paper is scanned pictures of text, that won’t help though. For those, paste into Google Docs and see if it offers to convert, or ask your grandkids’ school if they have a scanner with text recognition.
I run into this with grant papers all the time. Try opening the PDF in Word: right-click the file, pick Open with, then Word, and it rebuilds the text in reading order so you can save it as plain text. Papers with 2 columns can still glitch though. Are you on Windows or Mac?
First make sure you can actually select the text. Multi column papers always scramble on copy paste. I extract with pdftotext using the layout flag, free and keeps reading order. tbh I do the same for rental forms.
I usually upload the papers to PDF24 in my phone browser and export as txt; it keeps reading order better than plain copy paste. If the layout is two column, I crop just the main text block first, since sidebars and headers cause the scrambling. On my old laptop I did it in LibreOffice Draw column by column, but that took too long between loads.
I usually try pdftotext first, using the -layout option, because it preserves columns and spacing better than regular copy and paste. If the papers are scanned images, you’ll need OCR first, such as OCRmyPDF, then extract the text. I’d quickly proofread tables, footnotes, and two-column sections since those can still come out in a strange order.
Try opening them in Adobe Reader and hitting Save as Text first. Make sure to keep a backup of the orginal files just in case it gets messy.
I open the PDF in Microsoft Word first becuase it often preserves the reading order better. Then I copy the text into Notepad.
@catherine88 I do the same with client intake forms, Word keeps the reading order nicely. Just watch two column papers, those still come out jumbled, so I always check the first page before saving the text.
I use PDFcap, choose “PDF to Text,” upload the paper, then download the text file. For cleaner reading order, I convert one paper at a time and check two-column pages first. Avoid copying straight from the PDF viewer, and if the paper is scanned, run OCR before converting.
@killerSteel99 that’s basically my workflow too, pdftotext with layout flag keeps the paragraph order way better than copy paste ever does. I’d add that if the PDF was made from a scanned old typewriter doc the layout flag can still choke, so OCRmyPDF first really does save headaches. Footnotes always sneak into the middle of a paragraph for me so I just scan through once before pasting into the thesis.
@catherine88 Word is actually decent at reflowing basic pages without needing yet another online account to sign up for. Open the file in Word and save it straight as a text file to save yourself a step. Just avoid multi-column papers if you can, since Word will scramble the reading order every single time.
copy-paste from pdfs is almost always a mess tbh. what i do is open them in a free tool that actually converts the whole file instead, like pdf24 or smallpdf, they usually keep the paragraph flow decent. if the pdf is scanned images youll need ocr instead, try ocr.space for that