# cloudPrint

**Api Version > 0.1.30**

#### Example 1

Send a blob object to the cloud print api

```javascript
    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

```javascript
        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.

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

See also client side api [cloudPrint](/brixxbox-documentation/client-api-reference/functions/cloudprint.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://brixxbox.gitbook.io/brixxbox-documentation/server-api-reference/functions/cloudprint.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
