annotated-pdf-spec
PyMuPDF
annotated-pdf-spec | PyMuPDF | |
---|---|---|
1 | 5 | |
5 | 4,053 | |
- | 4.1% | |
10.0 | 9.8 | |
about 2 years ago | 8 days ago | |
Python | ||
- | GNU Affero General Public License v3.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
annotated-pdf-spec
-
Show HN: I am building a new Python library to read/write PDF files
As others have already written, there are many slightly invalid PDF files out there in the wild that many readers can display mostly fine and which your library should also be able to handle.
If you can, grab yourself a copy of the most recent PDF 2.0 specification since it contains much more information and is much more correct in terms of how to implement things. Also have a look at the errata at https://pdf-issues.pdfa.org/32000-2-2020/index.html.
As I'm implementing a PDF library (in Ruby), I have started to collect some situations that arise in the wild but are not spec-compliant, see https://github.com/gettalong/annotated-pdf-spec. That might help you in parsing some invalid PDFs
PyMuPDF
- FLaNK Stack for 04 December 2023
-
Converting markdown to pdf in Python
This method is based on the use of the libraries markdown-it-py (conversion from markdown to html) and [PyMuPDF] https://github.com/pymupdf/PyMuPDF) (conversion from html to pdf). A small Python class links them together.
-
Show HN: I am building a new Python library to read/write PDF files
I think you might mean PyMuPDF (https://github.com/pymupdf/PyMuPDF), a Python library built on top of the MuPDF C library (https://mupdf.com/).
PyMuPDF and MuPDF are both available under dual open source AGPL and commercial licenses. They have been around for many years and are under continual development.
[Disclaimer, i work for Artifex, who wrote MuPDF and recently acquired PyMuPDF.]
- M1 Mac: myuPDF install (wheel?)
- legacy install error: PyMuPDF?
What are some alternatives?
pdfquery - A fast and friendly PDF scraping library.
PyPDF2 - A pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files
pdfsyntax - A Python library to inspect and modify the internal structure of a PDF file
ReportLab
i7j-rups - RUPS is an acronym for Reading and Updating PDF Syntax. RUPS is a tool built on top of iText® that allows you to look inside a PDF document and browse the different PDF objects and content streams.
pdfplumber - Plumb a PDF for detailed information about each char, rectangle, line, et cetera — and easily extract text and tables.
betterwrite - :bookmark_tabs: A Creative Word Processor.
borb - borb is a library for reading, creating and manipulating PDF files in python.
pandoc - Universal markup converter
PDFMiner - Python PDF Parser (Not actively maintained). Check out pdfminer.six.
mupdf - mirrored from git://git.ghostscript.com/mupdf.git