On Jul 15, 2009, at 6:25 PM, K. Darcy Otto wrote:
(1) Contrary to my first message, it appears to me now that
PDFDocument inherits from NSObject. So, i shouldn't have to do any
special memory management, right?
You shouldn't. It is a bug in the PDFKit framework. Please file a
bug via
I have a PDF that I've loaded, combined with another PDF, and now I'm
ready to save the result as a new file. My program is using garbage
collection, but I understand that PDFKit is not garbage collected.
The problem is that I get reference count underflow error when writing
the PDF.
In an effort to get out of this problem, I also thought I might just
take a data representation of the PDFDocument object, and write the
data to a file. I get the same problem. Here is what I tried,
substituting for [savedDoc writeToFile:@newFile.pdf] below:
NSData *myData = [savedDoc