Re: Unable to generate a PDF from textual data

2008-11-14 Thread Michael Ash
On Fri, Nov 14, 2008 at 3:34 PM, Lee, Frederick (Ric) <[EMAIL PROTECTED]> wrote: > Thanks from a neophyte. > Yes... > I had hoped that I could 'magically' create a PDF from a text string. > I noticed that you can select 'text' from a PDF document. I thought you > could likewise create a PDF from t

RE: Unable to generate a PDF from textual data

2008-11-14 Thread Lee, Frederick (Ric)
on his iPhone. Ric. -Original Message- From: David Duncan [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2008 1:05 PM To: Lee, Frederick (Ric) Cc: cocoa-dev@lists.apple.com Subject: Re: Unable to generate a PDF from textual data On Nov 14, 2008, at 10:16 AM, Lee, Frederick (Ric) wrote:

Re: Unable to generate a PDF from textual data

2008-11-14 Thread Michael Ash
On Fri, Nov 14, 2008 at 1:16 PM, Lee, Frederick (Ric) <[EMAIL PROTECTED]> wrote: > Greetings: > > I'm trying to create a PDF from a NSString; but I'm not getting anything. > > What am I doing wrong? Are you thinking that your code will build a PDF which contains a visual representation of the te

Re: Unable to generate a PDF from textual data

2008-11-14 Thread Charles Steinman
Are you certain that faxMsgData is valid PDF data? It sounds like it isn't being recognized as a PDF. Cheers, Chuck --- On Fri, 11/14/08, Lee, Frederick (Ric) <[EMAIL PROTECTED]> wrote: > From: Lee, Frederick (Ric) <[EMAIL PROTECTED]> > Subject: Unable to generate a PDF

Re: Unable to generate a PDF from textual data

2008-11-14 Thread David Duncan
On Nov 14, 2008, at 10:16 AM, Lee, Frederick (Ric) wrote: CFDataRef faxMsgData = (CFDataRef)[[self.faxHistoryItemDict objectForKey:@"msg"] dataUsingEncoding: NSUTF8StringEncoding]; This is not PDF data, this is just text. CGPDFDocumentCreateWithProvider() expects valid PDF data to b

Re: Unable to generate a PDF from textual data

2008-11-14 Thread I. Savant
On Fri, Nov 14, 2008 at 1:16 PM, Lee, Frederick (Ric) <[EMAIL PROTECTED]> wrote: >// 1) Create the PDF Data Source: > >CFDataRef faxMsgData = (CFDataRef)[[self.faxHistoryItemDict > objectForKey:@"msg"] dataUsingEncoding: NSUTF8StringEncoding]; > >CGDataProviderRef faxMsgDa

Unable to generate a PDF from textual data

2008-11-14 Thread Lee, Frederick (Ric)
Greetings: I'm trying to create a PDF from a NSString; but I'm not getting anything. What am I doing wrong? - (id)initWithData:(NSDictionary *)inData { self = [super init]; if (self != nil) { self.faxHistoryItemDict = inData; // 1) Create the PDF Data Source: