Using the convertPDFFormToPDFDocument sample code
var pdfform = application.readFile('c:/temp/1040a-form.pdf');
//var field_values = application.readFile('c:/temp/1040a-data.fdf');//read adobe fdf values or
var field_values = new Array()//construct field values
field_values[0] = 'f1-1=John C.J.'
field_values[1] = 'f1-2=Longlasting'
var result_pdf_doc = plugins.pdf_output.convertPDFFormToPDFDocument(pdfform, field_values)
if (result_pdf_doc != null)
{
application.writeFile('c:/temp/1040a-flatten.pdf', result_pdf_doc)
}
how can I assign field name/ field value pairs using actual field names instead of static text? When I try to do this:
field_values[0] = value_name +'='+ field_value
it never works.