- Open PDF files
- Zoom in and out with precission
- Rotate 90, 180, or 270 degrees, clockwise or anti-clockwise
- Invert the colours, black text, white background to white text and black background
- Cycle through the available colors: black, red, green, blue, white, yellow, cyan, magenta.
- Cross-platform compatibility
- Python 3.8+
- pip
- virtualenv (recommended)
- Create a virtual environment:
python3 -m venv .venv
source .venv/bin/activate- Install dependencies:
pip install -r requirements.txt- Run the application:
python main.py- Click "Open PDF" to select a PDF file
- Use "Zoom In" and "Zoom Out" buttons to adjust view
- Scroll through the document using the scrollbars
- PyQt5: GUI Framework
- PyMuPDF: PDF Rendering
- Numpy: Image Processing
App needs to be a pdf viewer for viewing cutting patterns which are projected onto fabrics. App should be cross-platform and ideally in python.
System: Linux Mint 21.2 Author: John Watkinson
- Read a calibration pdf file and set the zoom level.
- Read a pattern file and display the pattern.
- Adjust the colours, zoom and rotation and use full screen.
Keyboard Shortcuts CTRL + F for full screen mode Ctrl + + for zoom in Ctrl + - for zoom out Ctrl + R for rotate 90 degrees clockwise Ctrl + Shift + R for rotate 90 degrees anti-clockwise Ctrl + Z to enter a zoom value. 1.65 worked well... Ctrl + I inverts the colours, black text, white background to white text and black background Ctrl + C cycles through the available colors: black, red, green, blue, white, yellow, cyan, magenta.
To compress pdfs: https://www.adobe.com/acrobat/online/compress-pdf.html - crap though..
TODO: