How to convert DOC to PDF in offline in Swift ?

We are building our own Cocoapod file. We have to convert a local DOC file to PDF with any server interaction. It will be in offline mode.

Any suggestion will be appreciated.