Fix Bulk DOC-to-PDF Conversion
Budget: $10 – $30 USD
I am running a PowerShell script that should travel through
C:\docker\paperless\consume\archivio OCR\Rat\1. RATAGGI\1. AMMINISTRAZIONE\A. STABILI\CASA ANGELICA\INQUILINI USCITI\D'Antino
and convert about 20 000 .doc / .docx files into PDF. The job dies on line 33 with
System.Management.Automation.ParameterBindingException
AmbiguousParameterSet at Split-Path
so the files never reach their PDF destination. Because this is purely a file-manipulation task, I’m happy with whatever language or toolchain gets the job done—PowerShell, Python, Bash, LibreOffice headless, Ghostscript, you name it—provided it can be launched on Windows and deal with long paths and accented characters.
What I need from you:
• A working script or small utility that reliably converts every DOC/DOCX in the tree to PDF, preserving the folder structure.
• Clear notes on any dependencies (Office, LibreOffice, Python libs, etc.) and how to install them.
• A quick read-me on how to run the job again in the future.
If you choose to repair the existing PowerShell, please pinpoint the Split-Path issue and tidy up any other gotchas. If you prefer to rewrite, just keep the conversion accurate and unattended—speed matters but 100 % completion matters more.
Once I can run a single command and watch the directory fill up with matching PDFs, the work is done.
C:\docker\paperless\consume\archivio OCR\Rat\1. RATAGGI\1. AMMINISTRAZIONE\A. STABILI\CASA ANGELICA\INQUILINI USCITI\D'Antino
and convert about 20 000 .doc / .docx files into PDF. The job dies on line 33 with
System.Management.Automation.ParameterBindingException
AmbiguousParameterSet at Split-Path
so the files never reach their PDF destination. Because this is purely a file-manipulation task, I’m happy with whatever language or toolchain gets the job done—PowerShell, Python, Bash, LibreOffice headless, Ghostscript, you name it—provided it can be launched on Windows and deal with long paths and accented characters.
What I need from you:
• A working script or small utility that reliably converts every DOC/DOCX in the tree to PDF, preserving the folder structure.
• Clear notes on any dependencies (Office, LibreOffice, Python libs, etc.) and how to install them.
• A quick read-me on how to run the job again in the future.
If you choose to repair the existing PowerShell, please pinpoint the Split-Path issue and tidy up any other gotchas. If you prefer to rewrite, just keep the conversion accurate and unattended—speed matters but 100 % completion matters more.
Once I can run a single command and watch the directory fill up with matching PDFs, the work is done.
Related categories:
Python
Software Architecture
Shell Script
C++ Programming
Scripting
LibreOffice
Automation
Bash