Durchsuchen nach
Autor: Sven Krämer

Ich bin Jahrgang 1978, bin Deutscher und wohne im Ruhrgebiet, in Essen.Neben Linux bin ich als Introvertierter (ein ruhiger Mensch) auch gerne in Kleinstädten, in der Natur.Ich filme meine Fahrten, dokumentiere diese hier im Blog.Wenn Sie mich gerne unterstützen wollt, freue ich mich über eine Spende.Es ist mein Lebensunterhalt, denn ich habe meinen alten Job gekündigt und hier mein Herzensprojekt zu machen.
Python 3.13 How to check how many pages a PDF file has

Python 3.13 How to check how many pages a PDF file has

In order to do this, you need the Python module PyPDF2. You install it with pip3 install PyPDF2 Then it is important for this code here, you have the version PyPDF2 Version 3.0.1 If not then you have to update the module because the programmer of the tool has changed a command within the module In the foreign version the command PdfFileReader was the correct command but now in version 3.0.1 the command PdfReader is the correct one, otherwise this…

Weiterlesen Weiterlesen

Python 3.13 read information in photos

Python 3.13 read information in photos

In photos there information saved, that it is called exif. Of course you can click on every photo and read this information. A little bit easier it would be with a script in Python. You have to install the module: pillow. pip3 install pillow or to check it whether you already installed it pip3 list | grep pillow Here is the script: The output looks like this: ResolutionUnit:2ExifOffset:214Make:AppleModel:iPhone XRSoftware:15.5Orientation:1DateTime:2022:06:30 06:59:46YCbCrPositioning:1XResolution:72.0YResolution:72.0HostComputer:iPhone XR