Fixing Text Reflow Issues when you Copy and Paste Text from PDFs
You’ve just copied some text from a PDF using the selection tool and pasted it into your word processor. Ack! Why doesn’t the text reflow?
Although PDF is primarily intended as an archive format, Acrobat users often want to take passages of text in a PDF and reuse them in a word processor or in email. For example, you may wish to cite part of an important court decision in a brief.
One frustration is that text copied from a PDF may have hard line endings. Depending on how the PDF was created, each line may have a paragraph return at the end.
Text formatted with hard line endings doesn’t reflow properly and can take a lot of time to clean up:
Hard Line Endings
THIS AGREEMENT WITNESSETH that in consideration of the premises and mutualcovenants and agreements hereinafter contained, and for other good and valuableconsideration (the receipt and sufficiency of which is hereby acknowledged by the parties
Text that Reflows
THIS AGREEMENT WITNESSETH that in consideration of the premises and mutual covenants and agreements hereinafter contained, and for other good and valuable consideration (the receipt and sufficiency of which is hereby acknowledged by the parties hereto), it is agreed by and between the parties hereto as follows:
One workaround is to use Acrobat Standard or Professional which can save PDFs to editable formats such as text files, rich text files and Word. In doing so, the hard line endings are generally eliminated.
Acrobat 8 simplifies the process somewhat by offering a new Export button in the Acrobat toolbar:
However, this workflow means saving out the file, finding the correct passage in the Word file, then copying that to your working document. That’s a lot work if you just want to copy a paragraph or two!
Fortunately, there is an easy way to eliminate hard line endings when copying text from a PDF.
Read on to learn how…
h3>Accessible Files Reflow
Tagged or accessible PDFs have structure that allows screen reading software used by the visually impaired to properly traverse complex documents.
One benefit for every Acrobat user is that tagged PDFs also contain information about where paragraphs start and stop.
Unfortunately, a good portion of the PDFs that you receive won’t be tagged properly, but it is easy and painless to add them.
For more background information on tags, read my Understanding Tags article.
Adding Tags
To add tags to PDF, choose Advanced—>Accessibility—>Add Tags to Document…