Red Hat Bugzilla – Bug 1274535
Copy and paste of a table from a pdf file to a text file produces a new line at each column instead of only at each line break
Last modified: 2015-11-09 08:19:12 EST
Description of problem:
I tried to copy and paste a table in a PDF file to a text file. Each column break and each new row produced a new line in the text file, using vi.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Access the PDF at http://www.hamiltonbeach.ca/media/contact/Service_Centres_Canada.pdf .
2. Select All and Copy.
3. Paste to a vi editing session.
Each column break and each line break show as a line break when pasting.
Column breaks should paste as tabs, line breaks as newlines, and page breaks (none in this example) as form-feeds.
Downloading and using evince to to generate the copy caused the copy to run down each columen.
I dndn't try using libreoffice to read the PDF. Maybe that would be better. But I would really like to avoid having do download a whole potentially-large file to extract just a small portion
Perhaps there's an firefox add-on or an attachment to help with this problem.
I'm afraid that this particular pdf document is not well structured, you can try to use Adobe Reader to obtain the correct table. I've tried libreoffice and evince and also have no success (even worse results).