Re: Fixed format report document building
Re: Fixed format report document building
- Subject: Re: Fixed format report document building
- From: "email@hidden" <email@hidden>
- Date: Tue, 14 Jan 2014 09:34:05 +0000
On 9 Jan 2014, at 22:03, Kyle Sluder <email@hidden> wrote:
> On Thu, Jan 9, 2014, at 01:54 PM, email@hidden wrote:
>>
>>
>> What is the best approach for generating fixed format report documents in
>> Cocoa?
>>
>> My thoughts:
>
> This is exactly AppKit's document generation API. It's how TextEdit,
> etc. generate their print output. They create (or reuse) an NSTextView,
> construct an NSPrintOperation around that view, and run the print
> operation.
>
> Please read "The AppKit Printing API":
> <https://developer.apple.com/library/mac/documentation/cocoa/conceptual/Printing/osxp_printingapi/osxp_printingapi.html>
>
Thanks.
I didn’t think there was much alternative but it always helps to ask.
It some cases it turns out that rather than generating the entire document from scratch I have the option of modifying an existing PDF.
So in those cases subclassing PDFPage looks promising.
Jonathan
_______________________________________________
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