title: Adding text to existing PDF page in Cocoa under OS X
body: <p>I am struggling to get add text to an existing PDF page using PDFkit. Not sure if I need to go to the depths of CGPDF or I am missing something simple.</p>
  
  <p>Here I am getting an existing single page PDF and (trying to) adding a line of text.</p>
  
  <pre><code>PDFDocument *thisPDF = [[PDFDocument alloc]initWithURL:PDFURL];
  PDFPage *aPage =[thisPDF pageAtIndex:0];
  NSRect pdfRect = [aPage boundsForBox:kPDFDisplayBoxArtBox];
  [@“Text on PDF Page" drawInRect:pdfRect withAttributes:NULL];
  </code></pre>
  
  <p>I know I should add some attributes, which may be the issue, but I am looking for some guidance to how to just add the text at this point. I have been through the Quartz Guide, but this only references the CGPDF stuff, which I have tried and failed to implement successfully.</p>
  
  <p>Can I do what I intend with just PDFKit? Am I heading in the right direction?</p>