LibreOffice for DOC/DOCX to PDF conversion

how does the agent edit the docx files then? or does it convert all docx to pdf, parse the PDF into context, make edits and then save it back to docx?

laywers live in docx not pdf