• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

itext PDF problem with radio button

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
For my next trick, I'll need the help of a tiny ad ...
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic