Skip to content

Add support for translating PDF files #51

@zwj2004

Description

@zwj2004

Currently, the translation server supports .txt and .epub formats. Please add functionality to allow users to upload and translate PDF files as well. This feature would enhance usability for those who work with PDF documents and expand the application's supported formats.

Key requirements:

  • Accept PDF uploads via the web interface and API
  • Integrate PDF parsing and text extraction (e.g., using PyPDF2 or pdfplumber)
  • Ensure extracted text is sent for translation in chunks, similar to existing formats
  • Save translated output as a PDF or .txt for download
  • Update documentation to reflect PDF support

This enhancement would be valuable for users with books, articles, or other documents in PDF format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions