PDF screen turns white when user toggles between portrait and landscape mode when in a form. Also, toggling between horizontal and vertical erases text in PDF. Text should always stay. Both these issues are happening for iOS and Android both. Please suggest fix.
But it should not clear the form fields right? It currently clears the form fields after rotate. For eg. if I write something to a form field, and rotate the device, the text is gone. Expected behavior is that the text stays even after rotate.
this is the standard behavior of the demo project.
When you tap an edit text annotation a native textfield is added on it, then you can type some text.
If you rotate the device without tapping on return key or on the screen, the page will be re-rendered and the textfield will be removed without calling the annot save method.
If you want to change this behavior, you can edit the rotation method and save the textfield annot content.