In dompdf I want to generate a single pdf-file, containing multiple documents, which may or may not have the same classes and elements in their HTML-base, but different css.
Simply concatenating all html-templates together and then rendering it won't be an option, because the documents have different headers and footers and the styles would overwrite each other.
Is there any better (faster, less resource consuming) way to this than generating every document at once, then store it to the file system and at the end combine them using tcpdf and fpdi?