Skip to content

Instantly share code, notes, and snippets.

View Simouche's full-sized avatar
🧑‍💻

Chaguetmi Wassim Simouche

🧑‍💻
View GitHub Profile
@Simouche
Simouche / docx2pdf.py
Created July 5, 2023 19:01 — forked from MichalZalecki/docx2pdf.py
Converting DOCX to PDF using Python
import sys
import subprocess
import re
def convert_to(folder, source, timeout=None):
args = [libreoffice_exec(), '--headless', '--convert-to', 'pdf', '--outdir', folder, source]
process = subprocess.run(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=timeout)
filename = re.search('-> (.*?) using filter', process.stdout.decode())
@Simouche
Simouche / README-Template.md
Created July 19, 2020 09:17 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites