I know there is already some information online but I don't get it.
My case: I'm having a PDF of 10 pages, all page contains the same form. When I'm using my code, only the first page is filled out and the others are still blank. If I checked the field names in Adobe Livecycle, they are all the same of the different pages.
What should I do in my case to fill all the pages and not only the fist one?
My code:
//Pagecount == 10
//I was trying to loop through the pages, no success
for(int i=1; i<=pageCount; i++){
form.setField("RecallID", wdContext.currentGetRecallDetailsResponseOutputElement().getRecallid());
form.setField("Afdeling", afdeling);
String type = wdContext.currentGetRecallDetailsResponseOutputElement().getType();
if(type.equals("D"))form.setField("Type", "DESTRUCTION");
else if(type.equals("B"))form.setField("Type", "BLOCK");
form.setField("Description", wdContext.currentGetRecallDetailsResponseOutputElement().getDescription());
form.setField("CreationDate",sdf.format(wdContext.currentGetRecallDetailsResponseOutputElement().getCreationdate()));
form.setField("Enddate", sdf.format(wdContext.currentGetRecallDetailsResponseOutputElement().getEnddate()));
form.setField("Acties", wdContext.currentGetRecallDetailsResponseOutputElement().getAction_Nl());
form.setField("Actions", wdContext.currentGetRecallDetailsResponseOutputElement().getAction_Fr());
form.setField("Probleem", wdContext.currentGetRecallDetailsResponseOutputElement().getProblem_Nl());
form.setField("Probleme", wdContext.currentGetRecallDetailsResponseOutputElement().getProblem_Fr());
}
stamper.setFormFlattening(true);
stamper.close();