Hello,
I have previously worked on Doc-to-PDF conversion logic that wrote PDF without using any 3rd party libraries. I also have experience with using MuPDF as an engine. I would be happy to help you with this task. Please let me know if you are interested.
Many Thanks,
Sergei