Populating pdf form using flask API
Hey Everyone,
I have data in a flask API that I want users to load into their custom pdf forms. My problem is finding documentation on how to approach this.
My idea is that I have the user run javascript from the pdf (hit a button); have them enter a # in an app.alert window and then use the entered # for a HTTP GET request to flask which will then show the data.
Which is where my problems start on how to best set this up, I've found the following code on the forums here which I hoped to utilize.
var url:String = "wwvv. URL GOES HERE/Script?number=007";
var importer:URLLoader = new URLLoader(new URLRequest(url));
importer.addEventListener(Event.COMPLETE, onFileLoaded);
function onFileLoaded(e:Event):void
{
var importer:URLLoader = e.target as URLImporter;
var importedVersionText:String = importer.data;
dataImported_txt.text=loadedVersionText;
}- What is the best (data-)format to hand fielddata to a form.
Any and all tips (including comments on the above script) on what to read/what way to approach this would be more than welcome.
Thank you in advance for any trouble to be taken.
