• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Quick look preview multipage rich text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quick look preview multipage rich text


  • Subject: Re: Quick look preview multipage rich text
  • From: "Julien Jalon" <email@hidden>
  • Date: Fri, 11 Jul 2008 22:02:55 +0200

On Fri, Jul 11, 2008 at 8:00 PM, Philip Dow <email@hidden> wrote:

>
> That's right, I realized after posting the message that I should have
> boiled it down to the following:
>
> + (NSPrintOperation *)PDFOperationWithView:insideRect:toData:printInfo:
> This operation produces a single page of PDF no matter what print settings
> I pass in, one very long page.
>
> + (NSPrintOperation *)printOperationWithView:printInfo:aPrintInfo
> This operation when set to write the data to disk correctly produces a
> paginated document.
>
> It's like the NSPrintOperation methods do not allow you to create a
> multi-page PDF in memory. You have to write it to disk first.
>
> I did take a look at the output in both operations, and that's exactly what
> happens. The fist op gives you one long page of pdf, which is unreadable
> when scaled to fit inside the quicklook preview. The second op gives you
> what you expect.
>
> I suppose I could use the second operation and then read back in the
> correctly paginated pdf, but then I'm writing out to the hard disk any time
> the user wants to quicklook my document. This seems like a terrible waste of
> resources.
>


Please, don't do that as your plug-in really should avoid doing anything but
reading stuff on disk. Maybe someone from the AppKit team will be able to
find the source of your problem.

--
Julien

>
_______________________________________________

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

  • Follow-Ups:
    • Re: Quick look preview multipage rich text -- NSPrintOperation inconsistency
      • From: Philip Dow <email@hidden>
References: 
 >Quick look preview multipage rich text (From: Philip Dow <email@hidden>)
 >Re: Quick look preview multipage rich text (From: "Julien Jalon" <email@hidden>)
 >Re: Quick look preview multipage rich text (From: Philip Dow <email@hidden>)

  • Prev by Date: Re: Why can't I name a property `tag'?
  • Next by Date: Re: delegation strategy
  • Previous by thread: Re: Quick look preview multipage rich text
  • Next by thread: Re: Quick look preview multipage rich text -- NSPrintOperation inconsistency
  • Index(es):
    • Date
    • Thread