Read about more features Using the API we can: Read from HTML, XML and Text files, process text and do basic formatting. Add images to a document. And more complex PDF forms that generate a PDF invoice, sales receipt etc. Generate multi-page PDF documents with embedded images and table of contents (TOC) links.