I would like to export form fields from a PDF and write them into predetermined gaps in a text file or similar.
So I am supposed to aggregate tons of numbers from ~100 PDF forms I prepared in Acrobat Pro DC earlier and display them in tables in a Wordpress website. However, as I have to use the VisualComposer I need the table code to be quite specific, so I was wondering...as opposed to pressing CTRL+C/V a billion times:
can I somehow extract the form fields of a PDF (named "date1", "Amount1", "Amount2", "Amount3"...) and write them in a specific manner into a txt file? Such as:
[cq_vc_datatable_item data1="date1" data2="Amount1" data3="Amount2" data4="Amount3" data5="Amount4" data6="Amount5" data7="Amount6"]
[cq_vc_datatable_item data1="date2" data2="Amount7" data3="Amount8" data4="Amount9" data5="Amount10" data6="Amount11" data7="Amount12"]
where the "dateX" and "AmountX" are the actual numbers/inputs, of course?
I have no clue about JS unfortunately, but I guess I could hack my way from a script that pretty much does already extracts fields and writes them into "variables/placeholders" that match the field names in the PDF...
Would appreciate any help, but also any "not possible w/o getting deep into JS"-replies! ![]()
Many thanks!
