If you have a DRM restricted file in your Android device, use this script to capture the screen and convert that into a PDF in your desktop!
Usage:
python3 screencapture.py 5
The argument is passed as the number of pages in the file.
- Must have a valid adb connection.
- Python3
- Img2PDF (pip3 install img2pdf)