Results 1 to 2 of 2
  1. #1
    Unite is offline Member
    Join Date
    Jun 2008
    Posts
    2
    Rep Power
    0

    Default Java Extract PDF data from location XY

    Anyone know of any classes that would allow me to input a pdf, convert it into a image format, locate data at XY-XXYY (rectangle) and convert to readable text?
    Heres the scenario :
    I need to read PDF bills and extract 5 fields worth of information to be inputted into a database. The PDF's can be generated from any application eg : Pastel Accounting. The XY-XXYY locations for the data to be extracted will be called from a database. Any suggestions or help?
    I have tried the method of converting to a HTML document and reading the absolute positions but the problem Im having is if a amount is right aligned 1000.00 will have a different XY to 100.00 for example. Aswell because the PDF is a invoice/bill I cant say read the 20th line from the top cause each item will increase the amount of lines so this is unreliable.

  2. #2
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    7

    Default

    Hi,
    There are many links to read from and write to pdf. Check the following links
    1. Java libraries to read and write PDF files
    2. Open Source PDF Libraries in Java - iText
    3. "http://www.java2s.com/Code/Java/PDF-RTF/PDF-Read.htm" is just an example.

    iText is the most commonly used one.
    To finish sooner, take your own time....
    Nivedithaaaa

Similar Threads

  1. Applet Image location
    By MarkWilson in forum NetBeans
    Replies: 3
    Last Post: 06-30-2008, 07:37 AM
  2. [SOLVED] How to Extract Data From this text file?
    By jazz2k8 in forum New To Java
    Replies: 31
    Last Post: 04-18-2008, 10:45 AM
  3. Extract Text from PDF File using java
    By TSW1016 in forum Advanced Java
    Replies: 5
    Last Post: 01-06-2008, 11:03 PM
  4. JFileChooser remember the location
    By Mr tuition in forum AWT / Swing
    Replies: 3
    Last Post: 12-08-2007, 05:17 PM
  5. how to get the location of some button
    By mary in forum Java 2D
    Replies: 2
    Last Post: 08-05-2007, 04:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •