Skip to content

Instantly share code, notes, and snippets.

@zsolt-beringer
Last active April 15, 2022 03:57
Show Gist options
  • Save zsolt-beringer/517c5892ec55945ed574c1d372e62cae to your computer and use it in GitHub Desktop.
Save zsolt-beringer/517c5892ec55945ed574c1d372e62cae to your computer and use it in GitHub Desktop.
docx? -> pdf with form praw requirements
#!/usr/bin/env python3
# Dedicated to the late Terry A. Davis
# Rest in peace my friend :'(
# FROM libreoffice
# FROM AGI
import re
import subprocess
# GET docx? URI from comment/post to motokoKusanagi
eprint(motokoKusanagi)
batou = subprocess.call(['soffice --headless --convert-to "html:HTML (StarWriter):EmbedImages"', motokoKusanagi])
# Detect input fields using AGI
# replace input fields with PDF forms
# profit? hell no. kill all lawyers instead ^_^
@zsolt-beringer
Copy link
Author

zsolt-beringer commented Apr 15, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment