CGPDFContext
CGPDFContext
- Subject: CGPDFContext
- From: Thierry Faucounau <email@hidden>
- Date: Tue, 7 Aug 2001 16:23:46 -0600
Hi,
I'm trying to draw into a pdf context and keep getting a seg_fault
whenever I try to stroke my first path.
The Backtrace from the debugger seems to indicate that Quartz is trying
to end a text object.
The app crashes in something called PDFStreamGetTextObject called from
PDFEndTextObject.
This is all good and well except I have not created a text object, only
line segments stored in a path.
I basically create a CGPDFContext with CGPDFContextCreate then call
CGContextBeginPath, CGContextMoveToPoint and a series of
CGContextAddLineToPoint. When I have my path I call CGContextStrokePath
and tthe app seg_faults with a bad_access at the PDFStreamGetTextObject
call (all of these pass the CGContextRef returned by CGPDFContextCreate
as their first parameters).
I also noticed that calling CGContextSetRGBStrokeColor at the beginning
would seg_fault at PDFStreamAddColorSpace.
All this leads me to believe that I have not set up the context properly.
Any help would be appreciated.
--
Thierry Faucounau
Research Systems, Inc.