Re: Unable to generate a PDF from textual data
Re: Unable to generate a PDF from textual data
- Subject: Re: Unable to generate a PDF from textual data
- From: "I. Savant" <email@hidden>
- Date: Fri, 14 Nov 2008 13:35:56 -0500
On Fri, Nov 14, 2008 at 1:16 PM, Lee, Frederick (Ric)
<email@hidden> wrote:
> // 1) Create the PDF Data Source:
>
> CFDataRef faxMsgData = (CFDataRef)[[self.faxHistoryItemDict objectForKey:@"msg"] dataUsingEncoding: NSUTF8StringEncoding];
>
> CGDataProviderRef faxMsgDataRef = CGDataProviderCreateWithCFData(faxMsgData);
>
> // 2) Create the PDF doc:
>
> self.faxPDFDoc = CGPDFDocumentCreateWithProvider(faxMsgDataRef); // I don't get a PDF here.
Is faxMsgData valid? Does CGDataProviderCreateWithCFData() give you
a valid CGDataProviderRef?
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden