caj2pdf 重新组织,方便打包与安装
Project description
caj2pdf
������������ caj2pdf/caj2pdf ������������������������������ Python ���������������������������������������������������������������������������������
- ������������ build.py ���������������������������
- ������������������������������������ caj2pdf ���������������������������������������
- ������������������������ CAJ ��������������������������������������� caj2pdf/caj2pdf ��������������������������������������������������������������������������������������������������������� issues ���������������
Why
������������������������������������������������������������������������ CAJ ������������������������������������������������������ CAJViewer ��������������������������������������������������������������������������� Windows ���������������
��������� CAJ ��������������� PDF ��������������������� CAJViewer ������������������������������������ PDF ������������������������������������������������������������������������������������������������������������������������������������������������
How to use
���������������
- Python 3.10+ ������������
importlib.resources������������������������������������������������������ - PyPDF2
- mutool
������Microsoft Windows���������������Microsoft Windows 32-bit/64-bit DLLs���HN ������������
- C/C++���������
- libpoppler���������������libjbig2dec���������
������
ArchLinux
# poppler ���
sudo pacman -S base-devel poppler mupdf-tools
pip install caj2pdf-restructured
# jbig2dec ���
sudo pacman -S base-devel jbig2dec mupdf-tools
LIBJBIG2DEC=1 pip install caj2pdf-restructured
��������� pipx
# poppler ���
sudo pacman -S base-devel poppler mupdf-tools
pipx install caj2pdf-restructured
# jbig2dec ���
sudo pacman -S base-devel jbig2dec mupdf-tools
LIBJBIG2DEC=1 pipx install caj2pdf-restructured
Debian, Ubuntu ��� Linux
# poppler ���
sudo apt install build-essential libpoppler-dev mupdf-tools
pip install caj2pdf-restructured
��������� pipx
# poppler ���
sudo apt install build-essential libpoppler-dev mupdf-tools
pipx install caj2pdf-restructured
���������
- jbig2dec ������ Ubuntu/Debian ������������������������������������������������������ poppler ������
- Ubuntu 16.04 ��� poppler ������������������������������������������������������������
Windows
������������������ pip ��� pipx ���������
pip install caj2pdf-restructured
pipx install caj2pdf-restructured
������������ mutool ������ mupdf-1.18.0-windows.zip ������������������������ mutool.exe ��������� PATH ������������������������������������������������������
��������������� choco ��� scoop ������ Windows ������������������������������������������������
choco install mupdf
������
scoop install mupdf
������
# ������������������������������������������������������������������������
caj2pdf show [input_file]
# ������������
caj2pdf convert [input_file] -o/--output [output_file]
# ��� CAJ ��������������������������������������� PDF ������
## ��������������������������������� Bug ������������ CAJViewer ������ PDF ���������������������������������������������
caj2pdf outlines [input_file] -o/--output [pdf_file]
���
caj2pdf show test.caj
caj2pdf convert test.caj -o output.pdf
caj2pdf outlines test.caj -o printed.pdf
������������
0.1.0a4 ��������������������� Windows ��������������������������������� CAJ ������������
��������������������������������� caj2pdf install ������������������������������������������������
������������������������������ ��������������������������� pip��������������������� uninstall ��������� HOOK���
TODO: ���������������������������
���������������IMPORTANT!!!���
��������������������������������������������������������������������������������� caj ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ issue ���������������
Unknown file type.������������������������
How far we've come
��������������������������� caj ������������������������������������������CAJ ��������� HN ��������������������������������������������������������������������������� CAJ ������������������������HN ���������������������������������������������������������������������������Microsoft Windows���������������Microsoft Windows 32-bit/64-bit DLLs���������������������
cc -Wall -fPIC --shared -o libjbigdec.so jbigdec.cc JBigDecode.cc
cc -Wall `pkg-config --cflags poppler` -fPIC -shared -o libjbig2codec.so decode_jbig2data.cc `pkg-config --libs poppler`
���������libpoppler ������������������������������������������libjbig2dec���������������������libpoppler���
cc -Wall -fPIC --shared -o libjbigdec.so jbigdec.cc JBigDecode.cc
cc -Wall `pkg-config --cflags jbig2dec` -fPIC -shared -o libjbig2codec.so decode_jbig2data_x.cc `pkg-config --libs jbig2dec`
NOTE���zombie110year,2021/04/20������������������������ python build.py ��������������������������������������������������������������������������������� caj2pdf/dep ������������������������������������
- ������������ libpoppler ���������������������
python build.py
- ��������������� jbig2dec ���������������������
LIBJBIG2DEC=1 python build.py
������������������������������������������������������������������������������������������ Wiki���
How to contribute
������������������������������������������ CAJ ��������������������������������������������������������� Bug������������������������������������ Issue ������������������������������ Bug ��� caj ������������������������������������������������������������������������������������������������������������������������ issue ��������������������� caj ������������
������������������������������������������/������������������������������������������������������������������������������������������������������������������������������������ Wiki ���������������������������������������������������������Pull requests are always welcome.
License
��������������� GLWTPL (Good Luck With That Public License) ������������������
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file caj2pdf-restructured-0.1.0a6.tar.gz.
File metadata
- Download URL: caj2pdf-restructured-0.1.0a6.tar.gz
- Upload date:
- Size: 211.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.1.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e45738b682abb559dc08ed1c8f1a3321f35a5931f0b9f08417039fc75497636
|
|
| MD5 |
bdd74b989691447515306ce1e163fb37
|
|
| BLAKE2b-256 |
619e08c18fef4dbeeefc7d739cb6332bbb8c0ae09ef1ce916bd40154193779c4
|
File details
Details for the file caj2pdf_restructured-0.1.0a6-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: caj2pdf_restructured-0.1.0a6-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 260.1 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.2.1 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ad0b8454cb4c5c3c57152ba5ed27ab9d626335a613c9a73bc68219dfb837f04
|
|
| MD5 |
54d63a9feb40aa11dd516e862e6b3508
|
|
| BLAKE2b-256 |
f1bf3d0f21a65be41624b5a8d332ed62b997b04947840ab69d5acd9a9134c7d7
|