'This is primarily used for debugging and 3rd party tools to
get the plm markup that comprises the text in the file.'

def dump_pml(self):

    pml = ''
    for i in range(1, (self.header_record.num_text_pages + 1)):
        pml += self.get_text_page(i)
    return pml
