Fix content size of dls in the modern template when pdf-izing