Rob Hunter wrote:Can I generate a PDF from an existing HTML file or pretty much create a PDF from scratch using iText?
Both, plus quite a bit more.
iText's HTML->PDF conversion isn't great (CSS support is a bit spotty, but it's been getting some attention lately), but is quite functional. OTOH, the original goal of iText was to generate documents (in HTML, PDF, or
RTF). It has since evolved into a more general PDF library (create, manipulate, encrypt, sign, fold, spindle, mutilate), but it is still very much a
PDF generator.