PDF Generation
Generating PDFs by uploading HTML or using the HTML + JSON method is supported. To generate a PDF, send a request to /file/handle, including the PDF file as input and file processing parameters. Before you begin, make sure ComPDFKit Processor is started and running.
You will send a POST request to the endpoint /file/handle of the processor. For more information about multipart requests, please refer to the API section.
Convert using local PDF file
Send segmented requests to /file/handle and attach the PDF file:
shell
curl -f -X POST http://localhost:7000/file/handle \
-H "Content-Type: multipart/form-data" \
-F file=@"document.html" \
-F file=@"data.json" \
-F executeType="pdf/generate" \
> result.pdf