Skip to main content

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

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.0a6.tar.gz (211.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

caj2pdf_restructured-0.1.0a6-cp310-cp310-win_amd64.whl (260.1 kB view details)

Uploaded CPython 3.10Windows x86-64

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

Hashes for caj2pdf-restructured-0.1.0a6.tar.gz
Algorithm Hash digest
SHA256 1e45738b682abb559dc08ed1c8f1a3321f35a5931f0b9f08417039fc75497636
MD5 bdd74b989691447515306ce1e163fb37
BLAKE2b-256 619e08c18fef4dbeeefc7d739cb6332bbb8c0ae09ef1ce916bd40154193779c4

See more details on using hashes here.

File details

Details for the file caj2pdf_restructured-0.1.0a6-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for caj2pdf_restructured-0.1.0a6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6ad0b8454cb4c5c3c57152ba5ed27ab9d626335a613c9a73bc68219dfb837f04
MD5 54d63a9feb40aa11dd516e862e6b3508
BLAKE2b-256 f1bf3d0f21a65be41624b5a8d332ed62b997b04947840ab69d5acd9a9134c7d7

See more details on using hashes here.

Supported by

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