Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 26, 2010, 12:32 AM   #1
sheetal.pawar
macrumors newbie
 
Join Date: Aug 2010
Parse PDF on MAC

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 ?
sheetal.pawar is offline   0 Reply With Quote
Old Aug 26, 2010, 12:37 AM   #2
GorillaPaws
macrumors 6502a
 
GorillaPaws's Avatar
 
Join Date: Oct 2003
Location: Richmond, VA
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.
__________________
How to ask good programming questions: Getting Answers

Last edited by GorillaPaws; Aug 26, 2010 at 12:42 AM.
GorillaPaws is offline   0 Reply With Quote
Old Aug 26, 2010, 01:04 AM   #3
Sydde
macrumors 68000
 
Sydde's Avatar
 
Join Date: Aug 2009
Quote:
Originally Posted by GorillaPaws View Post
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.
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.
__________________
Mr. Paul, sir, I thought you should be advised, there seems to be a zombie tribble clinging to your head, for it is scarfing your brain
Sydde is offline   0 Reply With Quote
Old Aug 26, 2010, 05:02 AM   #4
sheetal.pawar
Thread Starter
macrumors newbie
 
Join Date: Aug 2010
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.
sheetal.pawar is offline   0 Reply With Quote
Old Aug 26, 2010, 05:30 AM   #5
sheetal.pawar
Thread Starter
macrumors newbie
 
Join Date: Aug 2010
This will work on Mac machines, but will the same APIs work on ipad ?
sheetal.pawar is offline   0 Reply With Quote
Old Aug 26, 2010, 06:36 AM   #6
wrldwzrd89
macrumors Demi-God
 
wrldwzrd89's Avatar
 
Join Date: Jun 2003
Location: Solon, OH
You can do tons of stuff with PDFs on iOS too! The relevant docs are here: http://developer.apple.com/iphone/li...H220-TPXREF101
__________________
iMac Intel (Rev H, 27"), 1TB HDD, 16GB RAM, Ubuntu
wrldwzrd89 is offline   0 Reply With Quote
Old Aug 26, 2010, 07:56 AM   #7
robvas
macrumors 65816
 
Join Date: Mar 2009
Location: USA
Quote:
Originally Posted by sheetal.pawar View Post
Thanks for the reply and sorry for the confusion. I meant Mac OS.
While we're getting specific, Mac OS would refer to classic, and Mac OS X would refer to what Macs run these days
robvas is offline   0 Reply With Quote
Old Aug 27, 2010, 12:36 AM   #8
sheetal.pawar
Thread Starter
macrumors newbie
 
Join Date: Aug 2010
Quote:
Originally Posted by wrldwzrd89 View Post
You can do tons of stuff with PDFs on iOS too! The relevant docs are here: http://developer.apple.com/iphone/li...H220-TPXREF101
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.
sheetal.pawar is offline   0 Reply With Quote
Old Aug 27, 2010, 03:42 AM   #9
ytk
macrumors regular
 
Join Date: Jul 2010
Quote:
Originally Posted by Sydde View Post
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.
What do you mean? Everybody knows MAC stands for "Mouse Activated Computer".
ytk is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
iMessage on Mac -BigMac- Mac OS X 10.7 Lion 50 Feb 19, 2012 10:01 PM
Mac Os gone and only windows shows up, Help me. Sarwanster Windows, Linux & others on the Mac 2 Sep 24, 2011 01:32 PM
Will VGA Splitter work for 2 Monitors on mini displayport to VGA on Mac Mini 2010? QuakeProd Mac mini 10 Mar 30, 2011 02:29 AM
Save iPad document to PDF on Desktop Jambo iPad Tips, Help and Troubleshooting 0 Dec 8, 2010 11:42 AM


All times are GMT -5. The time now is 03:32 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC