Skip to main content

caj2pdf 重新组织,方便打包与安装

Reason this release was yanked:

incorrectly packaging test suites

Project description

caj2pdf

������������ caj2pdf/caj2pdf ������������������������������ Python ���������������������������������������������������������������������������������

  1. ������������ build.py ���������������������������
  2. ������������������������������������ caj2pdf ���������������������������������������
  3. ������������������������ 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

���������

  1. jbig2dec ������ Ubuntu/Debian ������������������������������������������������������ poppler ������
  2. 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 ������������������������������������

  1. ������������ libpoppler ���������������������
python build.py
  1. ��������������� 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

caj2pdf-restructured-0.1.0a4.tar.gz (21.7 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page