This script is a web application that allows users to upload a PDF file and add an address to it. The script then overlays the PDF with an affrancatura PDF and returns the resulting PDF with the address added.
This script requires Python 3 and the following Python packages:
osshutilPyPDF2flaskwerkzeugreportlabThe script also requires two directories to exist: /app/volume1/uploads for uploaded files and /app/volume1/affrancatura for affrancatura PDFs.
To install the required packages, run:
pip install -r requirements.txt
where requirements.txt is a file containing the names of the required packages.
To use this script:
/app/volume1/uploads and /app/volume1/affrancatura directories exist.ADDRESS_POSITION_X and ADDRESS_POSITION_Y environment variables to the coordinates of the address on the page./app/volume1/affrancatura directory.python add_address_and_overlay.py
http://localhost:5000 in a web browser to use the web application.The script does not log any activity.
This script is licensed under the MIT License.
Content type
Image
Digest
sha256:74d5d8fa2…
Size
322.7 MB
Last updated
about 2 years ago
docker pull jacklugano/affranca_app