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.0a5.tar.gz (11.0 MB view details)

Uploaded Source

File details

Details for the file caj2pdf-restructured-0.1.0a5.tar.gz.

File metadata

  • Download URL: caj2pdf-restructured-0.1.0a5.tar.gz
  • Upload date:
  • Size: 11.0 MB
  • 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.0a5.tar.gz
Algorithm Hash digest
SHA256 56e4fb4cc4066760220c3c5b36fdb9b85d5cbcfe80bd700f126a61e4557d7ba0
MD5 abd503e9c76b65d09280b1fb45c8456b
BLAKE2b-256 f5f7a9a2238c3ebb1d36313b62a2cf24867b3432be5cb980db103604ee89382f

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