https://api.apyhub.com/convert/html-file/pdf-file
POST
multipart/form-data
Attribute | Type | Mandatory | Description |
---|---|---|---|
landscape | Boolean | No | Indicates whether the input html file should be converted in a landscape mode (default is false ). |
output | String | No | The name of the PDF file for the converted document. If the output attribute is not provided, the default file name will be output.pdf . |
Attribute | Type | Mandatory | Description |
---|---|---|---|
file | File | Yes | Provide the Word document in html format that will be used as input. |
Status Code | Description |
---|---|
200 | The request was successful. |
401 | Required authentication information is either missing or not valid for the resource. |
400 | Invalid input - the files are empty or the files are corrupt. |
500 | If any unexpected error occurs while processing the request. |
tokens
or basic authentication
mechanisms.
You can generate and view your existing credentials from your workspace settings (on the left side of the navbar) and go to “API Keys".apy-token
as the header parameter to pass the token.Authorization
header to send the basic authentication credentials.