htmlDVWeaver Posted April 22, 2007 Share Posted April 22, 2007 Any 1 can help me with this. I do have a set of data in a PDF file in the form of (first name: xxxxx, Last name: xxxx, Address, xxxx, and a lot of other info that I really don’t need..(The PDF file is about 500 sets of these fields).) The problem here is the fields are in the following format: First Name: xxxxxx Xxxxxx (which is the last name without the label ‘Last Name:’) Address: xxxxxxx I want to write a script to go over the PDF file and extract only the three first fields (First. name, Last name and Address) to put them in a mySQL database. Thanks a lot Link to comment https://forums.phpfreaks.com/topic/48136-php-use-of-text-delimiters/ Share on other sites More sharing options...
AndyB Posted April 22, 2007 Share Posted April 22, 2007 Is your problem abstractring the dta from the pdf file, or in separating individual items from the abstracted data? If it's the latter, then you might want to look at explode() to turn each line into an array and just abstract the array elements you want. Link to comment https://forums.phpfreaks.com/topic/48136-php-use-of-text-delimiters/#findComment-235233 Share on other sites More sharing options...
jchemie Posted April 22, 2007 Share Posted April 22, 2007 Well, If you are able to extract text out of the pdf file, you can simply explode the text using the newline character... and include lines upto third semicolon you recieve(that is the obvious seperator i see to locate the new field). Link to comment https://forums.phpfreaks.com/topic/48136-php-use-of-text-delimiters/#findComment-235238 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.