Created
August 2, 2024 15:52
-
-
Save cfjedimaster/7335c338808129fd0a5f7372bb60bf8d 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
let response = await pdfServices.getJobResult({ pollingURL, resultType: CreatePDFResult }); | |
let streamAsset = await pdfServices.getContent({ asset: response.result.asset}); | |
streamAsset.readStream.pipe(fs.createWriteStream('./output.pdf')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment