PyPDFForm은 PDF 양식 처리를 위한 무료 오픈 소스 Python 3 라이브러리입니다. 이 라이브러리는 PDF 양식과 상호작용하는 데 필요한 핵심 기능들을 포함하고 있습니다.
- cffi==1.17.1
- chardet==5.2.0
- cryptography==45.0.3
- pillow==11.2.1
- pycparser==2.22
- pypdf==5.6.0
- reportlab==4.4.1
# Docker 이미지로 로드
docker load -i final_2021040006.tar
# 로드된 이미지 확인
docker images# docker 이미지 실행 (-e 옵션의 호스트 ip와 port는 선택사항)
docker run -it -p [호스트의 포트:8000] -e HOST_IP=[호스트의 IP] -e HOST_PORT=[호스트의 포트] final_2021040006:v1
# ex) docker run -it -p 10205:8000 -e HOST_IP=203.255.81.132 -e HOST_PORT=10205 final_2021040006:v1
# 예제 코드 실행
python3 test.py
# 예제 코드 실행으로 output.pdf가 생긴 것을 확인할 수 있음
ls
# 서버에 들어가 test_sample.pdf와 output.pdf를 통해 코드 실행 전후에 대해 확인 가능
serverpypdfform
├── PyPDFForm #주요 소스 코드가 들어있는 패키지 디렉토리
│ ├── middleware/ #중간 처리 계층 로직 소크 코드 디렉토리
│ └── widgets/ #각종 위젯들에 관한 소스 코드 디렉토리
├── docs/ #문서 디렉토리
├── font_samples/ #font 샘플 파일들
├── image_samples/ #image 샘플 파일
├── pdf_samples/ #pdf 샘플 파일들
├── scripts/ #프로젝트 관리 및 테스트 자동화 스크립트
├── temp/ #임시 파일 저장 디렉토리
├── tests/ #test 코드
├── entrypoint.sh
├── pyproject.toml
├── mkdocs.yml
├── README.md
├── SECURITY.md
├── conftest.py
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── Dockerfile
├── LICENSE #license(mit)
└── Makefile# 서버 종료 (control + c)
^C
# 컨테이너에서 나가기
exit
# 컨테이너 중지
docker stop <CONTAINER_ID>
# 컨테이너 삭제
docker rm <CONTAINER_ID>
# 이미지 삭제
docker image rm final_2021040006:v1 MIT License
Copyright (c) 2020 Jinge Li
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
