DOC-2961 improve pdf output