Text replace in a MS Word file | Save a MS Word file to pdf

I am new to iOS (Swift UI) and macOS development and need your help.

Two questions I have. I am grateful for any tips!
  • How can I replace a text in a Microsoft Word file (docx)?

  • Then how can I save this text replaced Microsoft Word file in a PDF format?

Thank you very much.
Have a nice weekend to all of you.

Cheers,
Sven
docx files have a complex internal structure. It is nearly impossible to do this.

But you can get it as text, modify and then save a pdf.
https://stackoverflow.com/questions/38751495/create-a-word-document-swift

Once you're done, don't forget to close your thread by marking the correct answer.
Is there really no library for text replacement in DOCX-Files and conversion to PDF?
I ask because there are solutions for Microsoft Xamarin!
Microsoft has full control over Xamarin and docx… Here we are on Apple's planet.

No, I don't think there is.
Not only from Microsoft itself but also from Syncfusion with docio. So I still hope that someone still knows a library for Swift. Let's wait for the next few days.
Text replace in a MS Word file | Save a MS Word file to pdf
 
 
Q