doc-convert

Convert PDFs, DOCX, and images to text, markdown, or searchable PDFs.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/spoonbobo/trinity --skill doc-convert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc-convert
Source: https://github.com/spoonbobo/trinity/tree/main/app/skills/doc-convert
Command: npx skills add https://github.com/spoonbobo/trinity --skill doc-convert

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the conversion and text extraction from various document formats, including PDFs, DOCX, and images, streamlining document processing workflows.

Core Features & Use Cases

  • Multi-format Conversion: Handles PDFs, DOCX, images (OCR), HTML, and more.
  • Text Extraction: Extracts plain text and structured data from documents.
  • Use Case: Convert a batch of scanned PDF invoices into a structured CSV file for easier analysis.

Quick Start

Use the doc-convert skill to extract text from the file named 'report.pdf'.

Frequently Asked Questions about doc-convert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from a scanned PDF using OCR?

To extract text from a scanned PDF using OCR, this Skill utilizes tesseract to recognize characters in document images and pdftotext to process digital PDFs. It converts inaccessible document images into searchable plain text or markdown formats.

Can I convert a DOCX file to markdown automatically?

Yes, you can convert a DOCX file to markdown automatically by utilizing the pandoc engine integrated within this Skill. It directly transforms Microsoft Word documents into structured markdown text for easier downstream processing.

Does this tool support converting PDFs and images into searchable PDFs?

Yes, this tool supports converting standard PDFs and image files into searchable PDFs by applying optical character recognition. It utilizes tesseract alongside Python libraries to embed extracted text layers over original document images.

What is the best way to extract text from multiple PDF invoices into a structured file?

The best way to extract text from multiple PDF invoices into a structured file is using this Skill's batch processing capability. It automates text extraction from various formats and outputs structured data ready for analysis.

Do I need to install pandoc and tesseract separately to convert document formats?

No, you do not need to manually install pandoc and tesseract separately to convert document formats. The Skill abstracts these dependencies internally, allowing you to directly perform text extraction and document conversion without manual environment setup.

What are the limitations of using pdftotext for text extraction?

A limitation of using pdftotext for text extraction is that it cannot process scanned image-based documents, requiring tesseract OCR instead. This Skill automatically handles such constraints by routing image-dependent PDFs to the appropriate OCR engine.