Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert PDF files to spreadsheets [closed]

I have been trying the whole day to convert several. pdf files which contain traffic flow for São Paulo to spreadsheets like MS Office Excel, or LibreOffice Calc in Ubuntu. When I open the .pdf file with LibreOffice Calc it opens LibreOffice Draw, and I can't get the spreadsheet.

The most promising method that I found was here with pdftotext. It works fine and I can get the tables in LibreOffice Calc but adjusting manually the columns.

My problem is that I have so many .pdf files that it would take me a lot of time.

Does anyone know a better method?

like image 234
Sergio Avatar asked Aug 17 '13 20:08

Sergio


People also ask

Can you convert PDF to Spreadsheet?

How to convert PDF files into Excel spreadsheets: Open a PDF file in Acrobat. Click on the “Export PDF” tool in the right pane. Choose “spreadsheet” as your export format, and then select “Microsoft Excel Workbook.”

How can I open a PDF file in Excel for free?

Follow these easy steps to turn a PDF document into a Microsoft Excel spreadsheet: Click the Select a file button above, or drag and drop a PDF into the drop zone. Select the PDF you want to convert to the XLSX file format. Watch Acrobat automatically convert your PDF to Excel.

Why is my PDF not opening in Excel?

Go to Edit > Preferences > Security (Enhanced). Uncheck the Enable Protected Mode at startup under Sandbox Protections pane. Click Ok. Relaunch PDF reader.


2 Answers

Another option is to use Okular (http://okular.kde.org). It has table selection tool (Ctrl+5). You may select a table, add lines for additional rows and columns and copy the resulting table into a clipboard. It works fine for me.

like image 190
Dmitry Somov Avatar answered Oct 03 '22 16:10

Dmitry Somov


Tabula can work quite well. PDF is not an easy format to extract structured information from, so it's not always possible.

like image 19
scruss Avatar answered Oct 03 '22 17:10

scruss