# Download the document PDF (https://docs-ecmrhub-v2.lucaspiera.com/docs/api/documents/getDocumentPdf)

## GET /functions/v1/artifacts/{documentId}

Download the document PDF

Presentation PDF of the current issued version, with its SHA-256.

```json
{
  "operationId": "getDocumentPdf",
  "parameters": [
    {
      "in": "path",
      "name": "documentId",
      "schema": {
        "type": "string",
        "format": "uuid"
      },
      "required": true
    }
  ],
  "responses": {
    "200": {
      "description": "The stored presentation PDF. X-Artifact-Sha256 carries its SHA-256; compare it with the bytes before showing them.",
      "headers": {
        "X-Artifact-Sha256": {
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/pdf": {
          "schema": {
            "type": "string",
            "format": "binary"
          }
        }
      }
    },
    "default": {
      "$ref": "#/components/responses/Problem"
    }
  }
}
```

Schemas referenced as `#/components/...` are in the full contract: https://docs-ecmrhub-v2.lucaspiera.com/openapi.json