All Projects → cbrunet → python-poppler

cbrunet / python-poppler

Licence: GPL-2.0 license
Python binding to Poppler-cpp pdf library

Programming Languages

python
139335 projects - #7 most used programming language
C++
36643 projects - #6 most used programming language
TeX
3793 projects

Projects that are alternatives of or similar to python-poppler

imgui
Dear ImGui Addons Branch = plain unmodified dear imgui plus some extra addon.
Stars: ✭ 348 (+582.35%)
Mutual labels:  poppler
pywrap
C++ binding generator based on libclang and pybind11
Stars: ✭ 17 (-66.67%)
Mutual labels:  pybind11
h264decoder
h264 decoding module for python based on libav
Stars: ✭ 76 (+49.02%)
Mutual labels:  pybind11
pynanoflann
Unofficial python wrapper to the nanoflann k-d tree
Stars: ✭ 24 (-52.94%)
Mutual labels:  pybind11
python-embedded-example-project
This is an example project using mebedded python in C++ console application using CMake
Stars: ✭ 32 (-37.25%)
Mutual labels:  pybind11
awesome-cpp-python-binding-generator
😎 A curated list of awesome automatic Python binding generators for C++ projects
Stars: ✭ 16 (-68.63%)
Mutual labels:  pybind11
node-poppler
Asynchronous node.js wrapper for the Poppler PDF rendering library
Stars: ✭ 97 (+90.2%)
Mutual labels:  poppler
pybind11-stubgen
Generates stubs for python modules (targeted to C++ extensions compiled with pybind11)
Stars: ✭ 103 (+101.96%)
Mutual labels:  pybind11
spdlog-python
python wrapper around C++ spdlog ([email protected]:gabime/spdlog.git)
Stars: ✭ 46 (-9.8%)
Mutual labels:  pybind11
node-pdftocairo
📃 Node.js wrapper for pdftocairo - PDF to PNG/JPEG/TIFF/PDF/PS/EPS/SVG using cairo
Stars: ✭ 17 (-66.67%)
Mutual labels:  poppler
pdftag
A simple metadata editor for PDFs for Linux and Windows
Stars: ✭ 48 (-5.88%)
Mutual labels:  poppler
pdf-images
The library aims to simplify pdf-conversion by providing wrappers over poppler / pdfImages & imageMagick to convert pdfs to images.
Stars: ✭ 12 (-76.47%)
Mutual labels:  poppler
racket-poppler
Racket bindings for Poppler (library for reading and generating pdfs)
Stars: ✭ 18 (-64.71%)
Mutual labels:  poppler
pysdsl
Python bindings to Succinct Data Structure Library 2.0
Stars: ✭ 23 (-54.9%)
Mutual labels:  pybind11
pymonero
Python Monero, a fork of monero-project/monero to deliver python c++ bindings
Stars: ✭ 12 (-76.47%)
Mutual labels:  pybind11
Electronic-Cheat-Sheet-and-Schematics-MegaCollection
A lot of Files of various Electronic Shit that I have collected over the years. Cheatsheet, Schematics, Pinouts, Pdf, and More... Enjoy it ;)
Stars: ✭ 43 (-15.69%)
Mutual labels:  pybind11
neworder
A dynamic microsimulation framework for python
Stars: ✭ 15 (-70.59%)
Mutual labels:  pybind11
SymSpellCppPy
Fast SymSpell written in c++ and exposes to python via pybind11
Stars: ✭ 28 (-45.1%)
Mutual labels:  pybind11
chimera
🐍 A CLI tool for generating Boost.Python/pybind11 bindings from C/C++
Stars: ✭ 12 (-76.47%)
Mutual labels:  pybind11

Python build and tests Code style: black

python-poppler

python-poppler is a Python binding to the poppler-cpp library. It allows to read, render, or modify PDF documents. More specifically, it currently allows to:

  • read an modify document meta data;
  • list and read embedded documents;
  • list the fonts used by the document;
  • search or extract text on a given page of the document;
  • render a page to a raw image;
  • get info about transitions effects between the pages;
  • read the table of contents of the document.

Documentation

https://cbrunet.github.io/python-poppler/

Documentation is currently a work-in-progress. Here you will find information about installation of the package, compilation from sources, and usage.

Meanwhile, because it follows the interface of poppler-cpp, you can refer to the documentation of the C++ library.

Usage

The package is installed as poppler.

Example:

from poppler import load_from_file, PageRenderer

pdf_document = load_from_file("sample.pdf")
page_1 = pdf_document.create_page(0)
page_1_text = page_1.text()

renderer = PageRenderer()
image = renderer.render_page(page_1)
image_data = image.data

Contributing

Contributions are welcome.

Please use the GitHub issue tracker to report bugs or request features. You can also submit Pull requests.

Code is formatted using black. Ensure that everything is well formatted. You can use

tox -e lint

to lint your code.

Please ensure that all tests pass, by running tox.

Please provide unit tests covering the new feature, or proving that a bug is corrected, when possible.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].