PDF < LLM > PDF - has anyone figured it out?

Hello! I’m looking for technologies/libraries/APIs that unlock processing PDF documents with LLM prompts and regenerating them in PDF or docx. Any ideas?

Thank you!