Hello,
PDF concatenation is a non-trivial operation. It is not possible to join multiple PDFs just by writing them sequentially to a single stream.
In your case, I would recommend that you create a separate PDF file for each HTML string and then concatenate them using a third party tool (for example
pdftk).