- usage: pdfformulas.py [-h] [–dxmin DXMIN] [–frompage FROMPAGE]
[–topage TOPAGE] [–page PAGE] [–formulaid FORMULAID] [–stats] pdffile
Dump the formulas of a PDF as PNG files in the formulas subfolder. The subfolder formulas is created, if not there yet. The PDF content must be accessible as text.
- positional arguments:
pdffile PDF file to parse and dump formulas of
- optional arguments:
- -h, --help
show this help message and exit
- --dxmin DXMIN
Additional left margin, which defines what is normal text. If the text before a formula is the beginning of a paragraph it might start a little indented. In this case it helps to move dxmin to the right. Units are those used in the PDF. Try 10.
- --frompage FROMPAGE
PDF page number to start with.
- --topage TOPAGE
PDF page number to stop at.
- --page PAGE
PDF page number
- --formulaid FORMULAID
The regular expression by which a formula is found. Formulas are recognized by their ID on the right. The regular expression used is:: r’^s*(d*.d*)s* ‘ e.g.:: (2.13) To find the rectangle comprising the formula the text before and after is located, which begins on the left of the page (dxmin). The formula is assumed to be indented with regard to normal text.
- --stats
Only print (formula,page)-refs statistics. This tells which formulas are most often referenced in normal text and are thus likely the most important ones.
Requires: Pillow, PyMuPDF (needs compatible MuPDF installed), PdfMiner Installation: LibMuPDF and PyMuPDF will need to be installed beforehand.
Metadata
Release files for pdfformulas 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdfformulas-0.0.6-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pdfformulas-0.0.6-py2.py3-none-any.whl |
Release files / pdfformulas-0.0.6-py2.py3-none-any.whl
| Download URL | pdfformulas-0.0.6-py2.py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
01e2fd76fda4809aef2bf9d9beeae06e72fab84ce0e17b7ff7b837aed1a63b77
|
|
BLAKE2b-256 checksum How to use checksums |
376f26d3eaf18ab158e35665ff334a3e43a35ba776669d2707eb0e95868fa829
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pdfformulas 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.