PDF to CSV converter

I am looking for a SIMPLE PDF to CSV converter.

I have found many that use fancy GUI's but I am looking for a converter that is controlled by COMMAND LINE.

The reason for this is I want to be able to create a BATCH file that my customer can run with one click.  I don't want my customers to have to learn a GUI, which would complicate matters and introduce more steps in the process,
Biggles1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joe Winograd, Fellow&MVEDeveloperCommented:
Please post a sample PDF, making sure that there is no private/sensitive info in it. Thanks, Joe
0
Biggles1Author Commented:
Here is a typical pdf that I need to convert to csv (see attached)CP-SvcRequest2.pdf
0
Biggles1Author Commented:
It's important to have a command line capability so I could provide a batch file the customer could use.  The customer I am dealing with would not have to patience or knowledge to add a GUI to his process.
0
Joe Winograd, Fellow&MVEDeveloperCommented:
> important to have a command line capability so I could provide a batch file the customer could use

It's easy to extract the text from the PDF file with a command line tool. I would use the Xpdf utility called PDFtoText, but there are plenty of other ways.

> so I could provide a batch file the customer could use

I would write a script in the AutoHotkey language, as it is a robust language that would allow manipulation of the text into CSV format. I would compile it into an EXE and call it from a batch file so that your customer would not have to learn a GUI, or maybe even create a Windows installer for it so that all your customer has to do is click a shortcut on the Start menu (or pin it to the taskbar). As with the step above, there are plenty of other ways to achieve this. But the question is: What should the CSV file look like? You obviously want a CSV (rather than TXT) so that it can be loaded into Excel, but what should the spreadsheet look like?

The text (via PDFtoText) from your sample PDF is in the attached TXT file. Please post the CSV file that you want created from it. Regards, Joe
CP-SvcRequest2.txt
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.