how do I read the contents of a pdf file in symfony?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sobha
Forum Commoner
Posts: 56
Joined: Wed Jul 15, 2009 9:08 pm

how do I read the contents of a pdf file in symfony?

Post by sobha »

how do I read the contents of pdf files in a folder in symfony?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: how do I read the contents of a pdf file in symfony?

Post by Celauran »

The short answer is you don't. They're binary files and extracting the text into something meaningful and usable is... not easy. Poppler utils can help, but it's likely going to be painful.
Post Reply