java - IText API convert HTML file to PDF - Formatting and Image rendering issues -
we have requirement convert html file pdf file. that, using itext api. if html has image in body, itext api fails put image in pdf , throws following exception. exceptionconverter: java.io.filenotfoundexception: d:\cid:870001313@01022011-2b8b (the system cannot find file specified). if html has image in body possible read image , make attachment pdf file? if html has tables generated pdf loses table format , puts data in pdf. need table in generated pdf in html. do have solutions or suggestions above 2 issues? if have other api apart itext fulfill our requirement, please suggest. a: itext html->pdf converter isn't good, thought looks getting attention in immediate future. b: i'm going guess there's script stuff going on there, souped itext never handle. check out wkhtmltopdf . uses web kit rendering (including javascript handling).