npm install @accusoft/document-processing-helper --save
const Helper = require('@accusoft/document-processing-helper');
async function main() {
const documentProcessingHelper = new Helper({
prizmDocServerBaseUrl: 'https://api.accusoft.com',
apiKey: 'YOUR_API_KEY'
});
// Initialize a conversion
const output = await documentProcessingHelper.convert({
input: 'input.jpg',
outputFormat: 'pdf'
});
// Download the output and save the file
await output[0].saveToFile('output.pdf');
}
main();
Not using Node.js? View our official documentation to use our advanced features with other languages.