Sending DjVu for conversion

To convert DjVu file to a PDF document, send a POST request to the https://api.aspose.cloud/v5.0/ocr/djvu2pdf Aspose.OCR Cloud REST API endpoint. To authorize the request, pass the access token in Authorization header (Bearer authentication).

The DjVu file is provided as a value of image property in JSON request body. The file contents must be Base64 encoded.

{
  "image": "DjVu file as Base64 string",
}

Return value

If successful, this method returns a string with a unique identifier (GUID) of the conversion request in the queue.

Otherwise, it returns a HTTP status code corresponding to the error.

What’s next

Conversion will take a few seconds, depending on the size of the image and the current Aspose.Cloud load. See the article Fetching PDF converted from DjVu for information on how to get a PDF document from the server.

cURL example