VS Code Extensions
DocxToPdf

DocxToPdf

by MichaelSam94

Convert DOCX files to PDF from VS Code

Downloads

28

Rating

— (0)

Version

0.0.1

Last updated

Apr 29, 2026

Convert DOCX files to PDF inside VS Code.

DocxToPdf banner

Features

  • Command: DOCX to PDF: Convert File
  • Right-click .docx in Explorer and convert directly from the context menu
  • Select a .docx file and generate a .pdf file
  • Optional auto-open of the generated PDF file
  • Configurable output folder and overwrite behavior

Requirements

  • LibreOffice installed (soffice or libreoffice available on PATH)

Extension Settings

  • docxtopdfext.outputFolder: Target folder for generated PDF files.
    • Empty: save next to source .docx
    • Relative: resolved from the first workspace folder
    • Absolute: used directly
  • docxtopdfext.overwriteExisting: Overwrite existing .pdf file if present.
  • docxtopdfext.openAfterConvert: Open generated PDF file after conversion.

Scripts

  • npm run compile: Compile TypeScript
  • npm run watch: Watch and compile on changes
  • npm run lint: Run ESLint
  • npm test: Run extension tests

Run locally

  1. Install dependencies: npm install
  2. Press F5 in VS Code to launch Extension Development Host
  3. Convert using either:
    • Explorer right-click on a .docx file -> DOCX to PDF: Convert File
    • Command Palette -> DOCX to PDF: Convert File

Publish

  1. Install VSCE globally: npm i -g @vscode/vsce
  2. Login once: vsce login michaelsam94
  3. Publish: vsce publish

Related extensions