I am using HTMLWorker.ParseToList() to parse the elements from a html string. But it is deprecated. What is the replacement of that function? I found that the XMLWorker is the replacement of HTMLWorker, but it doesn't contain any ParseToList() function.
UPD: Use case: I want to make a pdf from a Html file and also want to add a header and a footer using html files.
pdfHTML 4.0.2 allows you to make a PDF from an HTML file and add headers and footers easily in a completely declarative style (so only using HTML+CSS combination without necessity to write a lot of boilerplate code).
And you can even add page numbers to your output PDF, all with pure CSS instructions that are processed by pdfHTML.
Here is an example of an HTML file:
Visual output result:
And that is achieved by a single line call: