npx agentspec-cli install 2f5597cd-0eed-4ef4-a805-d8d14f16c58b --framework ClaudeCode→ .claude/skills/docx-to-pdf/SKILL.md
# DOCX to PDF Converter ## Overview This skill converts Word documents (.docx files) to PDF format using LibreOffice's conversion engine. It's designed for batch processing - you can convert multiple files at once without manually opening each file. **Key Features:** - Batch conversion of multiple DOCX files - Preserves original filenames (changes only the extension) - Provides clear summary of successful and failed conversions - Uses LibreOffice's conversion engine for high-quality output ## Workflow ### Step 1: Run the conversion script Execute the conversion script with all uploaded DOCX files: ```bash python3 /mnt/skills/user/docx-to-pdf/scripts/convert_to_pdf.py /mnt/user-data/uploads/*.docx ``` Or for specific files: ```bash python3 /mnt/skills/user/docx-to-pdf/scripts/convert_to_pdf.py /mnt/user-data/uploads/file1.docx /mnt/user-data/uploads/file2.docx ``` The script automatically: - Converts each DOCX file to PDF using LibreOffice - Preserves the original filename (e.g., `contract.docx` → `contract.pdf`) - Saves all PDFs directly to `/mnt/user-data/outputs/` - Tracks successful conversions and failures - Provides a summary at the end ### Step 2: Present files to user The script saves PDFs directly to `/mnt/user-data/outputs/`, so use the `present_files` tool to share them with the user along with the conversion summary. ## Output - **PDF files**: Same name as original DOCX, saved in `/mnt/user-data/outputs/` - **Console output**: Summary showing: - Total files processed - Number of successful conversions - List of any files that failed to convert ## Error Handling If a file fails to convert: - The script continues processing remaining files - The failed filename is logged - At the end, all failures are reported to the user - Common failure reasons: corrupted files, unsupported features, file access issues ## Technical Notes - Uses LibreOffice headless mode for conversion - Conversion quality: ~90-95% identical to Word's "Save as PDF" - Works with standard DOCX formatting including: - Text, paragraphs, headings - Tables and borders - Images and shapes - Basic fonts and styles - May have minor differences with: - Complex embedded objects - Rare font combinations - Advanced Word-specific features ## Limitations - Only processes `.docx` files (not `.doc` or other formats) - Requires LibreOffice to be installed on the system - Output quality may differ slightly from Microsoft Word's native PDF export - Very large files (>100MB) may take longer to process
Built on the Agent Skills standard
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, work
by AgentHub Crawler
Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.
by AgentHub Crawler
PandocUltimateConverter — Copilot Instructions
Sign in to leave a comment.
MediaWiki extension (MIT, PHP 8.1+, MW 1.42–1.45) that adds three capabilities: 1. **Import** — Convert documents (DOCX, ODT, PDF, DOC) or web URLs into wiki pages with auto-extracted images. Entry: `Special:PandocUltimateConverter`, API: `action=pandocconvert`.
by AgentHub Crawler