# Long Contracts to Markdown for LLM Token Planning

**Use case:** 

Official 84-page UK model contract to Markdown for chunking and token measurement. Not legal advice. Source: GOV.UK, Open Government Licence v3.0.

## Input

```json
{
  "sources": [
    "https://assets.publishing.service.gov.uk/media/6953ae6897f1c5e3c92a8322/MHCLG__Model_Services_Contract_Terms_and_Conditions.pdf"
  ],
  "maxPages": 100,
  "integrationSource": "apify-store"
}
```

## Output

```json
{
  "url": {
    "label": "Source",
    "format": "link"
  },
  "integrationSource": {
    "label": "Attribution route"
  },
  "pages": {
    "label": "Pages"
  },
  "char_count": {
    "label": "Characters"
  },
  "markdown": {
    "label": "Markdown"
  },
  "error": {
    "label": "Error"
  }
}
```

## About this Actor

This example demonstrates how to use [PDF to Markdown for RAG & LLMs — Tables](https://apify.com/vivid_astronaut/pdf-to-markdown-for-rag) with a specific input configuration. Visit the [Actor detail page](https://apify.com/vivid_astronaut/pdf-to-markdown-for-rag) to learn more, explore other use cases, and run it yourself.