Python PyPDF2 - Compress a PDF file

preview_player
Показать описание
Python script that will compress an existing PDF file.

#coding #tutorial #pythonforbeginners #development #programming #python #learning #learntocode #code #pythonprogramming #pdf #pythontutorial #python3 #education
Рекомендации по теме
Комментарии
Автор

It decompressed and added + 2kb. I am posting this message because it is only 2 months old and it is useless. I wish I could attach a screenshot! Thanks for wasting my time. I hope this message is useful to someone else.
Edit - There is a better way in windows (VS code command line) - "pip install ghostscript", in command line - "ps2pdf xxx.pdf xxxOut.pdf". Without inverted commas and replace xxx with your file name in the same folder.

ajayjoseph
visit shbcf.ru