Guides for Conversion
ComPDFKit Processor for Linux supports the input and processing of various file formats, including PDF, TXT, PNG, HTML, RTF, CSV, and Microsoft Office files (Word, Excel, and PowerPoint). It can output files in formats such as PDF, PNG, JPEG, TXT, CSV, HTML, RTF, and Microsoft Office (Word, Excel, and PowerPoint).
PDF Conversion
To convert PDF files to Office or other formats, send a request to /file/handle
, including the input PDF file and file processing parameters. Before you start, make sure that ComPDFKit Processor for Linux is started and running.
You will send a POST request to the processor endpoint file/handle
. For more information about multipart requests, please see API Reference.
Converting Local PDF Files
Send a multipart request to /file/handle
and attach the PDF file:
curl -f -X POST http://localhost:7000/file/handle \
-H "Content-Type: multipart/form-data" \
-F file=@"document.pdf" \
-F executeType="pdf/docx" \
-F password="file open password" \
-F parameter="{ \"contentOptions\": \"2\", \"worksheetOptions\": \"1\"}" \
> result.docx