PDF parser

Hi,

I need to extract content from a pdf file and that has each block of text formatted with different font styles. I will be storing this content in a  db. For example

<p style="text-align: justify; margin-bottom: 7px; line-height: 13px;">
<span style="font-family: 'sans-serif'; font-size: 12px; font-weight: bold; color: rgb(0, 0, 0);">name here</span><span style="font-size: 13px; color: #000;"> some text</span><span style="font-family: 'sans-serif'; font-size: 15px; font-weight: normal; color:#000;"> some more text here </span></p>

In the above example, if you see that there are different formatting used i.e. bold text, increased font size and so on. Also, not all the items follow the same styling. Some might not have the bold text and some might have the content with font:15px repeated twice and so on..

Is there any pdf extraction technique(tool) which I can use to select some text and extract everything that is of same format and save the output.

OR

Is there any good PHP parser that can parse based on the text formatting, please let me know.

regards
IgiwwaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

innotionentCommented:
wow that's a tall order.

If the pdf is an image. then the answer is no.

I haven't done this. but here is a link that say you can use xpdf's pdftotext
This might be a step i the right direction for ya.
http://davidwalsh.name/read-pdf-doc-file-php
0
IgiwwaAuthor Commented:
hi,

thanks for the reply. I also found these tools and gave a try but it's not helpful. I will deal this differently.

regards
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Programming

From novice to tech pro — start learning today.