notebook vb

This commit is contained in:
2026-03-14 07:45:53 +01:00
parent d6cb2b4490
commit a599b6741b
38 changed files with 15 additions and 17 deletions

8
Trash/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")