We are using Libre Office
PDF Converter API
This API allows to convert files from one type to another based on Libre Office, e.g. Word file to PDF file.
Supported conversions are:
- html -> doc, html -> pdf, htm -> doc, htm -> pdf
- docx -> pdf, doc -> pdf
Libre Office default version 5.4.0.3.
The source format
to convert from is recognized by the extension of the incoming file.
The target format
to convert to is given by the request parameter format
.
In order to use the API, you should have an API access key. You can create an account on the platform
for free and subscribe to the API also for free. The number of requests per day is limited so if you
need more requests, you can order a payed subscription. Further details about available payment plans
are available in your account on the dashboard page.
The authentication
to the API endpoint is done by sending a HTTP request header with
your access key, e.g.:
X-API-ACCESSKEY:4e89e04addac26a92341f8a03ebe7c98f019d5ca
URL
POST /api/v1/converter/convert
|
encoding type: multipart/form-data
|
parameters
name |
type |
mandatory |
description |
format |
URI request parameter |
yes |
defines the target format to convert to
|
file |
POST parameter |
yes |
defines the source file used to convert from, the format is mapped to the file extension
|
example
$ curl -F file=@test.doc \
-H 'X-API-ACCESSKEY:5bc8b7effefe157dbee7f6f3645dd401488c0552' \
https://apiwebservices.io/api/v1/pdf/convert?format=pdf > output.pdf
|