On Wed, Oct 29, 2008 at 4:46 PM, Joel Norvell <[EMAIL PROTECTED]> wrote: > Dear Cocoa-dev People, > > First, I wanted to thank Aki Inoue and Rob Keniger for pointing out the > problem with my NSData->NSString->NSData approach. > > As an alternative, would it be fruitful to use a Directory Wrapper to > represent the data as two files; one the metadata and the other the pdf? > Then I could work with the metadata file, but just display the pdf file. > > In the "What could go wrong here?" department, would my compound file end up > behaving like a directory (or worse)?
Better yet, why not just insert the metadata into the PDF directly as comments? The PDF format is basically a postscript file (with some missing features and, I think, optional compression) and you should be able to insert comments (lines starting with %%) after the first line (which is a required header comment) with no problem. Reliably detecting PDF files that contain your meta data and extracting it may be a bit of a challenge, in the general case, but not really all that hard. Before writing a lot of custom code to do this, I'd have a look at the documentation for PDFKit and PDFDocument. you can get references on the PDF format here: http://www.adobe.com/devnet/pdf/pdf_reference_archive.html -- Jeff Dutky _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
