> For the complete documentation index, see [llms.txt](https://sandbox-docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sandbox-docs.verifone.com/s-adk-5.1-programmers-guide/readme/modules/group__sdiprinter.md).

# Printer interface

[Functions](#func-members)

|           |                                                                                                                                                                                                                                                     |
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Functions |                                                                                                                                                                                                                                                     |
| int       | [printSetPropertyString](#ga07602dcd5d2f313db6a92c97cf8081a5) (int property, const std::string \&in)                                                                                                                                                |
| int       | [printSetPropertyInt](#ga725f0fdf4822cac026c00aac86d49ce1) (int property, int in)                                                                                                                                                                   |
| int       | [printGetPropertyString](#gab608770d63d6067562dcaa6c823c0015) (int property, std::string \&out)                                                                                                                                                     |
| int       | [printGetPropertyInt](#ga92d545bf0f6984fe616d3b14f2ad5c82) (int property, int \&out)                                                                                                                                                                |
| int       | [printHTML](#gaa8aec9712a3bd4364fe03f3dff2afa67) (const std::string \&html, bool landscape=false)                                                                                                                                                   |
| int       | [printBitmap](#gaacfff92e849c75e30ca3598694998a9b) (int width, int height, const void \*bitmap, unsigned size)                                                                                                                                      |
| int       | [printBitmap](#ga434d14185df2e148a6e5a1bc3b809471) (int width, int height, const [bytevector](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classvfisdi_1_1_s_d_i_client.md#a64b5be62be31dcda165d2c6c3c262fb5) \&bitmap) |

### DetailedDescription <a href="#detailed-description" id="detailed-description"></a>

### FunctionDocumentation <a href="#function-documentation" id="function-documentation"></a>

### printBitmap()\[1/2] <a href="#ga434d14185df2e148a6e5a1bc3b809471" id="ga434d14185df2e148a6e5a1bc3b809471"></a>

int printBitmap

inline

print bitmap

**Parameters**

\[in] **width** width of bitmap \[in] **height** height of bitmap \[in] **bitmap** bitmap data, set bits represent black pixels, ordering left to right is MSB to LSB.

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### printBitmap()\[2/2] <a href="#gaacfff92e849c75e30ca3598694998a9b" id="gaacfff92e849c75e30ca3598694998a9b"></a>

int printBitmap

print bitmap

**Parameters**

\[in] **width** width of bitmap \[in] **height** height of bitmap \[in] **bitmap** bitmap data, set bits represent black pixels, ordering left to right is MSB to LSB. \[in] **size** size of bitmap in bytes

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### printGetPropertyInt() <a href="#ga92d545bf0f6984fe616d3b14f2ad5c82" id="ga92d545bf0f6984fe616d3b14f2ad5c82"></a>

int printGetPropertyInt

read int property (25-01)

**Parameters**

\[in] **property** property ID (PrtPropertyInt) \[out] **out** read property

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### printGetPropertyString() <a href="#gab608770d63d6067562dcaa6c823c0015" id="gab608770d63d6067562dcaa6c823c0015"></a>

int printGetPropertyString

read string property (25-01)

**Parameters**

\[in] **property** property ID (PrtPropertyString) \[out] **out** read property

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### printHTML() <a href="#gaa8aec9712a3bd4364fe03f3dff2afa67" id="gaa8aec9712a3bd4364fe03f3dff2afa67"></a>

int printHTML

print HTML document

**Parameters**

\[in] **html** HTML document \[in] **landscape** if true print in landscape

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### printSetPropertyInt() <a href="#ga725f0fdf4822cac026c00aac86d49ce1" id="ga725f0fdf4822cac026c00aac86d49ce1"></a>

int printSetPropertyInt

set int property (25-00)

**Parameters**

\[in] **property** property ID (PrtPropertyInt) \[in] **in** new property value

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))

### printSetPropertyString() <a href="#ga07602dcd5d2f313db6a92c97cf8081a5" id="ga07602dcd5d2f313db6a92c97cf8081a5"></a>

int printSetPropertyString

set string property (25-00)

**Parameters**

\[in] **property** property ID (PrtPropertyString) \[in] **in** new property value

#### Returns

SDI error code ([Result](/s-adk-5.1-programmers-guide/readme/namespaces/namespacevfisdi.md#a28287671eaf7406afd604bd055ba4066))


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://sandbox-docs.verifone.com/s-adk-5.1-programmers-guide/readme/modules/group__sdiprinter.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
