These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Coverting .pdf to .xls

kathyd
Registered: Jul 11 2008
Posts: 3
Answered

Hello,

First - I am a complete novice with Acrobat. I am going to try to ask this as clearly as possible, but I don't know all the lingo. I am at work and have to work with the versions I have - can't upgrade, nor download tools.

We have Acrobat Standard 7.0 Version 7.0.8 and Excel 2003 (11.6560.6568) SP2.

I have received a financial report in .pdf form and would like to convert it to .xls, so I can sort data. When I copy to clipboard and paste - it is not in table format.

Can I convert data in a .pdf to a table format?
Is there a way to tell whether a .pdf is in table form or does that not matter?

I can't find a way to copy it to a .csv or .txt and paste it as a table. It always pastes to the first column in excel.

Am I missing something or maybe this report is unable to convert?

Thanks in advance
Kathy

rbogie
Registered: Apr 28 2008
Posts: 432
with your data pasted to a single column in excel, you will need to use (experiment with) the 'text to columns' tool on the data menu
daka630
Expert
Registered: Mar 1 2007
Posts: 1420
kathyd,
Adding to rbogie's reply -

Lori wrote:
In Acrobat 8 there is a new command that allows you to select a table with the Select tool and from a context menu select a menu command: Open Table in Spreadsheet. This will open the table in a new Excel worksheet.
daka630 wrote:
Use Acrobat Pro 8 with all updates.
Go to a single page continuous view.
View > Page Display > Single Page Continuous
Drop the document zoom low, say 25%. This makes the area you must select smaller.
View > Zoom > Zoom To - enter zoom value > OK
Make the Select Tool active
Tools > Select & Zoom > Select Tool
With the Select Tool, select the first page.
Top left to bottom right.
Place cursor (still having Select Tool active) on high lighted content in a cell on page 1.
Right click with mouse. The Context menu is presented.
--| Context Menu choices
--| Copy
--| Copy with Formatting
--| Copy As Table
--| Save As Table
--| Open Table in Spreadsheet
--| Select All
--| Deselect All
--| 5 entries associated with Comments
--| Add Bookmark
Select Open Table in Spreadsheet.
A *csv file is created by Excel.
or
Select Copy as Table, Paste copied content into Excel cell.
Repeat for each page. Use Excel to aggregate the pages.
Save to *xls file.
Slow? Yes, but my thought is...
I do not have to purchase more software & this is better than printing the PDF and re-typing the data into Excel.I have tried, on multi-page PDF from Excel, to select all pages.
That works. However, only the page in which I place the cursor (in order
to get to the context menu) goes to the Excel *.csv file.
A plus, as long as a number of pages are selected, you can
process each in turn rather than have to recommence selection for each page.

It works quite well, one page at a time.
Some key points: Acrobat 8 (or 9) required and the Select Tool (not the "hand") must be active.

[url=http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=4236]Reference post[/url]

Be well...

Be well...

kathyd
Registered: Jul 11 2008
Posts: 3
Thank you both - I don't know when the company is upgrading to 8.0, they are very slow with upgrades. I saving this for future reference.

rbogie - yes, I figured that out after I posted this and after more google searches. I think I am at a stalemate - the reports are adveraging 500 - 1500 pages and the time I have to invest to experiment for each report is just too much. Time to get on my IT dept for a solution.

Thank you again.
rbogie
Registered: Apr 28 2008
Posts: 432
i made a script that automates what you describe: to convert any number (thousands) of pages of uniformely structured pdf tables (each table on a separate pdf page) to a single excel. have your IT dept contact me.
Hoffmanscot
Registered: Aug 29 2008
Posts: 1
Please help me.

I have a 60 page PDF file that was created with our Accounting program.

I need to import it into Excel 2003 in order to manipulate the data into an invoice.

I have access to both Acrobat Pro 8 on a Vista platform

as well as Acrobat 9 on a Win XP server platform :(
daka630
Expert
Registered: Mar 1 2007
Posts: 1420
Hi Hoffmanscot ,
For about 10 minutes of your time you'll have your Excel file.
A recap of my previous post to this thread, with a focus on using "Copy as Table", follows.

Prestage the activity.
Create a specific work directory on the HDD.
Open Excel.
Open a new Excel file.
Save the *.xls file to this directory.
Leave Excel & this file open.Open the PDF containing the table.
From the tool bar select a continuous page view.
Set the zoom percentage to 25%.
Make the Select Tool active (the i-beam/arrow icon).

Let us say the table in the PDF has a header row that repeats on each page. The following process will capture the first occurance from page one only.

NOTE: While you can select / highlight more than one page, ONLY one page at a time will be processed. In order to not lose track of which of the 60 pages you are at you want to set a zoom percentage that facilitates this (I like 25%; do play with the value to find what works best for you).

--| 1. Starting with the first page. Using the Select Tool, select the top left cell (it will become "highlighted") and drag to the bottom right cell. Release the mouse button. The first page's cells show as selected. Slowly move the mouse over these cells. Get the mouse focus on any of the highlighted text. The cursor changes shape (arrow head/page). Right click to call up the context menu.
Choices presented:
Copy as Table | Save as Table | Open Table in Spreadsheet

Copy as Table puts the select PDF page's content in the clipboard.
Save as Table lets you save each page's content to a separate *.csv file.
Open Table in Spreadsheet opens each page's content in the Spreadsheet as a *.csv file.

Some observations, from bottom to top.
Open Table in Spreadsheet - You'll have 60 files. Each starts as a *.csv file so you will have to save each to the Spreadsheet file format.
You'll have to bring the 60 into 1.

Save as Table - You'll have 60 *.csv files. You'll have to process them into a single spreadsheet file.

Copy as Table - A page's content goes to the clipboard. This is pasted into the open Excel file.
This is done for Each Page of the PDF file. You start with a single spreadsheet file and end with a single spreadsheet file.
As you are pasting into the saved Excel file you'll be avoiding the step through the *.csv.

Presuming you elect to Copy as Table you will paste the PDF's first page of content into the Excel file you created earlier.
Now save the Excel file.

--| 2. Back to the PDF for page 2. Use the Select tool to select all cells' content except for the repeating header row cells.
Use the context menu to choose Copy as Table. Go to the Excel file. Select appropriate cell and paste. Save the Excel file.

--| 3. Continue, a page at a time, until done.

Do a Save As to give yourself a working file so that the original is available if needed.
Now, make adjustments to this working spreadsheet file as desired.

Does this work?
Absolutely! To identify the steps above I've processed a PDF file with a table. The page size is letter with a landscape orientation. The table has a repeating header row, seven columns, and spans 48 pages. Done in less than 10 minutes.

Be well...

Be well...

Linda Singer
Registered: May 12 2009
Posts: 2
Hi. I'm using Adobe 9 on Windows XP. I followed the instuctions provided but even though I get the copy as table/save as table/open table in spreadsheet options, they don't seem to have any effect. I don't see a .csv file out there and if I open excel and paste after doing 'copy as table' I get the prior data that was in my clipboard from another document, not the data from the pdf file that I'm trying to copy. What am I doing wrong, please? Any ideas?
lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
Does Excel open if you select the "Open Table in Spreadsheet" command on your PDF table?

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.

daka630
Expert
Registered: Mar 1 2007
Posts: 1420
Linda wrote:
I don't see a .csv file out there...
Hi Linda,
Try this -
A PDF page with a table. Use the Select tool ("I-beam" with arrow).
Click-drag across some rows-columns.
Hover the mouse cursor over a region of high lighted text.
You should see an arrow head with a piece of paper.
Right click for the context menu.
Select "Open Table in Spreadsheet" - [b]Spreadsheet application should open[/b].
The open file, in the spread sheet is the *.csv file.
Use Save As to change this to an *.xls file.

Be well...

Be well...

tractionsoftware
Registered: May 3 2007
Posts: 27
If your still struggling we have a new tool for doing this type of thing automatically on many files or one file: PDF Data Extractor, see: http://www.traction-software.co.uk/pdfdataextractor

output's data fields in a pdf to csv report.

Lee.
Traction Software
http://www.traction-software.co.uk
Linda Singer
Registered: May 12 2009
Posts: 2
When I select the 'open table in spreadsheet', excel does not come up... just nothing. I'm perplexed.
daka630
Expert
Registered: Mar 1 2007
Posts: 1420
Linda wrote:
excel does not come up... just nothing.
It may be time to do the "repair" thing on your installed Acrobat.
On the command menu bar, look under "Help."

Be well...

Be well...

newtlover (not verified)
KaylaPitt wrote:
Hey daka630,
Thanks heaps. Your post helped me a lot.
Yes, very helpful.
vincent668
Registered: Jun 11 2009
Posts: 1
I have the same problem too and finally found answer here. Thanks!
enzoenzo
Registered: Jun 14 2009
Posts: 2
You could write a script in PHP using the PHP PDF functions.

More info here: http://us.php.net/manual/en/book.pdf.php.

sds drills rock!