I am trying to create a PDF using xhtml2pdf lib, but there is always a memory usage issue. There are around 4,000 pages in this HTML. Continue reading...