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

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.


  • Prev by Date: Re: Getting the number of CPUs?
  • Next by Date: Re: Multi dimensional arrays, indexing items
  • Previous by thread: Re: problems with glyph y-axis flipping in an NSBezierPath
  • Next by thread: How to get path of "Sounds" folder
  • Index(es):
    • Date
    • Thread