• 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: PDFKit guidance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PDFKit guidance


  • Subject: Re: PDFKit guidance
  • From: Torsten Curdt <email@hidden>
  • Date: Thu, 26 Jun 2008 20:54:43 +0200

OK, guys thanks for the help so far. I've played a bit.

The subclassing of PDFDocument and PDFPage was quite straight forward. (Although unexpected as usually everyone tells you "usually you don't subclass in Cocoa land") Just out of curiosity I've just compiled it with the 10.4 SDK and it compiled just fine. So I guess it will just not work on 10.4 although it has compiled successfully?

(I am on Leopard still targeting Tiger. That's why)

Well, in a very crude fashion you can still accomplish what it is I think you;re trying to accomplish. You're subclassed PDFPage's could, on Tiger, render a regular PDFPage. It's gross but what I'm describing is basically having two parallel PDFDocuments — one created from a file or data ([PDFDocument initWithURL:] or [PDFDocument initWithData:]) and the other empty PDFDocument you create with -[init]. For each page in the former document you create a new PDFPageSubclass object and add it to the empty document. Your subclass does the various scaling/filtering in it's draw method and calls it's doppleganger PDFPage to render.

So I said it was gross....

Hm ...indeed

So should rather look into the CGPDFDocumentRefs (/Developer/Examples/ Quartz/PDF/CGPDFViewer) way of doing it?

cheers
--
Torsten_______________________________________________

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: PDFKit guidance
      • From: Douglas Davidson <email@hidden>
References: 
 >Re: PDFKit guidance (From: Joel Norvell <email@hidden>)
 >Re: PDFKit guidance (From: Torsten Curdt <email@hidden>)
 >Re: PDFKit guidance (From: Antonio Nunes <email@hidden>)
 >Re: PDFKit guidance (From: Torsten Curdt <email@hidden>)
 >Re: PDFKit guidance (From: "Adam R. Maxwell" <email@hidden>)
 >Re: PDFKit guidance (From: John Calhoun <email@hidden>)
 >Re: PDFKit guidance (From: "Adam R. Maxwell" <email@hidden>)
 >Re: PDFKit guidance (From: John Calhoun <email@hidden>)
 >Re: PDFKit guidance (From: "Adam R. Maxwell" <email@hidden>)
 >Re: PDFKit guidance (From: John Calhoun <email@hidden>)

  • Prev by Date: Re: NSSpeechSynthesizer and empty strings
  • Next by Date: Re: Good mouse tracking design for dynamic view?
  • Previous by thread: Re: PDFKit guidance
  • Next by thread: Re: PDFKit guidance
  • Index(es):
    • Date
    • Thread