This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Make a PDF file editable in LibreOffice. | |
LibreOffice Draw can import and export PDF files, effectively making it a PDF editor. | |
However text in imported documents often looks broken, such as with | |
text rendered with a different font and overflowing into the next column. | |
What I suspect happens is that PDF files typically embed every font they use, | |
but LibreOffice’s internal document model does not support embedded fonts |