Please give a brief summary of your issue:
(Think of this as an email subject)
*we are able to set value or text to text filed of pdf using PTDocumentController & PTField * but pdf page is not refreshing/Reflecting that value/Text. On zooming in pdf that value/Text is refreshed.
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
value/Text set to textfield but it reflect on zooming only. It need to show when pdf is open only.
below func we use to set n refresh value field.setValueWith(“test”)
field.refreshAppearance()*
we open the document using PTDocumentController class we use PTFieldIterator n PTField class we checked on both ios sdk version 9.2.3 and 9.3.1
Please provide a link to a minimal sample where the issue is reproducible:
function to set the value to textfield.
let itr: PTFieldIterator = documentController.document!.getFieldIterator()
while itr.hasNext()
{
let field: PTField = itr.current()
if field.getType() == e_pttext {
print("Text Field name: \(field.getName()!)")
print("\(field.getValueAsString() ?? "")")
// field.eraseAppearance()
field.setValueWith("test")
field.refreshAppearance()
}
itr.next()
}
You can also get it to work by just calling documentController.pdfViewCtrl.update(), and don’t have to call updatePageLayout(). This function must be called
after document page sequence is modified (such as when a page is being added to or removed from a document) or after changes to page dimensions (e.g. after a page is rotated or resized).