我希望从此PDF上获得一些帮助,首先是如何计算表格字符数限制,当用户达到最大字符数时,然后转到下一个字段,例如text2FieldName如何通过代码创建下拉列表?用户触摸此表单时如何添加系统时间?用户触摸表单时如何自动添加日期?是否可以通过GPS以某种形式添加位置?
//简介:“ Text1” let text1FieldNameBounds = CGRect(x:153,y:pageBounds.size.height-360,宽度:427,高度:20)let text1FieldName = PDFAnnotation(bounds:text1FieldNameBounds,forType:PDFAnnotationSubtype(rawValue:PDFAnnotationSubtype.widget.rawValue),withProperties :nil)text1FieldName.widgetFieldType = PDFAnnotationWidgetSubtype(rawValue:PDFAnnotationWidgetSubtype.text.rawValue)text1FieldName.backgroundColor = UIColor.blue.withAlphaComponent(0.25)text1FieldName.font = UIFont.systemFont(ofSize:9)page.addAnnotation(text1FieldName)