Skip to content
프로젝트

pymupdf/PyMuPDF-Utilities

GitHub에서 보기

소개

PyMuPDF를 사용하는 데모, 예제 및 유틸리티

학습 및 교육

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+2
in 15 days
+2
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

PyMuPDF-Utilities

This repository contains demos and examples to help you create PDF, XPS, and eBook applications with PyMuPDF.

Disclaimer

Some examples were initially created in the early days of the package. API changes implemented over time may have caused discrepancies in the scripts. We may not update them every time an update is released, so there's no guarantee they all will work as originally expected. If you look at the scripts as what they are intended to be, examples, then they will give you a good start.

"TXT" Documents

PyMuPDF now (v1.23.x) also supports plain text files as a Document, like PDF, XPS, EPUB etc. They will behave just like any other document: you can search and extract text, render pages as Pixmaps etc.

This offers ways to access program sources, markdown documents and basically any file, as long as it is encoded in ASCII, UTF-8 or UTF-16.

Please navigate to folder text-documents for details.

OCR Support

There are now two demo examples in the new folder OCR which use MuPDF OCR, Tesseract OCR and easyocr respectively.

To see more "interactive" demos of the new OCR features, please also have a look at the notebook collection in the jupyter-notebooks folder.

Advanced TOC Handling

Handling of table of contents (TOC) has been significantly improved in v1.18.6. I have therefore created another new folder dealing specifically with this subject.

Font Replacement

New for PyMuPDF v1.17.6 is the ability to replace selected fonts in existing PDFs. This is a set of two scripts and their documentation in this folder.

Marking Words and Lines

PyMuPDF's features have been extended in this respect. We therefore created this own folder to contain dedicated scripts, descriptions and examples.

Textbox Extraction

PyMuPDF's features have been extended in this respect. We therefore move example scripts and an extended description to its own folder.

Text Extraction, Layout Preservation

Text extraction scripts have been moved into this separate folder. They demonstrate alternate ways extracting text from general documents (not only PDF), bargaining simplicity versus layout-faithful text output.

The most advanced script, fitzcli.py produces text which closeley resembles the original layout of the document, including multi-column text, text thats surrounds images, etc.

Jupyter Notebooks

A new folder with notebooks explaining basic concepts in an interactive way. Will be extended over time.

Table Analysis

This folder contains a collection of scripts to analyse a table. The intention here, too, is to extend the examples over time. Already there is a script which can extract table cells to a pandas DataFrame (saved to EXCEL), if they are defined by gridlines. This includes any multi-line cell content.

Examples

Please check out the examples.

관련 프로젝트 살펴보기

불러오는 중…