• 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: Kai <email@hidden>
  • Date: Fri, 20 Jun 2008 22:30:27 +0200


On 20.6.2008, at 13:47, Torsten Curdt wrote:


On Jun 20, 2008, at 13:09, Antonio Nunes wrote:

On 20 Jun 2008, at 11:07, Torsten Curdt wrote:

you can't go wrong by reading the "Cocoa
Drawing Guide."

Surely will read through that. Because frankly speaking I didn't think this was Quartz related.

Well, you need to know how to generally draw in Cocoa, and you need to know how to take advantage of PDFKit, so both John Calhoun and Joel Norvell provided useful pointers.


The scaling is done when a PDFPage needs to be drawn, so you need to implement it in your subclass's drawWithBox: method. Use an affine transform set up to serve your needs and apply it to the current graphics context within the drawWithBox: method before drawing the page.

Right. The point though is - I don't really want to display it. So I did not look into the drawing side of things. But I guess I just read up on the Quartz stuff and then get back to you guys (if needed). I assume one could also draw in memory - without displaying. Just didn't know that's the right direction.

You just should be aware that Quartz rewrites the PDF from scratch when using this approach. That is, while still showing the same grafics, the result is a completely new PDF file with potentially very different structure. Plus, since Quartz is about displaying, some non- display properties of the original PDF may be lost. Its a while ago that I last checked (Tiger, I think), but I would be surprised if Quartz became perfect in this respect in the meantime.


Depending on your application, this may be between no problem and inacceptable.

Greetings
Kai

_______________________________________________

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


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>)

  • Prev by Date: How is an NSDecimalNumber an incompatible type for argument 1 of 'decimalNumberWithDecimal:'?
  • Next by Date: Linking with OpenSSL
  • Previous by thread: Re: PDFKit guidance
  • Next by thread: NSTableView DataSource Problem
  • Index(es):
    • Date
    • Thread