File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes itext PDF problem with radio button    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "itext PDF problem with radio button    " Watch "itext PDF problem with radio button    " New topic
Author

itext PDF problem with radio button

sohane harish
Greenhorn

Joined: Jul 21, 2008
Posts: 7
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

Joined: Jul 21, 2008
Posts: 7
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: itext PDF problem with radio button
 
Similar Threads
Radio button array length = 0
PDF Problem !!!
struts 2 validation problem
SHOW h:message giving problem
How to populate a value in text box