Using jsPDF from html in sandbox

I was able to use Carbone.io to create a PDF and download it. The “file” that I get from carbone is a JS object which I believe is fairly standard:

{   base64Binary: "JVBERi0xLjYK...", 
    fileName: "Whatever", 
    fileType: "pdf"
}

I have to pass this entire object to the utils.downloadFile() method:

restGetInvoicePDF.trigger({
    additionalScope: {
  	    renderId: data.data.renderId 
    },
    onSuccess: function(data) {
        utils.downloadFile(data, tblOrders.selectedRow.data.invoice_id,"pdf")
    }
})

Just passing the base64 did not work.

My problem is trying to print it directly from Retool. I would rather not save it and just print it. You seem to have away to get around the sandbox so I can open a page with just the PDF in the browser and can print it from there. But I have not dealt with customer components yet so I have some lernin’ to do.

If you would be willing to share your custom component that would be awesome!