# Ask for any example of extracting data from PDF file

**URL:** <https://forum.cloverdx.com/t/ask-for-any-example-of-extracting-data-from-pdf-file/1135>\
**Category:** CloverDX Platform\
**Created:** [November 15, 2012, 12:00am UTC](https://forum.cloverdx.com/t/ask-for-any-example-of-extracting-data-from-pdf-file/1135 "2012-11-15T00:00:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelxie](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@michaelxie](https://forum.cloverdx.com/u/michaelxie)\
**Post date:** [November 15, 2012, 12:00am UTC](https://forum.cloverdx.com/t/ask-for-any-example-of-extracting-data-from-pdf-file/1135/1 "2012-11-15T00:00:00Z")

</div>

Hi guys.

My project need to extract data from PDF file. But I can’t find any example in [http://www.cloveretl.com/examples](http://www.cloveretl.com/examples).

Any one can help me?

I have some experiences in Sentiment Analysis.

Look forward your kindly comments.

Michael Xie

---

<div class="post-metadata">

**Author:** ![David\_Hlidek](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@David\_Hlidek](https://forum.cloverdx.com/u/David_Hlidek)\
**Post date:** [November 15, 2012, 8:21am UTC](https://forum.cloverdx.com/t/ask-for-any-example-of-extracting-data-from-pdf-file/1135/2 "2012-11-15T08:21:45Z")

</div>

Hi Michael,

CloverETL does not support PDF format directly. I would recommend you to convert PDF to some supported format - eg. txt, html, xml, … There are same free command line tools available. See e.g. [http://penguinpetes.com/b2evo/index.php?p=129](http://penguinpetes.com/b2evo/index.php?p=129) You can launch such utility via SystemExecute.

Then you can read&Parse result via XmlExtract, UniversalDataReader, …

---

<div class="post-metadata">

**Author:** ![michaelxie](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@michaelxie](https://forum.cloverdx.com/u/michaelxie)\
**Post date:** [November 18, 2012, 9:31am UTC](https://forum.cloverdx.com/t/ask-for-any-example-of-extracting-data-from-pdf-file/1135/3 "2012-11-18T09:31:58Z")

</div>

> Hi Michael,
> 
> CloverETL does not support PDF format directly. I would recommend you to convert PDF to some supported format - eg. txt, html, xml, … There are same free command line tools available. See e.g. [http://penguinpetes.com/b2evo/index.php?p=129](http://penguinpetes.com/b2evo/index.php?p=129) You can launch such utility via SystemExecute.
> 
> Then you can read&Parse result via XmlExtract, UniversalDataReader, …
> 
> “kubosj”

Hi, guys

Thanks for your reply.

I had used CAS([http://docs.oracle.com/cd/E29578\_01/index.htm](http://docs.oracle.com/cd/E29578%5F01/index.htm)) to extract data from PDF file.

But when I view the extracted data in the edge of CloverETL, I found all data are stored in one column(Endeca\_document\_text), how can I split and manipulate this data in CloverETL to get the exact information what I want from the pdf file, can you give me a detail example?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
May be, the question can be more easy:

How can I split the content of one big column in ColverETL?

For example, one article is stored in one DB column.

Thank you very much.

---

<div class="post-metadata">

**Author:** ![David\_Hlidek](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@David\_Hlidek](https://forum.cloverdx.com/u/David_Hlidek)\
**Post date:** [November 19, 2012, 8:50am UTC](https://forum.cloverdx.com/t/ask-for-any-example-of-extracting-data-from-pdf-file/1135/4 "2012-11-19T08:50:54Z")

</div>

Hi Michael,

I don’t know what is component which takes CAS results. If it is Reader (UniversalDataReader, ComplexDataReader, …) then just prepare metadata with desired fields and CloverETL will parser inputs for you automatically.

If there is another kind of input producing metadata with just one string, you can try following:  
\* use [http://doc.cloveretl.com/documentation/ … eader.html](http://doc.cloveretl.com/documentation/UserGuide/index.jsp?topic=/com.cloveretl.gui.docs/docs/datareader.html)  
\* connect edge with your current data to input, set uri to port:$0.FieldName:discrete ([http://doc.cloveretl.com/documentation/ … aders.html](http://doc.cloveretl.com/documentation/UserGuide/index.jsp?topic=/com.cloveretl.gui.docs/docs/examples-of-file-url-in-readers.html))  
\* create and attach desired output metadata (take a care of delimiters especially)

I hope this helps.
