PDF to Markdown
Convert PDF documents to Markdown format.
Endpoint
POST https://www.acrewity.com/api/services/execute
Authentication
Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
n8n Integration
This service is also available via our n8n community node: @acrewity/n8n-nodes-acrewity
Operations
Convert PDF to Markdown
Convert PDF file to Markdown with table detection
Operation ID: convert
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file |
file | Yes | - | PDF file to convert (Base64 encoded, with or without data URI prefix) |
Example Request
Convert PDF to Markdown:
{
"service": "pdf-to-markdown",
"operation": "convert",
"parameters": {
"file": "data:application/pdf;base64,JVBERi0xLjQKMSAwIG9iago8PAovVHlwZSAv..."
}
}
Convert Using Raw Base64:
{
"service": "pdf-to-markdown",
"operation": "convert",
"parameters": {
"file": "JVBERi0xLjQKMSAwIG9iago8PAovVHlwZSAv..."
}
}
Example Response (convert)
{
"success": true,
"result": {
"data": {
"markdown": "# Annual Report 2024\n\n## Executive Summary\n\nThis report covers the fiscal year ending December 2024...\n\n## Financial Highlights\n\n| Quarter | Revenue | Growth |\n|---------|---------|--------|\n| Q1 | $2.5M | +15% |\n| Q2 | $2.8M | +12% |",
"pageCount": 24,
"metadata": {
"title": "Annual Report 2024",
"author": "Company Inc.",
"creationDate": "2024-12-15T10:30:00.000Z"
}
}
},
"credits_used": 1
}
Get PDF Metadata
Extract metadata from a PDF without full conversion
Operation ID: metadata
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file |
file | Yes | - | PDF file to read metadata from (Base64 encoded) |
Example Request
Extract Metadata:
{
"service": "pdf-to-markdown",
"operation": "metadata",
"parameters": {
"file": "data:application/pdf;base64,JVBERi0xLjQKMSAwIG9iago8PAovVHlwZSAv..."
}
}
Example Response (metadata)
{
"success": true,
"result": {
"data": {
"title": "Annual Report 2024",
"author": "Company Inc.",
"subject": "Financial Summary",
"keywords": "finance, annual, report",
"creator": "Microsoft Word",
"producer": "PDF Library",
"creationDate": "2024-12-15T10:30:00.000Z",
"modificationDate": "2024-12-20T14:45:00.000Z",
"pageCount": 24
}
},
"credits_used": 1
}
More Examples
See Document Processing Examples for complete workflow examples including content extraction, documentation conversion, and knowledge base building.