pdf - PDFBOX : java.lang.NumberFormatException: -


when i'm trying execute below code throws me below error

java.lang.numberformatexception: input string: "8#40" @ java.lang.numberformatexception.forinputstring(unknown source) 

code :

import org.apache.pdfbox.pdmodel.pddocument; import org.apache.pdfbox.pdmodel.interactive.form.pdacroform; import org.apache.pdfbox.pdmodel.interactive.form.pdfield;  public class pdfperform {     public static void main(string[] args)     {         try{             string sourcepath = "c:\\users\\347702\\desktop\\fw4.pdf";             string destinationpath = "d:\\pdf_forms\\filled_fw4.pdf";              pddocument document;             document = pddocument.load(sourcepath);             pdacroform form = document.getdocumentcatalog().getacroform();               pdfield field_1= form.getfield("f1_09(0)");             field_1.getvalue();             system.out.println(field_1.getvalue());             field_1.setvalue("asdsd");             system.out.println(field_1.getfieldtype());         }         catch(exception e)         {              e.printstacktrace();         }     } }  

can 1 me out root cause of above mentioned issue .. mentioned field f1_09(0) of type text when set value throws me above error

thanks

its working once updated pdfbox.1.7.1 version pdfbox1.8.1.jar


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -