PDFの目次を迅速に作成しようとしています。境界と背景色は表示されていますが、ボタンにテキストが表示されていません。
let anno: PDFAnnotation = PDFAnnotation(bounds: CGRect(x: xPosition, y: yPosition, width: 300, height: 40), forType: .widget, withProperties: nil)
anno.widgetFieldType = .button
anno.backgroundColor = UIColor.white
anno.fontColor = UIColor.black
anno.alignment = NSTextAlignment.center
anno.destination = PDFDestination()
anno.fieldName = "Button Third try"
anno.widgetStringValue = "button hello?"
anno.caption = "This is a test button"
anno.draw(with: PDFDisplayBox.mediaBox, in: context.cgContext)
最終的に、PDF ドキュメントのページに移動するリンクをクリックしたい