Parse PDF on MAC

Discussion in 'Mac Programming' started by sheetal.pawar, Aug 25, 2010.

  1. macrumors newbie

    Joined:
    Aug 12, 2010
    #1
    Hi,

    I need to search a word in a PDF file. Currently I am getting only the page on which the word exists. But the exact location of the word is not known and hence cannot highlight the word.
    Are there any PDF parsers available for MAC which can give the position of the word to be searched ?
    Or any PDF parsers which will convert PDF file text in XML format on MAC ?
     
  2. macrumors 6502a

    GorillaPaws

    Joined:
    Oct 26, 2003
    Location:
    Richmond, VA
    #2
    Did you check the PDF Kit docs?

    Also, typically MAC refers to Media Access Control (as in MAC Address); Mac is the computer. It may seem pedantic, but using the proper spellings can greatly reduce confusion in some cases.
     
  3. macrumors 68000

    Sydde

    Joined:
    Aug 17, 2009
    #3
    All the letters in PC are capitalized, so some might think it should be the same for Macs. As though it were some sort of Macronym.
     
  4. thread starter macrumors newbie

    Joined:
    Aug 12, 2010
    #4
    Thanks for the reply and sorry for the confusion. I meant Mac OS.

    At times the PDF text is encoded in some format. Will this search decode the text also ?
    In the PDF kit doc nothing is mentioned on the decoding part.
     
  5. thread starter macrumors newbie

    Joined:
    Aug 12, 2010
    #5
    This will work on Mac machines, but will the same APIs work on ipad ?
     
  6. macrumors G4

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #6
  7. macrumors 68000

    Joined:
    Mar 29, 2009
    Location:
    USA
    #7
    While we're getting specific, Mac OS would refer to classic, and Mac OS X would refer to what Macs run these days ;)
     
  8. thread starter macrumors newbie

    Joined:
    Aug 12, 2010
    #8
    The APIs mentioned in the link are used. I am able to get the page number on which the search string exists and also able to display the page. But I am not able to highlight the exact search string on the page and bring the document visibility to that string.
     
  9. ytk
    macrumors regular

    Joined:
    Jul 8, 2010
    #9
    What do you mean? Everybody knows MAC stands for "Mouse Activated Computer". ;)
     

Share This Page