První nahrdánícd

This commit is contained in:
2025-03-16 07:53:00 +01:00
commit 8712668ad4
23 changed files with 735 additions and 0 deletions

8
PDF3.py Normal file
View File

@@ -0,0 +1,8 @@
from pdf2image import convert_from_path
# Convert a PDF to images
images = convert_from_path(r"u:\Dropbox\!!!Days\Downloads Z230\Dokumentace\a.pdf")
# Save the images
for i, image in enumerate(images):
image.save(f"page_{i + 1}.jpg", "JPEG")