Wednesday, March 22, 2023

DOC to PDF

Found an old drive. Had some docs. Who would upload these to Drive for online scanning? Had to install LibreOffice for the offline CLI solution from this page.

lowriter --convert-to pdf --outdir [output-directory] input-doc-or-docx-file

I left off the directory flag and it just put the PDF in the same directory the DOC file was in. Obviously a person can just open each document after the damage of installing the entire 700Mb LibreOffice suite for a f*cking CLI command, but that's even worse.

I will of course have zero use of use of LibreOffice proper, so this command line option is very expensive in terms of disk space, but so far only way I know to offline convert old DOC's.

No comments: