How to convert a Keynote file into a PDF in Node.JS

Can’t get your Keynote presentation into a PDF file? Don’t worry, we can help. We understand how frustrating converting Mac presentations onto a PC. That is why we have created a solution just for this problem. It just takes two easy steps of installing and calling the function.

Install the NPM client.

npm install cloudmersive-convert-api-client --save

Then, you will need to call the function:

var CloudmersiveConvertApiClient = require('cloudmersive-convert-api-client');var defaultClient = CloudmersiveConvertApiClient.ApiClient.instance;// Configure API key authorization: Apikeyvar Apikey = defaultClient.authentications['Apikey'];Apikey.apiKey = 'YOUR API KEY';// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)//Apikey.apiKeyPrefix = 'Token';var apiInstance = new CloudmersiveConvertApiClient.ConvertDocumentApi();var inputFile = "/path/to/file"; // File | Input file to perform the operation on.var callback = function(error, data, response) {if (error) {console.error(error);} else {console.log('API called successfully. Returned data: ' + data);}};apiInstance.convertDocumentKeynoteToPdf(inputFile, callback);

All done! Now you should be ready to present with ease. If you are looking for more help or tips for your projects, we might just have the tools for that too. Check out our other articles and we hope that they can help.

Image for post
Image for post

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store