Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF

TOPIC:

error when toggling between portrait and landscape mode 5 years 9 months ago #13913

  • pooja
  • pooja's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 38
  • Thank you received: 0
Hi,
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.

Thanks,
Pooja

Please Log in or Create an account to join the conversation.

error when toggling between portrait and landscape mode 5 years 9 months ago #13914

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
this is an expected behaviour, because when you rotate the device, the pdf has to be re-scaled and re-rendered.

Please Log in or Create an account to join the conversation.

error when toggling between portrait and landscape mode 5 years 9 months ago #13918

  • pooja
  • pooja's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 38
  • Thank you received: 0
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.

Please Log in or Create an account to join the conversation.

Last edit: by pooja.

error when toggling between portrait and landscape mode 5 years 9 months ago #13921

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
can you reproduce the issue with the last demo project? www.radaeepdf.com/download/download-prev...e/66-radaeepdf-3152b
Can you reproduce it with all the pdfs?
Can you please send us a pdf with that issue?

We have tried with some pdfs but we can't reproduce it.

Please Log in or Create an account to join the conversation.

error when toggling between portrait and landscape mode 5 years 9 months ago #13925

  • pooja
  • pooja's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 38
  • Thank you received: 0
Yes. I have attached the file. Type something in one of the fields, keep the cursor on that field after typing, don't move it. Rotate screen now. You will see that the text is gone.
Attachments:

Please Log in or Create an account to join the conversation.

error when toggling between portrait and landscape mode 5 years 9 months ago #13928

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,
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.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum