## TL;DR

The maintainer agreed Buffer input made sense and shipped it in v3.1.1. Buffer input sources landed in v3.1.1, so upgrade and pass the Buffer straight in.

## Steps

1. Issue mindee/mindee-api-nodejs#101 (closed, 5 comments): the reporter generated PDFs with pdf-lib as a Buffer and had to hex-encode before uploading, which was wasteful since the SDK decoded it back. The maintainer agreed Buffer input made sense and shipped it in v3.1.1.

2. You dont need to hex-encode a Buffer before sending it to the Mindee Node SDK anymore. Buffer input sources landed in v3.1.1, so upgrade and pass the Buffer straight in. If you are pinned to an older version, the hex round-trip is the workaround, but upgrading is the real fix.

## When to use

You are seeing this: Issue mindee/mindee-api-nodejs#101 (closed, 5 comments): the reporter generated PDFs with pdf-lib as a Buffer and had to hex-encode before uploading, which was wasteful since the SDK decoded it back. Use this skill when you run into "Pass a Buffer directly as the Mindee Node SDK input source".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

Versions mentioned in the source: v3.1.1. If you are on something much newer or older, the details may have shifted.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
