• 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: Generating PDF images (+followup question)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Generating PDF images (+followup question)


  • Subject: Re: Generating PDF images (+followup question)
  • From: Graham Cox <email@hidden>
  • Date: Fri, 28 May 2010 17:22:54 +1000

Hallelujah!!!

Thanks Stephen, that's the piece of the puzzle I was missing. I was assuming (or misinterpreting) that passing flipped:YES for the NSGraphicsContext ACTUALLY FLIPPED the context, not just informed it that the context had been flipped.

I found I had to set the CTM after the CGPDFContextBeginPage - looks like that might be resetting it, but basically, it works, I now get a right-way up PDF file.

Now I know my source data really is right-side up, I can figure out the second part which is making sure images that embody it DRAW right-side up.

thanks again, greatly relieved!

--Graham



On 28/05/2010, at 5:11 PM, Stephen J. Butler wrote:

> CGContextTranslateCTM( pdfContext, 0.0, size.height );
> // Now "flip" the y-axis so that it increases downwards
> CGContextScaleCTM( pdfContext, 1.0, -1.0 );

_______________________________________________

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: Generating PDF images (+followup question)
      • From: Ken Ferry <email@hidden>
References: 
 >Generating PDF images (From: Graham Cox <email@hidden>)
 >Re: Generating PDF images (From: Kyle Sluder <email@hidden>)
 >Re: Generating PDF images (+followup question) (From: Graham Cox <email@hidden>)
 >Re: Generating PDF images (+followup question) (From: Ken Ferry <email@hidden>)
 >Re: Generating PDF images (+followup question) (From: Graham Cox <email@hidden>)
 >Re: Generating PDF images (+followup question) (From: Ken Ferry <email@hidden>)
 >Re: Generating PDF images (+followup question) (From: Graham Cox <email@hidden>)
 >Re: Generating PDF images (+followup question) (From: "Stephen J. Butler" <email@hidden>)

  • Prev by Date: Re: Generating PDF images (+followup question)
  • Next by Date: Re: Generating PDF images (+followup question)
  • Previous by thread: Re: Generating PDF images (+followup question)
  • Next by thread: Re: Generating PDF images (+followup question)
  • Index(es):
    • Date
    • Thread