Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

field not found for duplicated fields only #37

Open
DrReacto opened this issue Aug 28, 2020 · 0 comments
Open

field not found for duplicated fields only #37

DrReacto opened this issue Aug 28, 2020 · 0 comments

Comments

@DrReacto
Copy link

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');
?>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant