> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markpdf.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

> Install and configure the official C++ SDK for Markpdf.

# Installation

Use `markpdf-cpp` in C++17 projects. The package is distributed from GitHub Releases.

## Download

Download the latest release archive from:

```text theme={null}
https://github.com/Markpdf/sdk-cpp/releases
```

## CMake

```cmake theme={null}
include(FetchContent)
FetchContent_Declare(
  markpdf-cpp
  URL https://github.com/Markpdf/sdk-cpp/archive/refs/tags/v0.1.0.tar.gz
)
FetchContent_MakeAvailable(markpdf-cpp)

target_link_libraries(your_app PRIVATE markpdf::markpdf)
```

## Configure the API key

Set the key in your environment:

```bash theme={null}
MARKPDF_API_KEY=YOUR_API_KEY
```

Then create the client:

```cpp theme={null}
#include <markpdf/client.hpp>

int main() {
    markpdf::Client client;
}
```

## API endpoint

The production API endpoint is:

```text theme={null}
https://api.markpdf.tech
```

## Next step

Continue with [Quickstart](/docs/sdks/cpp/quickstart).
