Re: am i loading this pdf data correctly or not?
Re: am i loading this pdf data correctly or not?
- Subject: Re: am i loading this pdf data correctly or not?
- From: Ben Dougall <email@hidden>
- Date: Wed, 6 Aug 2003 15:26:14 +0100
On Wednesday, August 6, 2003, at 02:07 pm, Marcel Weiher wrote:
pdfData = [[NSString alloc] initWithContentsOfFile:[[openPanel
filenames] objectAtIndex:0]];
should i somehow do it in two steps maybe? any pointers would be much
appreciated.
No, you should put it in an NSData, which is a container for a bag of
bytes. NSString is for actual textual data, with the semantics of
text attached, which the PDF is not. PDF is just data, so NSData is
the right way to go.
thanks for the reply.
so pdfs are made up of both text data and non-text data? and non-text
data should not be put in an NSString (that makes sense i suppose :) ).
so parsing pdf data straight from the file with regular expressions is
not on, full stop. in order to do that i'd have to first extract or
block out or something the data (non-text data that is) so as to make
sure that i do not give data (non-text) to the regular expression
methods? i need to somehow parse the NSData first before regexing.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.