• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

itext PDF problem with radio button

 
sohane harish
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am having problem with existing PDF along with radio buttons There are two pages in my PDF the first one is having fields only and the second page along with radio button, which i can check and uncheck before updating.but when i update the fields of PDF from itext, i am unable to check and uncheck the radio button, same is happening with fields also.

From itext, i am updating the first page of PDF only i am not touching the second one and there are some common fields in first page and the second page if i update the first page fields then the same is updated on the second page.

I am able to modify my first page PDF after updating from itext.

i know it's complicated what i have written if you dont understand please let me know will try to explore more.

Thanks in advance
 
sohane harish
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All ,

i found the root cause for the above problem....

please help me out...

when i write the code like :

pdfReader = new PdfReader(baos.toByteArray());
writer.addPage(writer.getImportedPage(pdfReader, 2));
writer.addPage(writer.getImportedPage(pdfReader, 1));



i can check/uncheck the radio buttons which is in page number 2 and now the page 1 is read only,but when i write

pdfReader = new PdfReader(baos.toByteArray());
writer.addPage(writer.getImportedPage(pdfReader, 1));
writer.addPage(writer.getImportedPage(pdfReader, 2));


Now on the page 1 read/write but page 2 i can not.

Any suggestions would be appreciated...

thanks in advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic