Skip to main content

Overview

What it does

PDF.co provides 18 powerful tools for PDF processing, conversion, and automation. Extract text and data from PDFs, merge and split documents, add watermarks and passwords, convert HTML and images to PDF, generate and read barcodes, and perform OCR on scanned documents. All processing happens through a simple cloud API with credit-based pricing.

Use Cases

Document Workflows: Automate contract processing, invoice extraction, and report generation. Content Management: Convert web pages to PDFs, merge documents, and compress files. Security: Add password protection and watermarks. Data Extraction: OCR scanned documents, read barcodes, and extract structured data. Creative: Generate QR codes, add annotations, and batch process images.

Quick Start

1

Get your API key

  1. Visit PDF.co Dashboard
  2. Sign up for a free account (no credit card required)
  3. Copy your API key from the dashboard
Free tier includes:
  • 300 credits per month
  • Most operations cost 1-3 credits
  • Perfect for testing and light usage
2

Add to NimbleBrain Studio

  1. Open NimbleBrain Studio
  2. Navigate to MCP Servers in the sidebar
  3. Find PDF.co in the Document Processing category
  4. Click Enable
  5. Paste your API key when prompted
  6. Click Save
The server will connect automatically and show “Active” status.
3

Test your connection

Try this in Studio’s chat interface:
"Extract text from this PDF: https://example.com/sample.pdf"
You should see the 🔧 tool indicator appear, followed by the extracted text content. If successful, you’re ready to use all 18 PDF.co tools!

Available Tools

PDF.co provides 18 tools organized into 6 categories for comprehensive document processing.

PDF Conversion Tools

Extract text content from PDF documents with optional page range selection.Parameters:
ParameterTypeRequiredDefaultDescription
urlstringYes-URL or base64 encoded PDF
pagesstringNoAll pagesPage range (e.g., “1-3” or “1,3,5”)
async_modebooleanNofalseProcess asynchronously for large files
Returns:
{
  "error": false,
  "url": "https://pdf.co/output.txt",
  "text": "Extracted text content...",
  "pageCount": 5,
  "message": null
}
Credit Cost: 1 credit per requestExample Usage:
"Extract text from pages 1-10 of this PDF: https://example.com/report.pdf"
Extract structured data from PDFs in JSON format, preserving document structure.Parameters:
ParameterTypeRequiredDefaultDescription
urlstringYes-URL or base64 encoded PDF
pagesstringNoAll pagesPage range to process
Returns:
{
  "error": false,
  "url": "https://pdf.co/output.json",
  "data": {
    "pages": [...],
    "text": "...",
    "structure": {...}
  },
  "pageCount": 5,
  "message": null
}
Credit Cost: 1 credit per requestExample Usage:
"Convert this PDF to structured JSON: https://example.com/invoice.pdf"
Convert PDF documents to HTML format with optional simple mode.Parameters:
ParameterTypeRequiredDefaultDescription
urlstringYes-URL or base64 encoded PDF
pagesstringNoAll pagesPage range to convert
simplebooleanNofalseUse simple HTML mode (plain text)
Returns:
{
  "error": false,
  "url": "https://pdf.co/output.html",
  "html": "<html>...</html>",
  "pageCount": 5,
  "message": null
}
Credit Cost: 1 credit per requestExample Usage:
"Convert this PDF to HTML with simple formatting: https://example.com/document.pdf"
Extract tables from PDF documents to CSV format for spreadsheet analysis.Parameters:
ParameterTypeRequiredDefaultDescription
urlstringYes-URL or base64 encoded PDF
pagesstringNoAll pagesPage range containing tables
Returns:
{
  "error": false,
  "url": "https://pdf.co/output.csv",
  "csv": "col1,col2,col3\nval1,val2,val3",
  "pageCount": 3,
  "message": null
}
Credit Cost: 1 credit per requestExample Usage:
"Extract the table from page 2 of this PDF to CSV: https://example.com/report.pdf"

PDF Manipulation Tools

Combine multiple PDF documents into a single unified PDF file.Parameters:
ParameterTypeRequiredDefaultDescription
urlsarray[string]Yes-List of PDF URLs or base64 encoded PDFs
namestringNo”merged.pdf”Output filename
async_modebooleanNofalseProcess asynchronously for large files
Returns:
{
  "error": false,
  "url": "https://pdf.co/merged.pdf",
  "pageCount": 15,
  "message": null
}
Credit Cost: 1 credit per request (regardless of number of PDFs)Example Usage:
"Merge these three PDFs into one: https://example.com/doc1.pdf, https://example.com/doc2.pdf, https://example.com/doc3.pdf"
Split PDF documents into separate pages or extract specific page ranges.Parameters:
ParameterTypeRequiredDefaultDescription
urlstringYes-URL or base64 encoded PDF
pagesstringNoAll pagesPage ranges to extract (e.g., “1-3,5-7”)
split_by_pagesbooleanNofalseSplit into individual pages
Returns:
{
  "error": false,
  "urls": [
    "https://pdf.co/page1.pdf",
    "https://pdf.co/page2.pdf"
  ],
  "pageCount": 2,
  "message": null
}
Credit Cost: 1 credit per requestExample Usage:
"Split this PDF into individual pages: https://example.com/document.pdf"
Rotate pages in a PDF document by 90, 180, or 270 degrees.Parameters:
ParameterTypeRequiredDefaultDescription
urlstringYes-URL or base64 encoded PDF
angleintegerYes-Rotation angle (90, 180, 270, or -90)
pagesstringNoAll pagesPage range to rotate
Returns:
{
  "error": false,
  "url": "https://pdf.co/rotated.pdf",
  "message": null
}
Credit Cost: 1 credit per requestExample Usage:
"Rotate pages 1-5 by 90 degrees in this PDF: https://example.com/document.pdf"
Reduce PDF file size with configurable compression levels.Parameters:
ParameterTypeRequiredDefaultDescription
urlstringYes-URL or base64 encoded PDF
compression_levelstringNo”balanced”Compression level: “low”, “balanced”, “high”, “extreme”
Returns:
{
  "error": false,
  "url": "https://pdf.co/compressed.pdf",
  "originalSize": 5242880,
  "compressedSize": 1048576,
  "compressionRatio": 80.0,
  "message": null
}
Credit Cost: 1 credit per requestExample Usage:
"Compress this PDF with high compression: https://example.com/large-file.pdf"
Add text watermarks or annotations to PDF pages with customizable styling.Parameters:
ParameterTypeRequiredDefaultDescription
urlstringYes-URL or base64 encoded PDF
textstringYes-Watermark text
xintegerNo100X position in points
yintegerNo100Y position in points
font_sizeintegerNo24Font size in points
colorstringNo”FF0000”Hex color without # (e.g., “FF0000” for red)
opacityfloatNo0.5Opacity from 0.0 to 1.0
pagesstringNo”0-”Page range (e.g., “0-” for all pages)
namestringNo”watermarked.pdf”Output filename
Returns:
{
  "error": false,
  "url": "https://pdf.co/watermarked.pdf",
  "message": null
}
Credit Cost: 1 credit per requestExample Usage:
"Add 'CONFIDENTIAL' watermark in red with 30% opacity to all pages of this PDF: https://example.com/document.pdf"

PDF Security Tools

Add password protection to PDF documents with configurable permissions.Parameters:
ParameterTypeRequiredDefaultDescription
urlstringYes-URL or base64 encoded PDF
owner_passwordstringYes-Owner password for full access
user_passwordstringNonullUser password for restricted access
allow_printbooleanNotrueAllow printing
allow_copybooleanNofalseAllow copying text
Returns:
{
  "error": false,
  "url": "https://pdf.co/protected.pdf",
  "message": null
}
Credit Cost: 1 credit per requestExample Usage:
"Add password protection to this PDF with owner password 'admin123' and prevent copying: https://example.com/document.pdf"
Security Best Practice: Never hardcode passwords in conversations. Use this tool through programmatic workflows where passwords are stored securely.
Remove password protection from PDF documents (requires correct password).Parameters:
ParameterTypeRequiredDefaultDescription
urlstringYes-URL or base64 encoded PDF
passwordstringYes-PDF password to unlock
Returns:
{
  "error": false,
  "url": "https://pdf.co/unlocked.pdf",
  "message": null
}
Credit Cost: 1 credit per requestExample Usage:
"Remove password protection from this PDF using password 'secret123': https://example.com/protected.pdf"

PDF Information

Get comprehensive metadata about a PDF document including pages, dimensions, encryption status, and file properties.Parameters:
ParameterTypeRequiredDefaultDescription
urlstringYes-URL or base64 encoded PDF
Returns:
{
  "error": false,
  "info": {
    "PageCount": 10,
    "PageRectangle": {
      "Width": 612.0,
      "Height": 792.0
    },
    "Encrypted": false,
    "Title": "Sample Document",
    "Author": "John Doe",
    "Subject": "Report",
    "FileSize": 1024576
  },
  "message": null
}
Credit Cost: 1 credit per requestExample Usage:
"Get metadata for this PDF: https://example.com/document.pdf"

Document Creation Tools

Convert HTML content or URLs to PDF with customizable page settings.Parameters:
ParameterTypeRequiredDefaultDescription
htmlstringYes-HTML content or URL
namestringNo”document.pdf”Output filename
marginsstringNonullMargins in format “top,right,bottom,left” (e.g., “10mm,10mm,10mm,10mm”)
orientationstringNo”Portrait”Page orientation: “Portrait” or “Landscape”
page_sizestringNo”Letter”Page size: “Letter”, “A4”, “Legal”, etc.
Returns:
{
  "error": false,
  "url": "https://pdf.co/document.pdf",
  "pageCount": 3,
  "message": null
}
Credit Cost: 1 credit per requestExample Usage:
"Convert this HTML to PDF with A4 page size: <h1>Report</h1><p>Content here...</p>"
Convert web pages to PDF documents with automatic rendering.Parameters:
ParameterTypeRequiredDefaultDescription
urlstringYes-Web page URL
namestringNo”webpage.pdf”Output filename
orientationstringNo”Portrait”Page orientation: “Portrait” or “Landscape”
page_sizestringNo”Letter”Page size: “Letter”, “A4”, “Legal”, etc.
Returns:
{
  "error": false,
  "url": "https://pdf.co/webpage.pdf",
  "pageCount": 5,
  "message": null
}
Credit Cost: 1 credit per requestExample Usage:
"Convert this webpage to PDF: https://example.com/article"
Convert one or multiple images to a PDF document.Parameters:
ParameterTypeRequiredDefaultDescription
imagesarray[string]Yes-List of image URLs or base64 encoded images
namestringNo”images.pdf”Output filename
Returns:
{
  "error": false,
  "url": "https://pdf.co/images.pdf",
  "pageCount": 3,
  "message": null
}
Credit Cost: 1 credit per requestExample Usage:
"Convert these images to PDF: https://example.com/img1.jpg, https://example.com/img2.jpg"

Barcode Tools

Generate QR codes and various barcode formats as PNG, JPG, or SVG images.Parameters:
ParameterTypeRequiredDefaultDescription
valuestringYes-Barcode value/text to encode
barcode_typestringNo”QRCode”Type: “QRCode”, “Code128”, “Code39”, “EAN13”, “EAN8”, “UPCA”, “UPCE”
formatstringNo”png”Output format: “png”, “jpg”, “svg”
Returns:
{
  "error": false,
  "url": "https://pdf.co/barcode.png",
  "message": null
}
Credit Cost: 1 credit per requestExample Usage:
"Generate a QR code for this URL: https://example.com"
Read and decode barcodes from images with support for multiple barcode types.Parameters:
ParameterTypeRequiredDefaultDescription
urlstringYes-Image URL or base64 encoded image
barcode_typesarray[string]NoAll common typesList of barcode types to detect
Returns:
{
  "error": false,
  "barcodes": [
    {
      "type": "QRCode",
      "value": "https://example.com",
      "confidence": 0.99,
      "x": 100,
      "y": 150,
      "width": 200,
      "height": 200
    }
  ],
  "message": null
}
Credit Cost: 1 credit per requestExample Usage:
"Read barcodes from this image: https://example.com/barcode.jpg"

OCR Tools

Perform OCR (Optical Character Recognition) on scanned PDFs to make them searchable.Parameters:
ParameterTypeRequiredDefaultDescription
urlstringYes-URL or base64 encoded PDF
pagesstringNoAll pagesPage range to OCR
langstringNo”eng”Language code: “eng”, “spa”, “fra”, “deu”, “chi”, etc.
Returns:
{
  "error": false,
  "url": "https://pdf.co/ocr.pdf",
  "text": "Extracted text from scanned document...",
  "pageCount": 10,
  "message": null
}
Credit Cost: 3 credits per request (OCR is more resource-intensive)Example Usage:
"OCR this scanned document in English: https://example.com/scanned.pdf"

Authentication & Configuration

API Key Setup

PDF.co requires an API key for all operations. The service uses a credit-based system where operations consume credits from your monthly quota.
1

Create Account

Visit PDF.co Dashboard and sign up:
  • No credit card required for free tier
  • Email verification needed
  • Instant API key generation
2

Get API Key

After signup:
  1. Log in to PDF.co Dashboard
  2. Your API key is displayed prominently on the dashboard
  3. Click “Copy” to copy your key
  4. Keep it secure - treat it like a password
3

Add to Studio

Configure in NimbleBrain Studio:
  1. Navigate to MCP ServersPDF.co
  2. Click Enable
  3. Paste your API key in the configuration field
  4. Click Save
The server will automatically validate your key and show “Active” status.

Credit-Based Pricing

PDF.co operates on a credit system where each operation consumes credits. Most operations cost 1 credit, with OCR costing 3 credits.
  • Free Tier
  • Starter ($9/month)
  • Professional ($49/month)
  • Business ($199/month)
  • Enterprise (Custom)
300 Credits/Month - Perfect for testing and light usageWhat’s Included:
  • 300 operations/month (most tools)
  • 100 OCR operations/month
  • 10 requests per minute
  • 50MB maximum file size
  • All 18 tools available
  • 24-hour file storage
Best For:
  • Testing the service
  • Personal projects
  • Light document processing
  • Prototyping workflows
Limitations:
  • Cannot be used for production at scale
  • Rate limited to 10 req/min
  • Files auto-deleted after 24 hours

Credit Consumption

Understanding credit usage helps you plan your monthly budget:
Tool CategoryOperationCredit CostFree Tier Usage
Conversionpdf_to_text1 credit300 operations
Conversionpdf_to_json1 credit300 operations
Conversionpdf_to_html1 credit300 operations
Conversionpdf_to_csv1 credit300 operations
Manipulationpdf_merge1 credit300 operations
Manipulationpdf_split1 credit300 operations
Manipulationpdf_rotate1 credit300 operations
Manipulationpdf_compress1 credit300 operations
Manipulationpdf_add_watermark1 credit300 operations
Securitypdf_protect1 credit300 operations
Securitypdf_unlock1 credit300 operations
Informationpdf_info1 credit300 operations
Creationhtml_to_pdf1 credit300 operations
Creationurl_to_pdf1 credit300 operations
Creationimage_to_pdf1 credit300 operations
Barcodesbarcode_generate1 credit300 operations
Barcodesbarcode_read1 credit300 operations
OCRocr_pdf3 credits100 operations
Cost Optimization: OCR operations cost 3x more than other tools. For scanned documents, consider if you need full OCR or if pdf_to_text (for native PDFs) would suffice.

Rate Limits

API rate limits vary by plan tier:
PlanRequests/MinuteBurst LimitFile SizeFile Retention
Free102050 MB24 hours
Starter3060100 MB7 days
Professional60120200 MB30 days
Business120240500 MB90 days
EnterpriseCustomCustomCustomCustom
Rate Limit Handling: If you exceed your rate limit, requests will return HTTP 429 errors. Studio will automatically retry with exponential backoff.

Security Best Practices

Protect Your API Key:
  • Never commit API keys to version control
  • Don’t share keys in chat logs or screenshots
  • Rotate keys regularly (every 90 days)
  • Use separate keys for development and production
  • Monitor usage for unauthorized activity
In Studio: API keys are encrypted and stored securely in your local configuration.
File Handling:
  • All files are transmitted over HTTPS
  • Files are automatically deleted after retention period
  • No files are used for training or analytics
  • GDPR compliant data processing
  • SOC 2 Type II certified
Recommendation: For sensitive documents, use the shortest retention period for your tier.
When Using PDF Security Tools:
  • Never hardcode passwords in Studio conversations
  • Use strong, unique passwords for protected PDFs
  • Store passwords in secure password managers
  • Implement password rotation for long-term protected files
  • Consider using owner/user password combinations

Example Workflows

Real-world scenarios showing how to use PDF.co tools in NimbleBrain Studio.
  • Invoice Processing
  • Contract Generation
  • Document Archival
  • Receipt Scanning
  • Report Distribution
  • QR Code Campaign
  • Form Extraction
  • Document Redaction
  • Multi-Language OCR
  • Presentation Archival
  • Barcode Inventory
Business Value: Automate invoice data extraction from PDF invoicesScenario: Extract structured data from vendor invoices for accountingSteps:
  1. Extract text: “Extract text from this invoice PDF: [invoice-url]”
  2. Parse data: “Extract the invoice number, date, total amount, and vendor name from this text”
  3. Validate: “Check if all required fields are present”
Tools Used: pdf_to_text, pdf_to_jsonCredit Cost: 2 credits per invoiceTime Saved: 5 minutes manual work → 30 seconds automatedExample Prompt:
"Extract invoice data from this PDF and tell me the invoice number, date, total, and vendor: https://example.com/invoice-2025-001.pdf"

Troubleshooting

Symptom: Error message “Unauthorized” or “Invalid API key”Solutions:
  1. Verify you copied the complete API key from the dashboard
  2. Check for extra spaces before/after the key
  3. Log in to PDF.co Dashboard and confirm the key
  4. Generate a new API key if needed
  5. In Studio, disable and re-enable PDF.co with the new key
Common Causes:
  • Partial key copied
  • Key regenerated but not updated in Studio
  • Account suspended for non-payment
Symptom: Error message “Insufficient credits” or “Monthly quota exceeded”Solutions:
  1. Check your current credit balance at PDF.co Dashboard
  2. Wait for monthly reset (1st of each month)
  3. Upgrade to a higher tier plan
  4. Purchase additional credit packs
Prevention:
  • Monitor usage dashboard regularly
  • Set up usage alerts in your account
  • Implement credit budgeting in workflows
  • Consider upgrading before hitting limits
Symptom: Error message “Too many requests” or HTTP 429 errorsSolutions:
  1. Reduce request frequency
  2. Implement delays between operations (1-2 seconds)
  3. Studio will automatically retry with backoff
  4. Upgrade plan for higher rate limits
Rate Limits by Tier:
  • Free: 10 requests/minute
  • Starter: 30 requests/minute
  • Professional: 60 requests/minute
  • Business: 120 requests/minute
Symptom: Error message “File size exceeds limit”Solutions:
  1. Compress PDF before uploading
  2. Split large PDF into smaller chunks
  3. Reduce image quality for image-to-PDF conversions
  4. Upgrade plan for larger file limits
File Size Limits:
  • Free: 50 MB
  • Starter: 100 MB
  • Professional: 200 MB
  • Business: 500 MB
  • Enterprise: Custom
Symptom: Extracted text is garbled or incorrectSolutions:
  1. Ensure scanned document has sufficient resolution (300 DPI minimum)
  2. Specify correct language code (lang parameter)
  3. Pre-process images to improve contrast
  4. Rotate images to correct orientation before OCR
  5. Try scanning again with better lighting
Best Practices:
  • Use 300 DPI or higher resolution
  • Ensure good lighting and contrast
  • Avoid shadows and glare
  • Straighten skewed documents
  • Specify language for better accuracy
Symptom: Operation times out or returns incomplete resultsSolutions:
  1. Use async_mode: true for large files
  2. Split operations into smaller chunks
  3. Reduce page count (use page range parameters)
  4. Check file URL accessibility (must be publicly accessible)
  5. Try again during off-peak hours
When to Use Async Mode:
  • PDFs with 50+ pages
  • Large merge operations (5+ files)
  • OCR operations on multi-page documents
  • Files larger than 10 MB
Symptom: Watermark added but not visible in PDFSolutions:
  1. Adjust opacity (try 0.3-0.7 range)
  2. Change watermark color for better contrast
  3. Increase font size
  4. Adjust x/y position coordinates
  5. Verify page range includes desired pages
Position Guidelines:
  • Most PDFs use 612x792 points (Letter size)
  • Center position: x=306, y=396
  • Try different positions to find optimal placement
  • Use lighter colors (higher opacity) for visibility
Symptom: PDF merge operation fails or produces corrupted outputSolutions:
  1. Verify all PDF URLs are accessible
  2. Check that all files are valid PDFs
  3. Try merging fewer files at once (batch in groups of 5)
  4. Unlock password-protected PDFs before merging
  5. Use async_mode for large merge operations
Common Issues:
  • One or more source PDFs corrupted
  • Protected/encrypted PDFs in the list
  • Network issues downloading source files
  • Total merged size exceeds file limit
Symptom: Studio doesn’t use PDF.co tools when expectedSolutions:
  1. Be more explicit: mention “PDF.co” or specific tool names
  2. Verify server shows “Active” status in Studio
  3. Check API key is correctly configured
  4. Provide file URLs directly (don’t ask Studio to find them)
  5. Use clear action verbs: “extract”, “convert”, “merge”, etc.
Example Good Prompts:
  • ✅ “Extract text from this PDF: [url]”
  • ✅ “Merge these two PDFs: [url1], [url2]”
  • ✅ “Generate a QR code for: [url]”
Example Ambiguous Prompts:
  • ❌ “What’s in this document?” (might not trigger pdf_to_text)
  • ❌ “Can you help with a PDF?” (no action specified)

Getting Started

Tool-Specific Documentation

Support

Learning Resources

How PDF.co Compares:Advantages:
  • ✅ Simple credit-based pricing (no per-page fees)
  • ✅ Comprehensive API (18 tools in one service)
  • ✅ FastMCP integration for Studio
  • ✅ Generous free tier (300 credits/month)
  • ✅ No watermarks on free tier
  • ✅ 24-hour file retention (not immediate deletion)
Alternatives:
  • Adobe PDF Services: More expensive, enterprise-focused
  • iLovePDF: Limited API, consumer-focused
  • Smallpdf: No free API tier
  • PyPDF2/pdfplumber: Self-hosted but limited features
Best For: Teams wanting all-in-one PDF processing without managing multiple services.
Maximize Your Free Tier:1. Batch Operations (1 credit for multiple items):
  • Use pdf_merge for multiple PDFs (1 credit total)
  • Use image_to_pdf for multiple images (1 credit total)
  • Use barcode_read on images with multiple codes (1 credit total)
2. Avoid OCR When Possible (3 credits):
  • Try pdf_to_text first (native PDFs don’t need OCR)
  • Use ocr_pdf only for scanned/image-based PDFs
  • Specify page ranges to OCR only needed pages
3. Compress Smart:
  • Use compression before other operations
  • Balance quality vs file size (start with “balanced”)
  • Compress before merging to save processing time
4. Use Page Ranges:
  • Extract only needed pages: pages="1-5"
  • Skip blank pages to reduce processing
  • Test on single pages before full document
How Tools Are Organized:Conversion Tools (Extract Data):
  • Input: Existing PDF
  • Output: Text, JSON, HTML, CSV
  • Use when: You need to read/analyze PDF content
Manipulation Tools (Modify PDFs):
  • Input: Existing PDF(s)
  • Output: Modified PDF
  • Use when: You need to change PDF structure
Security Tools (Protect Content):
  • Input: Existing PDF
  • Output: Protected/unlocked PDF
  • Use when: You need access control
Creation Tools (Generate PDFs):
  • Input: HTML, URL, or images
  • Output: New PDF
  • Use when: You need to create PDFs from scratch
Barcode Tools (QR & Barcodes):
  • Input: Text (generate) or Image (read)
  • Output: Barcode image or decoded data
  • Use when: Product tracking, marketing, inventory
OCR Tools (Text Recognition):
  • Input: Scanned PDF or images
  • Output: Searchable PDF + text
  • Use when: Paper documents need digitization
How to Provide Files to PDF.co:Option 1: Public URLs (Recommended):
  • File must be publicly accessible
  • No authentication required
  • HTTPS preferred (HTTP works)
  • Examples: S3 public URLs, Dropbox public links, web hosting
Option 2: Base64 Encoding:
  • For files you can’t make public
  • Encode file as base64 string
  • Include data URI prefix: data:application/pdf;base64,
  • More complex but works for private files
Studio Limitation:
  • Studio cannot directly upload files from your computer
  • Must provide URL or base64-encoded string
  • For local files: upload to cloud storage first, then use URL
Best Practice:
  • Use cloud storage (S3, Dropbox, Google Drive)
  • Generate temporary public URLs (expiring links)
  • Remove files after processing to maintain privacy
When to Use Async Mode:Synchronous (Default):
  • Studio waits for immediate response
  • Best for: Fast operations, small files, single pages
  • Timeout: 60 seconds
  • Most operations complete instantly
Asynchronous (async_mode: true):
  • PDF.co processes in background
  • Returns job ID, you poll for completion
  • Best for: Large files, many pages, OCR, large merges
  • No timeout limit
When to Enable Async:
  • PDFs with 50+ pages
  • Files larger than 25 MB
  • Merging 10+ documents
  • OCR on multi-page documents
  • Operations taking longer than 30 seconds
Studio Handling:
  • Studio automatically handles async operations
  • You’ll see “Processing…” status
  • Results appear when ready
  • No manual polling needed
Common PDF.co Error Codes:401 Unauthorized:
  • Invalid or missing API key
  • Solution: Check API key in Studio configuration
402 Payment Required:
  • Credits exhausted
  • Solution: Wait for monthly reset or upgrade plan
429 Too Many Requests:
  • Rate limit exceeded
  • Solution: Slow down requests or upgrade plan
400 Bad Request:
  • Invalid parameters (wrong URL, bad page range)
  • Solution: Check tool documentation for correct format
413 Payload Too Large:
  • File exceeds size limit
  • Solution: Compress file or upgrade plan
500 Internal Server Error:
  • PDF.co service issue
  • Solution: Check Status Page, retry later
503 Service Unavailable:
  • Temporary outage
  • Solution: Wait 5 minutes and retry
Studio will show user-friendly error messages for all these codes.
Production Deployment Guidelines:1. API Key Management:
  • Use separate keys for dev/staging/production
  • Rotate keys quarterly
  • Never log or expose keys
  • Monitor usage for anomalies
2. Error Handling:
  • Implement retry logic with exponential backoff
  • Handle rate limits gracefully (queue requests)
  • Validate file URLs before API calls
  • Log errors for debugging (exclude sensitive data)
3. Cost Control:
  • Monitor credit usage daily
  • Set up alerts at 80% quota
  • Implement usage caps per user/workflow
  • Review credit consumption monthly
4. Performance:
  • Use async mode for large operations
  • Cache results when appropriate
  • Compress files before processing
  • Use page ranges to process only needed content
5. Security:
  • Delete files immediately after processing
  • Use shortest retention period for your tier
  • Encrypt sensitive PDFs with pdf_protect
  • Validate file types before processing
6. Reliability:
  • Have fallback for service outages
  • Test with sample files regularly
  • Monitor PDF.co status page
  • Keep Studio MCP connection active

Ready to Process Documents? Enable PDF.co in NimbleBrain Studio and start with the free tier. Most operations cost just 1 credit, and you get 300 credits per month to explore all 18 tools!