codeshell/fpdm

field not found for duplicated fields only

DrReacto opened this issue · 0 comments

Writing values to fpdm with array from the test script works great for fields if field only occurs once. My form has duplicated fields so that they will copy from one page to another. They are named Address#0 Address#1 Address#2
The hashtag and number are added by Acrobat, not me and are only on duplicated fields. I get field Address not found error when I try to run the merge script. (runs fine if I don't use duplicated fields)
I try using Address, Address#0, Address#0 and numerous iterations.
Is this even possible? Any advice please?
pdftk shows the above field name as Address

require_once './fpdm.php';
$fields = array ('Address' => '999 Brook Drive S', 'City' => 'Zooland' );
$pdf = new FPDM('../testOp2.pdf');
$pdf->Load($fields,false ); // second parameter: false if field values are in ISO-8859-1, true if UTF-8
$pdf->Merge();
$pdf->Output(F,'/home1/rect/bin/fpdf182/newFile.pdf');
?>