"""Document parsing: modality detection and text/layout acquisition."""