Win a copy of Hello World this week in the Python forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Bear Bibeault
  • Liutauras Vilda
  • Devaka Cooray
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

itext PDF problem with radio button

 
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
 
This will take every ounce of my mental strength! All for a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!