Printer Executable
Software Dependency
Adobe reader
Env Requirements
Python 3 or above
Project Setup
pip install -r src/requirements.txt
Project build
python setup.py build
Project Demo
- Download
FinBank.rar
- Unzip directly to the
C:/
drive - Navigate to
C:\FinBank\prints\application
to findprinter.reg
- Install the registry file
- Open run or
win key + R
- Execute
pp20:system_name@@printer_name@@base64encoded_api_call
Demo Dependencies
- Open
fin-backend server
- Execute
npm run printerServer
Debugging
Most of the time the error would be due to imporoper installation of protocol handler in the registry. Follow the methods shown below.
- Open run or
win key + R
- Execute regedit
- Search for
HKEY_CURRENT_USER\Software\Classes\pp20
(Default) = "URL:pp20"
URL Protocol = ""
DefaultIcon
(Default) = "main.exe,1"
shell
open
command
(Default) = "C:\\FinBank\\prints\\application\\exe\\main.exe" "%1"
- Delete this scheme
- Open the
printer.reg
file in vscode and verify the paths in(Default)
- Make the changes to
printer.reg
and install again.
Error logging
- Navigate to
C:\FinBank\prints
- Open
log.txt
- shows print job error - Open
requests.txt
- shows request apis and related printer
References
Visit: https://stackoverflow.com/questions/7087728/custom-protocol-handler-in-chrome