Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 623045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:03:01+00:00 2026-05-13T19:03:01+00:00

While I was going thru the pdf document in quartz 2D, they were saying

  • 0

While I was going thru the pdf document in quartz 2D, they were saying about getting a page from the CGPDFDocument object. Then the draw the page in a CGContextRef object.

CGPDFDocumentRef document = MyGetPDFDocumentRef (filename);
CGPDFPageRef page = CGPDFDocumentGetPage (document, pageNumber); 
CGContextDrawPDFPage (myContext, page); 
CGPDFDocumentRelease (document); 

Everything is done into this context. I dont understand how these things done to a context can be viewed in a view OR Am i missing something? I am viewing the pdf in a webView.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:03:01+00:00Added an answer on May 13, 2026 at 7:03 pm

    A CGContextRef is a canvas for drawing 2D stuff on it. The code you quoted draws a PDF page on the canvas.

    Every UIView has a -drawRect: method for rendering the view on screen. In the method a CGContextRef is automatically provided (UIGraphicsGetCurrentContext()) for you to draw what you needed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While going through university and from following the development of SO, I've heard a
undefined method 'key?' for nil:NilClass This is the error I am getting while going
I am trying to learn about Objective-C for iPhone development, and while going through
I'm getting this error while going through Spring in Action: 3rd edition: Chapter 1.
I'm trying to keep my UITableView scrolling smoothly while going through about 700 pictures
while going through video tutorials for mvc2 which i downloaded from microsoft's website, the
While going through many resources on multithreaded programming, reference to volatile specifier usually comes
While going through Effective C++ (by Scott Meyers), I came across the following code
While going through the syslog file, I found a message like shutdown via gdm
While going through the book Scala for the Impatient , I came across this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.