I need convert binary data of docx file to binary data of PDF file.
Can it's possible?
Yes it is possible.
Use the APIs that can handle binary data, like getBinaryData and setBinaryFieldValue.
I tried with API that you mention but I only succeed transfer a PDF file ( I mean to copy files) but I'm not success to switch format from docx to PDF.