opensubscriber
   Find in this group all groups
 
Unknown more information…

q : quartz-dev@lists.apple.com 18 December 2005 • 12:56AM -0500

Documentation Bug
by Nick Nallick

REPLY TO AUTHOR
 
REPLY TO GROUP




The page below contains the following code fragment.  Unless I'm  
mistaken CGPDFPageRelease should not follow CGPDFDocumentGetPage.

Nick

----------------------------

http://developer.apple.com/documentation/GraphicsImaging/Conceptual/
drawingwithquartz2d/dq_pdf_scan/chapter_15_section_3.html

for (k = 0; k < numOfPages; k++) {

     myPage = CGPDFDocumentGetPage (myDocument, k + 1 );
     myContentStream = CGPDFContentStreamCreateWithPage (myPage);
     myScanner = CGPDFScannerCreate (myContentStream, myTable, NULL);
     CGPDFScannerScan (myScanner);
     CGPDFPageRelease (myPage);
     CGPDFScannerRelease (myScanner);
     CGPDFContentStreamRelease (myContentStream);
  }
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (Quartz-dev@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/subscriber%40opensubscriber.com

This email sent to subscriber@open...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.