Skip to content

Instantly share code, notes, and snippets.

@cfjedimaster
Created August 2, 2024 15:52
Show Gist options
  • Save cfjedimaster/de4ca011db6d1f7239c190f05dbde8c7 to your computer and use it in GitHub Desktop.
Save cfjedimaster/de4ca011db6d1f7239c190f05dbde8c7 to your computer and use it in GitHub Desktop.
const inputAsset = await pdfServices.upload({
readStream:fs.createReadStream('./input.docx'),
mimeType: MimeType.DOCX
});
console.log(`Source doc uploaded, asset ID is ${inputAsset.assetId}`);
let job = new CreatePDFJob({inputAsset});
let pollingURL = await pdfServices.submit({job});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment