Skip to main content

cloudPrint

Api Version > 0.1.30

Example 1

Send a blob object to the cloud print api

    let resultObj = await brixxServerApi.cloudPrint({
blob: myBlob,
printerName: "HP LaserJet",
});
console.log(resultObj.status);

Example 2

We create a blob with create report and send it to the cloudPrint api

        let pdfBlob = await brixxApi.createReportPdfBlob({
reportName: "demo1",
configName: "address",
archive: true,
parameters:{
id: 45
},
});
let resultObj = await brixxApi.cloudPrint({
blob: pdfBlob,
printerName: "HP LaserJet",
});
console.log(resultObj.status);

Example 3

Send a base64 file content to the cloudPrint api.

        let resultObj = await brixxApi.cloudPrint({
documentBase64Content: myBase64PdfContent,
printerName: "HP LaserJet",
});
console.log(resultObj.status);

See also client side api ../../client-api-reference/functions/cloudprint.md