Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / May 2006



Tip: Looking for answers? Try searching our database.

Problem drawing a pdf document (CGContextDrawPDFDocument)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hans Stoessel - 17 May 2006 09:59 GMT
Hi

I develop a QuarkXtension in CW 8.3. In this XTension there is a dialog and
I want to display a pdf document in a rectangle of this dialog. I use
CGContextDrawPDFDocument to do this. But it doesn't work. The document isn't
displayed.
What could be wrong?
Has anybody a piece of sample code?

I tried the same using CGContextDrawPDFPage, but the class CGPDFPageRef
isn't known. I included "CFPDFPage.h", but after that I have a lot of error
messages from the compiler. I don't know why. The class CGPDFDocumentRef is
known without including any header file. I know, somewhere it is declared,
but I am wondering why CGPDFDocumentRef is declared and CGPDFPageRef not.
Any idea?

Thanks.

Regards
Hans
larry@skytag.com - 21 May 2006 19:21 GMT
> Hi
>
[quoted text clipped - 11 lines]
> but I am wondering why CGPDFDocumentRef is declared and CGPDFPageRef not.
> Any idea?

This isn't really a CW issue. For Mac development questions I'd highly
recommend using one of Apple's developer lists suchs as carbon-dev
instead of this list, which is quickly losing contributors.

Larry
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.