On this page
Guides
Office conversion
To convert an Office file to PDF, send a request to /file/handle
including the Office file as input and file processing parameters. Before getting started, make sure the ComPDFKit Processor is started and running.
You will send a POST request to the endpoint /file/handle
of the processor. For more information on multipart requests, please refer to the API section.
Use local Office files for conversion
Send a segmented request to /file/handle
and append an Office file:
shell
curl -f -X POST http://localhost:7000/file/handle \
-H "Content-Type: multipart/form-data" \
-F file=@"document.docx" \
-F executeType="docx/pdf" \
-F password="file open password" \
> result.pdf