Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

how get Form from existing PDF-Document

More
IP: 192.168.0.71 8 years 9 months ago - 8 years 9 months ago #13227 by TeleSon
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
Last edit: 8 years 9 months ago by TeleSon.
More
IP: 192.168.0.71 8 years 9 months ago #13228 by nermeen
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
More
IP: 192.168.0.71 8 years 9 months ago #13236 by TeleSon
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?
More
IP: 192.168.0.71 8 years 9 months ago #13253 by nermeen
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.
Time to create page: 0.450 seconds
Powered by Kunena Forum