Convert Octet Stream To Pdf

Автор:

Note: there is no possibility to pass HTML-to-PDF convert parameters in the command line. The application takes parameters from pd4browser. Home > Blog > Using PHP to Convert files to PDF (and other formats) with the Muhimbi PDF Converter.

Request: POST /convert/doc/to/pdf?secret=XXXX HTTP/1.1 Host: v2.convertapi.com Cache-Control: no-cache Content-Type: multipart/form-data; boundary=----7MA4YWxkTrZu0gW ------7MA4YWxkTrZu0gW Content-Disposition: form-data; name='StoreFile' true ------7MA4YWxkTrZu0gW Content-Disposition: form-data; name='File'; filename='my_file.doc' Content-Type: --FILE DATA-- ------7MA4YWxkTrZu0gW Content-Disposition: form-data; name='DocumentTitle' Test title ------7MA4YWxkTrZu0gW-- application/octet-stream Most bandwidth efficient way to convert file is to pass file content as a request body. Also this content type could be used for stream processing. Request header must contain field: Content-Disposition: attachment; filename='my_file.doc' with the file name and correct file extension. Conversion parameters can be set throw URL query.

Convert Octet Stream To Pdf

Query parameters Using query parameters it is possible to convert file which is accessible by URL or uploaded File ID. Grafik uborki tualetov obrazec. DOCX to PDF URL example. Request: GET/POST If there is an array type parameter, index must be appended to parameter name e.g. Files[0], Files[1], Files[2] etc. Conversion response content types and schemes Response headers and body contains this information: • ConversionTime - time in seconds that took to convert file.

In this amount of seconds your balance will be decreased after conversion. Didakticheskie igri po obucheniyu gramote. • FileName - name of converted file. • FileSize - converted file size in bytes.

• FileData - converted file content. • FileUrl - link to converted file if 'StoreFile' parameter is set to 'true'. Application/json Response scheme can be explored in response box.

Single file result example. Response: --43cf1475-ab15-4c6b-b5ee-e2cbcedfe92f ConversionTime: 3 Content-Type: application/octet-stream Content-Disposition: attachment; filename='my_file.pdf'; size=8475 --FILE CONTENT-- --43cf1475-ab15-4c6b-b5ee-e2cbcedfe92f-- application/octet-stream Response body is result file content. File name can be found in content-disposition header field. Can be used with converters that produce only one file result. HTTP Response Codes 200 Conversion completed successfully. 401 Internal codes provided in response body: • 4010 - Invalid user credentials - bad secret. • 4011 - Invalid user credentials - bad token.

• 4012 - Invalid user credentials - bad self generated token. • 4013 - User credentials not set, secret or token must be passed. • 4014 - User inactive. 404 Internal codes provided in response body: • 4040 - Parameter validation error.

• 4041 - No content disposition provided. 500 Internal codes provided in response body: • 5000 - Conversion timeout. • 5001 - Conversion failed. • 5002 - PDF file is damaged.

• 5003 - File is password protected. • 5004 - No tables to extract in PDF file. • 5005 - Invalid URL format. • 5006 - Invalid password.

• 5007 - Unable to download remote file. • 5008 - Unable to access file from local storage. • 5009 - File id is invalid. • 50010 - File link is set incorrectly.

Url or File Id must be set. • 50011 - Can't delete. 502 Internal codes provided in response body: • 5020 - Worker maximum parallel jobs reached.