Skip to content
This repository was archived by the owner on May 25, 2026. It is now read-only.
This repository was archived by the owner on May 25, 2026. It is now read-only.

feat: Add PDF document support #39

Closed

Description

Summary

Add support for sending PDF documents to models that support document analysis.

Current State

Model modalities include pdf but actual PDF handling is not implemented.

Proposed Implementation

1. PDF input handling

// File path
{ type: 'file', path: '/path/to/document.pdf', mimeType: 'application/pdf' }

// Base64 encoded
{ type: 'file', data: 'base64...', mimeType: 'application/pdf' }

// URL
{ type: 'file', url: 'https://example.com/doc.pdf' }

2. Models with PDF support

  • Claude models (native PDF support)
  • Gemini models (document understanding)

3. Fallback for non-PDF models

  • Extract text from PDF using a library
  • Send as text content instead

Technical Notes

  • May need to add pdf-parse or similar dependency
  • Consider file size limits
  • Handle multi-page documents

Priority: Low

Activity

  1. chindris-mihai-alexandru commented on Feb 15, 2026

    @chindris-mihai-alexandru
    OwnerAuthor

    Consolidated into #48 to keep roadmap tracking in one place.

  2. chindris-mihai-alexandru commented on Feb 15, 2026

    @chindris-mihai-alexandru
    OwnerAuthor

    Reopening to track this item as a standalone issue while also keeping #48 as the roadmap index.

  3. chindris-mihai-alexandru commented on Mar 13, 2026

    @chindris-mihai-alexandru
    OwnerAuthor

    Implemented: PDF/document input support via puter_path file parts + puter-chat file_path arg and docs. See commit fbb2428.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestroadmapTracked in roadmap/meta issuesstatus:backlogPlanned but not in progress

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions