how get Form from existing PDF-Document - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: how get Form from existing PDF-Document

how get Form from existing PDF-Document 11 months 4 weeks ago #13227

  • TeleSon
  • TeleSon's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Hi,
i can't find possibility to get the form. i need it for filling out programmatically. i find only on document ExportForm and it get XML informations about form. but i don't need this informations. i need to fill out it! :)
can somebody help me? is it possible to do like this? i do it on the server with iText and it's easy. but i need it now on android.
Thanks.
b.r.
Tom

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

Last edit: by TeleSon.

how get Form from existing PDF-Document 11 months 4 weeks ago #13228

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
Dear Tom,
You can get/set form fields using the following methods in com.radaee.util.RadaeePDFManager:
  • getJsonFormFields()
  • getJsonFormFieldsAtPage(pageno)
  • setFormFieldsWithJSON()
For more details, please check Get/Set form fields in JSON format in Android

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

how get Form from existing PDF-Document 11 months 3 weeks ago #13236

  • TeleSon
  • TeleSon's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Hi,
thanks, i had the old version 3.5, now I take 3.14, but: I but need only get the form fields but own values and close make the document flat (text from form will be printed to document and form will be removed) and save it as other file. I don't want to open document in any other activity! is this possible?

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

how get Form from existing PDF-Document 11 months 3 weeks ago #13253

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
Dear Tom,

Yes, it's possible. you can use the same mechanism mentioned in the above methods (remove the json part if you do not need it). The only difference is that you need to open the document first, then call page.FlatAnnots and Document.Save after setting the values.

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

  • Page:
  • 1
Powered by Kunena Forum