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

Re: PDF zooming


  • Subject: Re: PDF zooming
  • From: "R. Scott Thompson" <email@hidden>
  • Date: Wed, 22 Sep 2004 09:35:54 -0500


On Sep 22, 2004, at 1:21 AM, Tim Conkling wrote:

Sorry -- I didn't realize until too late that there was more to your question. I'm currently using the CGPDF* functions to draw the PDF.

All you need to do is use CGContextScaleCTM to change the scale of the current coordinate system so that it matches the size you want the PDF to draw. For example, to draw the PDF at 200% you would use:


CGContextSaveGState(cgContext);
CGContextScaleCTM(cgContext, 2.0, 2.0); // scaling 2x or 200%
CGContextDrawPDFDocument(... your arguments here...)
CTContextRestoreGState(cgContext); // undo the scaling for other drawing.


Scott


-- Macintosh Software Engineering Consulting Services Visit my resume at <http://homepage.mac.com/easco/RSTResume.html>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >PDF zooming (From: Tim Conkling <email@hidden>)
 >Re: PDF zooming (From: "R. Scott Thompson" <email@hidden>)

  • Prev by Date: Re: Images in custom IB palette
  • Next by Date: Re: Newbie question: how to release an object that has been autoreleased
  • Previous by thread: Re: PDF zooming
  • Next by thread: Re: PDF zooming
  • Index(es):
    • Date
    • Thread