Created
August 2, 2024 15:52
-
-
Save cfjedimaster/de4ca011db6d1f7239c190f05dbde8c7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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