Extract data from fillable pdf

I need to extract the data that is typed into a fillable pdf in swift. When I try to retrieve the data using

pdf.string

I get the text right before and after the fillable box but not the text in the box. Does anyone know how to get the data in the fillable box?

Replies

I’m not a PDF expert, so I’ve no direct experience with this, but this sort of metadata is usually accessible via the PDFAnnotation mechanism.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"