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

# Convert a PDF to an image

> Internal helper used by various Mind flows (e.g. document previews, intent input). Accepts a PDF file
reference (storage path or base64 payload) and returns the rendered page(s) as image(s).




## OpenAPI

````yaml https://dev.enneo.dev/api/mind/docs/open-api post /internal/helpers/convertPdfToImage
openapi: 3.0.0
info:
  version: '1'
  title: enneo.MIND API
  description: This describes the API of enneo Mind, the main ticketing backend
  contact:
    name: enneo GmbH
    email: richard@enneo.ai
  license:
    name: Proprietary software
    url: https://enneo.ai
servers:
  - url: https://demo.enneo.ai/api/mind
    description: Production server, demo client
  - url: https://main.enneo.dev/api/mind
    description: Development main branch
  - url: http://localhost:8005/api/mind
    description: Local development server
security:
  - bearerAuth:
      - api
  - cookieAuth:
      - api
paths:
  /internal/helpers/convertPdfToImage:
    post:
      tags:
        - Internal (Enneo only)
      summary: Convert a PDF to an image
      description: >
        Internal helper used by various Mind flows (e.g. document previews,
        intent input). Accepts a PDF file

        reference (storage path or base64 payload) and returns the rendered
        page(s) as image(s).
      operationId: convertPdfToImage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: PDF source and rendering options.
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid PDF input
        '403':
          description: Unauthorized
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT-based authentication
      x-scopes:
        api: Full access to the API
    cookieAuth:
      type: apiKey
      in: cookie
      name: connect.sid
      description: Cookie-based authentication
      x-scopes:
        api: Full access to the API

````