How to Convert File Doc to pdf

Hello everyone

My name is john and i am trying to convert doc to pdf, so how to convert File

You can have an eye on that library:
https://processing.org/reference/libraries/pdf/index.html