pdfminer
Python PDF Parser (Not actively maintained). Check out pdfminer.six.
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
3 of 28 committers (10.7%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.6%) to scientific vocabulary
Keywords from Contributors
Repository
Python PDF Parser (Not actively maintained). Check out pdfminer.six.
Basic Info
- Host: GitHub
- Owner: euske
- License: mit
- Language: Python
- Default Branch: master
- Homepage: https://github.com/pdfminer/pdfminer.six
- Size: 5.99 MB
Statistics
- Stars: 5,298
- Watchers: 222
- Forks: 1,123
- Open Issues: 243
- Releases: 0
Metadata Files
README.md
PDFMiner
PDFMiner is a text extraction tool for PDF documents.
Warning: As of 2020, PDFMiner is not actively maintained. The code still works, but this project is largely dormant. For the active project, check out its fork pdfminer.six.
Features:
- Pure Python (3.6 or above).
- Supports PDF-1.7. (well, almost)
- Obtains the exact location of text as well as other layout information (fonts, etc.).
- Performs automatic layout analysis.
- Can convert PDF into other formats (HTML/XML).
- Can extract an outline (TOC).
- Can extract tagged contents.
- Supports basic encryption (RC4 and AES).
- Supports various font types (Type1, TrueType, Type3, and CID).
- Supports CJK languages and vertical writing scripts.
- Has an extensible PDF parser that can be used for other purposes.
How to Use:
> pip install pdfminer> pdf2txt.py samples/simple1.pdf
Command Line Syntax:
pdf2txt.py
pdf2txt.py extracts all the texts that are rendered programmatically. It also extracts the corresponding locations, font names, font sizes, writing direction (horizontal or vertical) for each text segment. It does not recognize text in images. A password needs to be provided for restricted PDF documents.
> pdf2txt.py [-P password] [-o output] [-t text|html|xml|tag]
[-O output_dir] [-c encoding] [-s scale] [-R rotation]
[-Y normal|loose|exact] [-p pagenos] [-m maxpages]
[-S] [-C] [-n] [-A] [-V]
[-M char_margin] [-L line_margin] [-W word_margin]
[-F boxes_flow] [-d]
input.pdf ...
-P password: PDF password.-o output: Output file name.-t text|html|xml|tag: Output type. (default: automatically inferred from the output file name.)-O output_dir: Output directory for extracted images.-c encoding: Output encoding. (default: utf-8)-s scale: Output scale.-R rotation: Rotates the page in degree.-Y normal|loose|exact: Specifies the layout mode. (only for HTML output.)-p pagenos: Processes certain pages only.-m maxpages: Limits the number of maximum pages to process.-S: Strips control characters.-C: Disables resource caching.-n: Disables layout analysis.-A: Applies layout analysis for all texts including figures.-V: Automatically detects vertical writing.-M char_margin: Speficies the char margin.-W word_margin: Speficies the word margin.-L line_margin: Speficies the line margin.-F boxes_flow: Speficies the box flow ratio.-d: Turns on Debug output.
dumppdf.py
dumppdf.py is used for debugging PDFs. It dumps all the internal contents in pseudo-XML format.
> dumppdf.py [-P password] [-a] [-p pageid] [-i objid]
[-o output] [-r|-b|-t] [-T] [-O directory] [-d]
input.pdf ...
-P password: PDF password.-a: Extracts all objects.-p pageid: Extracts a Page object.-i objid: Extracts a certain object.-o output: Output file name.-r: Raw mode. Dumps the raw compressed/encoded streams.-b: Binary mode. Dumps the uncompressed/decoded streams.-t: Text mode. Dumps the streams in text format.-T: Tagged mode. Dumps the tagged contents.-O output_dir: Output directory for extracted streams.
TODO
- Replace STRICT variable with something better.
- Improve the debugging functions.
- Use logging module instead of sys.stderr.
- Proper test cases.
- PEP-8 and PEP-257 conformance.
- Better documentation.
- Crypto stream filter support.
Related Projects
Owner
- Name: Yusuke Shinyama
- Login: euske
- Kind: user
- Location: Nagano, Japan
- Website: https://tabesugi.net/
- Repositories: 111
- Profile: https://github.com/euske
m33p.
GitHub Events
Total
- Watch event: 75
- Fork event: 9
Last Year
- Watch event: 75
- Fork event: 9
Committers
Last synced: about 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| yusuke.shinyama.dummy | y****y@1****c | 282 |
| Yusuke Shinyama | y****e@s****p | 124 |
| Yusuke Shinyama | y****e@c****u | 57 |
| speedplane | m****5@c****u | 13 |
| Matthew Duggan | m****b@g****g | 6 |
| Jordan Reiter | j****n@a****g | 2 |
| jcushman | j****n@g****m | 2 |
| Ashley Blackmore | a****e | 1 |
| Jakub Wilk | j****k@j****t | 1 |
| Alex Rothberg | a****g@g****m | 1 |
| Daniel Berthereau | D****b@B****t | 1 |
| Daniel Graña | d****a@g****m | 1 |
| Diego Elio Pettenò | f****s@f****m | 1 |
| Humberto Pereira | b****i@g****m | 1 |
| Ivan Pozdeev | i****v@m****u | 1 |
| Jim Morrison | j****m@s****m | 1 |
| Jonathan J Hunt | j****h@4****m | 1 |
| Michael R. Hines | m****l@h****m | 1 |
| Naren Salem | n****m@g****m | 1 |
| Pablo Castellano | p****o@a****o | 1 |
| Rico | r****h@g****h | 1 |
| Vinayak Mehta | v****4@g****m | 1 |
| Yusuke Shinyama | y****u | 1 |
| dwilson | d****n@b****m | 1 |
| eug | e****g@e****) | 1 |
| lucanaso | l****o@g****m | 1 |
| meisterluk | a****n@l****t | 1 |
| numion | n****s@g****t | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 82
- Total pull requests: 22
- Average time to close issues: about 1 year
- Average time to close pull requests: about 1 year
- Total issue authors: 78
- Total pull request authors: 20
- Average comments per issue: 1.99
- Average comments per pull request: 2.09
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- clach04 (3)
- longbowking (2)
- JSB97 (2)
- cfrelet (1)
- Lucas-C (1)
- TheLegendAli (1)
- shubhtrix (1)
- jeffstearns (1)
- omvishwas (1)
- udaykapur (1)
- speedplane (1)
- ltcs11 (1)
- Talib07 (1)
- peterhgruber (1)
- yashodhan19 (1)
Pull Request Authors
- izaalstergren (2)
- ghmo2789 (2)
- amitagari (1)
- adamestein (1)
- peterbrittain (1)
- johanlovgren (1)
- GoelPri (1)
- barwepaul (1)
- tillhainbach (1)
- cjmayo (1)
- amermsl92 (1)
- lijixin3216 (1)
- bdc34 (1)
- 1Blademaster (1)
- clach04 (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 4
-
Total downloads:
- pypi 244,712 last-month
- Total docker downloads: 844,619
-
Total dependent packages: 48
(may contain duplicates) -
Total dependent repositories: 1,427
(may contain duplicates) - Total versions: 45
- Total maintainers: 3
pypi.org: pdfminer
PDF parser and analyzer
- Homepage: http://github.com/euske/pdfminer
- Documentation: https://pdfminer.readthedocs.io/
- License: MIT
-
Latest release: 20131022
published almost 3 years ago
Rankings
Maintainers (1)
conda-forge.org: pdfminer
- Homepage: http://euske.github.io/pdfminer/index.html
- License: MIT
-
Latest release: 20140328
published almost 4 years ago
Rankings
pypi.org: pdfminer-with-logger
PDF parser and analyzer
- Homepage: http://github.com/euske/pdfminer
- Documentation: https://pdfminer-with-logger.readthedocs.io/
- License: MIT
-
Latest release: 1.0.0
published over 5 years ago
Rankings
Maintainers (1)
pypi.org: pdfminer-cython
PDF parser and analyzer
- Homepage: http://euske.github.io/pdfminer/index.html
- Documentation: https://pdfminer-cython.readthedocs.io/
- License: MIT/X
-
Latest release: 20200304
published about 6 years ago