Utility objects

Docx2pdf

skelmis.docx.utility.document_to_pdf(docx_file: Path | str) None[source]

Create a PDF from a word document.

Consider calling the relevant API’s yourself if you need to add extra context to calls such as watermark arguments.

skelmis.docx.utility.export_libre_macro(macro_folder: Path = PosixPath('~/.config/libreoffice/4/user/basic/Standard')) None[source]

Automatically moves the LibreOffice macro file to macro_folder.

Warning, this overrides Module1.xba

Path is where your macros live

skelmis.docx.utility.update_toc(docx_file: Path | str) None[source]

Update a TOC within a word document.

If you are on linux, please call export_libre_macro first.