Epub To Pdf avatar
Epub To Pdf
Under maintenance

Pricing

from $500.00 / 1,000 results

Go to Apify Store
Epub To Pdf

Epub To Pdf

Under maintenance

Simple actor that takes a public url to a epub file, and converts it to pdf format. Once the run finishes, go to the Storage tab, select Key-value store, and you will see the OUTPUT.pdf file ready for download.

Pricing

from $500.00 / 1,000 results

Rating

0.0

(0)

Developer

Eric

Eric

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Share

Use this simple tool to convert an epub file to a pdf file.

Retrieving the url to PDF

Console

The url for the converted output.pdf is available for download from the Console. The url is in key-value "Storage" tab and also available from the "Output" tab.

API endpoints

As per the documentation, the link to the "files" can be retrieved from GET Run API endpoints.

Here's an example request and response in the shell from hitting the GET Last Run endpoint:

Note: we're using xh for sending the HTTP requests

Request

xh https://api.apify.com/v2/acts/flamboyant_inn~epub-to-pdf/runs/last?token=<your_token>

Response

{
"data": {
...
"output": {
"files": "https://api.apify.com/v2/key-value-stores/<key_value_store_id>/keys"
}
}
}

We then need to query the url above to get the list of public urls for the items in the key value store:

Request

xh "https://api.apify.com/v2/key-value-stores/<key-value-store-id>/keys"

Response

{
"data": {
"items": [
{
"key": "INPUT",
"size": 65,
"recordPublicUrl": "https://api.apify.com/v2/key-value-stores/<key_value_store_id>/records/INPUT"
},
{
"key": "output.pdf",
"size": 626547,
"recordPublicUrl": "https://api.apify.com/v2/key-value-stores/<key_value_store_id>/records/output.pdf"
}
],
"count": 2,
"limit": 1000,
"exclusiveStartKey": null,
"isTruncated": false,
"nextExclusiveStartKey": null
}
}

The path ["data"]["items"][1]["recordPublicUrl"] will contain the url to the converted output.pdf.