The WebKit & PDFkit frameworks are now used for the conversion and each chapter is processed on its own.