Create pdf text box using Core Image or AppKit

How do I create an overlying text box in a pdf using Core Image or AppKit frameworks?