Turn the div adapters into injectable files so that each PdfContainer can be customized. And the adapters can be used in different PdfContainers as well.
Rather than having all the JS all in one big file, separate the code into modules.